slave drive mounting where?

Chris Aitken chris-n/jUll39koHNgV/OU4+dkA at public.gmane.org
Thu Nov 22 00:39:51 UTC 2007


Lennart Sorensen wrote:

<snip>
>> THe bottom line is I want to make sure I am saving .ogg's to the 
>> separate slave drive not my primary drive.
>>
>> How can I verify this?
>>     
>
> No, when you ask df with a path, it tells you the info for whatever
> device contains what you asked for.  So since you asked for df on
> /dev/sdb1 you got the info on whatever holds the device node /dev/sdb1
> which is generally the root filesystem.  You wanted to ask df about
> wherever you mounted /dev/sdb1 to since it needs to be mounted to tell
> how full it is (since it requires filesystem knowledge to see that info,
> which df doesn't have so instead you must mount it first and then ask df
> for the info on that mount point).
>
> So if you went: 
> mount /dev/sdb1 /mnt
> df /mnt
>
> Then you would get useful info.
>
> You can check for yourself.  Try:
> df /
> df /dev
> df /dev/random
> etc...
>   
[root at p733 chris]# df /dev
Filesystem           1K-blocks      Used Available Use% Mounted on
-                       192016       140    191876   1% /dev
[root at p733 chris]# df /dev/sdb1
Filesystem           1K-blocks      Used Available Use% Mounted on
-                       192016       140    191876   1% /dev

> --
> Len Sorensen
> --

--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list