Mailinglist Archive: opensuse (1047 mails)

< Previous Next >
Re: [opensuse] Duplicate mount points
* Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx> [01-03-16 17:37]:
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 ...).

Stopped smb nfsserver and umounted /dev/sdl1

Tks, attempts umount even with "-f" indicate target is busy but lsof and
fuser show nothing.

while umount /mnt/ExTernal ;do : ; done
umount: /mnt/ExTernal: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

findmnt --target /mnt/ExTernal
TARGET SOURCE FSTYPE OPTIONS
/mnt/ExTernal /dev/sdc1 ext4 rw,relatime,data=ordered
/mnt/ExTernal /dev/sdh1 ext4 ro,relatime,data=ordered
/mnt/ExTernal /dev/sdi1 ext4 ro,relatime,data=ordered
/mnt/ExTernal /dev/sdj1 ext4 rw,relatime,data=ordered


--
(paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri
http://en.opensuse.org openSUSE Community Member facebook/ptilopteri
http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
Registered Linux User #207535 @ http://linuxcounter.net
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups