On 01/03/2016 10:48 PM, Patrick Shanahan wrote:
openSUSE 13.1 server
cat /etc/mtab displays duplicate mounts:
/dev/sdc1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdh1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdi1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdj1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0 /dev/sdk1 /mnt/ExTernal ext4 ro,relatime,data=ordered 0 0 /dev/sdl1 /mnt/ExTernal ext4 rw,relatime,data=ordered 0 0
Only the last is in /etc/fstab:
/dev/disk/by-id/usb-External_AL25744_12345678_0714100001-0:0-part1 /mnt/ExTernal ext4 nofail 1 2
blkid shows only /dev/sdl1
drive is an external powered usb box containing two drives:
fdisk -l /dev/sdl1 Disk /dev/sdl1: 2000.4 GB, 2000408723456 bytes, 3907048288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
How do I remove the duplicate entries w/o rebooting my server?
It seems they are "over-mounted" several times, so you could just do: $ while umount /mnt/ExTernal ; do : ; done Of course, no process should use files beneath the mount point to make umount work. BTW: mtab is a symlink nowadays, and there are nice tools out there to get a good overview over such a situation: $ findmnt --target /mnt/ExTernal (or without --target ...). Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org