Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #212454

Re: mount weirdness

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: mount weirdness
Date 2019-08-08 19:20 +0200
Message-ID <ysUeZ-83N-1@gated-at.bofh.it> (permalink)
References <yrRVU-17f-13@gated-at.bofh.it> <ysLOp-2NH-1@gated-at.bofh.it> <ysRh7-6dT-9@gated-at.bofh.it> <ysS3w-6w2-27@gated-at.bofh.it> <ysU5k-80i-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 08, 2019 at 12:09:11PM -0500, David Wright wrote:
> But the 2-1 vote wasn't whether error messages were emitted, but
> whether the system should mount an already-mounted partition onto
> another mount point. I get error messages and the mount fails.
> Others get no error messages (though they haven't demonstrated
> the lack) and a successful mount, so currently I'm in a minority
> of one.

It may very well depend on the version of Debian, the kernel, the mount
package, the type of file system... I don't know.  I was utterly surprised
when I got the result that I got, because I really did expect it to fail
with an error message.  I was in the process of writing an email reply of
the form "you can't do that, you have to use --bind or something".  I
tested it out, so I could paste the results into the email... and... this.

Here's what I get, on buster, amd64, standard 4.19 kernel, standard
mount package, ext4 file system, no encryption, no LVM, no mdraid.

wooledg:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             4007532        0   4007532   0% /dev
tmpfs             804828     2432    802396   1% /run
/dev/sda6      187064220 19717412 157821460  12% /
tmpfs            4024136   130088   3894048   4% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs            4024136        0   4024136   0% /sys/fs/cgroup
/dev/sda3        2818080    80600   2574616   4% /boot
tmpfs             804824       12    804812   1% /run/user/563
wooledg:~$ sudo mount /dev/sda3 /mnt
[sudo] password for wooledg: 
wooledg:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             4007532        0   4007532   0% /dev
tmpfs             804828     2432    802396   1% /run
/dev/sda6      187064220 19717412 157821460  12% /
tmpfs            4024136   130068   3894068   4% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs            4024136        0   4024136   0% /sys/fs/cgroup
/dev/sda3        2818080    80600   2574616   4% /mnt
tmpfs             804824       12    804812   1% /run/user/563
wooledg:~$ ls /mnt
config-4.19.0-5-amd64      initrd.img-4.9.0-8-amd64   vmlinuz-4.19.0-5-amd64
config-4.9.0-8-amd64       lost+found                 vmlinuz-4.9.0-8-amd64
grub                       System.map-4.19.0-5-amd64
initrd.img-4.19.0-5-amd64  System.map-4.9.0-8-amd64
wooledg:~$ ls /boot
config-4.19.0-5-amd64      initrd.img-4.9.0-8-amd64   vmlinuz-4.19.0-5-amd64
config-4.9.0-8-amd64       lost+found                 vmlinuz-4.9.0-8-amd64
grub                       System.map-4.19.0-5-amd64
initrd.img-4.19.0-5-amd64  System.map-4.9.0-8-amd64
wooledg:~$ sudo umount /mnt
wooledg:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             4007532        0   4007532   0% /dev
tmpfs             804828     2432    802396   1% /run
/dev/sda6      187064220 19717412 157821460  12% /
tmpfs            4024136   130068   3894068   4% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs            4024136        0   4024136   0% /sys/fs/cgroup
/dev/sda3        2818080    80600   2574616   4% /boot
tmpfs             804824       12    804812   1% /run/user/563
wooledg:~$ ls /mnt
wooledg:~$ 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-05 22:40 +0200
  Re: mount weirdness Andrei POPESCU <andreimpopescu@gmail.com> - 2019-08-06 08:10 +0200
    Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 17:10 +0200
      Re: mount weirdness rhkramer@gmail.com - 2019-08-06 17:40 +0200
        Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 19:40 +0200
          Re: mount weirdness Richard Hector <richard@walnut.gen.nz> - 2019-08-06 19:50 +0200
            Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 20:00 +0200
              Re: mount weirdness Richard Hector <richard@walnut.gen.nz> - 2019-08-06 20:20 +0200
      Re: mount weirdness Felix Miata <mrmazda@earthlink.net> - 2019-08-06 17:40 +0200
        Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 19:30 +0200
  Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-06 17:40 +0200
    Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-06 19:20 +0200
      Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-06 20:50 +0200
        Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-07 19:50 +0200
          Re: mount weirdness Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-07 20:00 +0200
          Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-07 22:50 +0200
      Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-06 21:00 +0200
        Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-07 20:00 +0200
          Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-07 23:30 +0200
  Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 10:20 +0200
    Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 10:50 +0200
      Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-09 21:20 +0200
    Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-08 12:00 +0200
      Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 14:40 +0200
      Re: mount weirdness Michael Stone <mstone@debian.org> - 2019-08-08 14:40 +0200
        Re: mount weirdness Curt <curty@free.fr> - 2019-08-08 15:00 +0200
    Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-08 16:10 +0200
      Re: mount weirdness Michael Stone <mstone@debian.org> - 2019-08-08 17:00 +0200
        Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-08 19:10 +0200
          Re: mount weirdness Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-08 19:20 +0200
          Re: mount weirdness Michael Stone <mstone@debian.org> - 2019-08-08 20:20 +0200
            Re: mount weirdness David Wright <deblis@lionunicorn.co.uk> - 2019-08-09 18:30 +0200
              Re: mount weirdness Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-09 19:00 +0200
                Re: mount weirdness "Thomas Schmitt" <scdbackup@gmx.net> - 2019-08-09 20:00 +0200
      Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-09 22:00 +0200
    Re: mount weirdness Dennis Wicks <wix@mgssub.com> - 2019-08-09 21:20 +0200

csiph-web