when specifying multiple types, mount will mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Current mount (2.25) will always mount a device when more
than one type is given in a comma-separated list.  Older mount
(2.17.2 for example) would not not do that but error out.

For example, /dev/sda2 is of type ext4, but we are playing dumb,
to see what mount will say:

$ sudo ./mount /dev/sda2 /place -t btrfs
lt-mount: /dev/sda2: can't read superblock

$ sudo ./mount /dev/sda2 /place -t msdos
lt-mount: wrong fs type, bad option, bad superblock on /dev/sda2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

$ sudo ./mount /dev/sda2 /place -t btrfs,msdos

$ ./mount | grep sda2
/dev/sda2 on /place type ext4 (rw)

I find this surprising.  If -t does not support a comma-separated
list, it should report an error.  If it does, it should, IMO, only
try the specified types and not any others.

Benno

-- 
http://www.fastmail.fm - Accessible with your email software
                          or over the web

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux