Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

df command list is changed after umount and mount

Status
Not open for further replies.

jpn1

Technical User
Jul 9, 2007
34
US
I have a rather long file system list and I umounted a filesystem and then mounted it back. Now when I do a df the filesystem in question is now at the bottom of the list.

Is there any way to re-organize the list and why does it move to the bottom?
 
Well, that's just the way it is... df lists the FSs in the same order that they were mounted.
You would need to unmount all the other FSs that were after this particular FS and then remount them. But that is just cosmetics...
If you want the list allways in the same order, sort the output

df|sort



HTH,

p5wizard
 
Or other thing you can do is change order manually in /etc/filesystems and then unmount all and mount all. By this way it will be foreever same way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top