LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-03-2010, 07:22 AM   #1
protocol
LQ Newbie
 
Registered: May 2005
Posts: 17

Rep: Reputation: 0
Odd issue with df command


Hello all.

My "df" command provides this:

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 436G 1.0G 413G 1% /
/dev/sdc1 452G 199M 428G 1% /dsk/two
/dev/sdb1 452G 199M 428G 1% /dsk/one

I notice that my /dev/sdc disk appears before /dev/sdb, which i consider odd because i can clearly remember a time that this was not so. Does it mean anything? Should i do something?

Panos
 
Old 04-03-2010, 07:54 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
I don't think this is something to worry about, but try "fdisk -l" also.
 
Old 04-03-2010, 08:05 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
No, and no.
 
Old 04-03-2010, 08:10 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,325

Rep: Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882
I believe df shows them in the order they're mounted in. If you want them the other way around, edit your /etc/fstab and put one before two.
 
1 members found this post helpful.
Old 04-04-2010, 02:42 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Quote:
Originally Posted by GazL View Post
I believe df shows them in the order they're mounted in. If you want them the other way around, edit your /etc/fstab and put one before two.
Perhaps that's distribution dependent, but on my Fedora 12 system, df lists them in the same order that mount lists them, but that's not the order in which fstab lists them. (I suspect that the mount order is the order in which udev processed the entries from fstab, which is not quite the same thing as the fstab order.)
 
Old 04-05-2010, 12:01 PM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 3,325

Rep: Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882
Quote:
Originally Posted by PTrenholme View Post
Perhaps that's distribution dependent,
Good point. That's quite possible, depending on how clever your distro tries to be while processing mounts.

Last edited by GazL; 04-05-2010 at 12:03 PM.
 
  


Reply

Tags
df


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd Postfix Issue XLA187 Linux - Software 8 05-25-2009 09:59 PM
An Odd network issue hacker supreme Linux - Networking 6 06-05-2007 09:43 AM
Odd filetime issue TL_CLD Slackware 2 11-13-2006 01:56 AM
odd mandriva issue goofusbrain Linux - Networking 1 11-13-2005 06:09 PM
Odd *nix issue with c/c++ Will_C_T Programming 3 09-09-2004 11:17 PM


All times are GMT -5. The time now is 12:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration