Re: mounting FreeBSD partition in Linux (Fedora 14)

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

 



On Thu, Mar 17, 2011 at 06:01:54PM +0100, J B wrote:
> What is actually happening here ?
[...]
> # mount -vf -t auto /dev/sda2 /media/
> /dev/sda2 on /media type auto (rw)

 man mount:

      -f, --fake
             Causes everything to be done except for the actual
             system call;  if it's  not  obvious,  this ``fakes''
             mounting the filesystem. 

> # df
> Filesystem      1K-blocks   ÂUsed Available Use% Mounted on
> /dev/sda7 Â Â Â Â Â Â 14420896 Â 7413796 Â 5541976 Â58% /
> tmpfs         Â1025992    448  1025544  1% /dev/shm
> /dev/sda2       14420896  7413796  5541976 Â58% /media   <========

 df(1) reads /etc/mtab where is the 'fake' entry, /media is no the
 root (/) filesystem. It seems that df(1) is not smart enough to 
 detect this situation.

> [root@localhost jb]# mount
> ...
> /dev/sda2 on /media type auto (rw) Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <========
> 
> # cat /proc/mounts
> ...
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <====== ???

 Sure, the filesystem is not mounted.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
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