OpenQNX :: The QNX Community Portal

May 13, 2008 - 10:33 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 72 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bvnbhati
Post subject: space on harddisk  PostPosted: Mar 10, 2008 - 06:09 AM
New Member


Joined: Mar 07, 2008
Posts: 6

I am working on a qnx node where one of my hard disk is showing to be quite full, when I use command df.

Please let me know what are specific command to see the usage of space on this disk. I am not able to get these details using du.

Even df is showing device to be 765 ful but still it shows only 1440 KB of used space.

I am confused. Please help.
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: space on harddisk  PostPosted: Mar 10, 2008 - 06:56 AM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

Post output of df. That being said I thing df has trouble with big hard disk.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bvnbhati
Post subject:   PostPosted: Mar 10, 2008 - 11:43 AM
New Member


Joined: Mar 07, 2008
Posts: 6

Thank you for your prompt response. Here are the commands and their responses.

//12/home/root# df -h -n 1
File system (kb) Total User Used Free Used Mounted on
//1/dev/hd0t77 8040501 8036649 4036710 3999939 50% //1/scsi0
//1/dev/hd0t78 63633465 63617920 3265629 60352291 5% //1/db
//1/dev/hd1t77 69521287 69504305 5809680 63694625 8% //1/db2
//1/dev/fd0 1440 1438 1093 344 76% //1/scsi0/fda
//1/dev/ram 4000 3997 4 3993 0% //1/scsi0/ram

//12/home/root# du //1/scsi0/fda
5 //1/scsi0/fda/usr/lib/terminfo/q
7 //1/scsi0/fda/usr/lib/terminfo
9 //1/scsi0/fda/usr/lib
11 //1/scsi0/fda/usr
57 //1/scsi0/fda/etc/licenses
38 //1/scsi0/fda/etc/config/kbd
46 //1/scsi0/fda/etc/config
110 //1/scsi0/fda/etc
2 //1/scsi0/fda/lib
1178 //1/scsi0/fda/bin
2187 //1/scsi0/fda
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject:   PostPosted: Mar 10, 2008 - 06:53 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

1440 = how many blocks physically present on the disk
1438 = how many blocks physically present on the disk available for user ( 2 blocks are used by file system )
1093 = used blocks
344 = free blocks

76% = 1093 used blocks out of 1440

It all checks out ok AFAICT.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
bvnbhati
Post subject:   PostPosted: Mar 11, 2008 - 05:50 AM
New Member


Joined: Mar 07, 2008
Posts: 6

I understand:

76% = 1093 used blocks out of 1440

But my problem is I want to know what all directories and files are contributing to this 76% so that I can plan to take back up and remove unwanted stuff.

When I try du the space consumed by directoires in this path is very less.

Please guide.

Thanks and Regards
Bvnbhati
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject:   PostPosted: Mar 11, 2008 - 01:32 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

du is saying there is 2187 block used which if you divide by 2 gives you 1093, a clue dear Watson.

du is giving number in block of 512 bytes ( 512*2187 ) = 1119744 While df give number in 1K 1024*1093 = 1119232.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.