tecknophreak
01-07-2005, 11:01 AM
Is there a way that you can find how much space the filesystem(ext2) is taking up of the harddrive? Either through an IOCTL or command line?
|
Click to See Complete Forum and Search --> : ext2 filesystem disk usage tecknophreak 01-07-2005, 11:01 AM Is there a way that you can find how much space the filesystem(ext2) is taking up of the harddrive? Either through an IOCTL or command line? ph34r 01-07-2005, 11:18 AM df -h to see how much free space is on mounted partitions or fdisk -l to see all your partitions evac-q8r 01-07-2005, 11:26 AM That's easy... Or you could use du to see how much a particular directory (filessystem) uses. I hope this helps. EVAC tecknophreak 01-07-2005, 11:46 AM i'm not looking for how much my files and directories take up. i'm looking for how much the actual filesystem takes up. you know, you format a harddrive, do a mkfs.ext2 on it and df says 94 G capacity 10k used and 90 G available. now this used space is because of just inodes? in which case i can do a df -i and find out how many inodes are used and multiply that by 128, but i'm still missing some file space. of course I'm using software raid1 on top of this, so maybe that's taking up some space too. evac-q8r 01-08-2005, 12:18 AM Keep in mind that there are single indirect blocks, double indirect blocks, and triple indirect blocks that are all pointed to from the file inode especially when the file size tends to get very large. And as you may already know these take up some space as a part of the filesystem. So you may need to account for those as well, but I haven't got the slightest clue how to obtain that information. EVAC tecknophreak 01-09-2005, 11:28 PM Originally posted by evac-q8r Keep in mind that there are single indirect blocks, double indirect blocks, and triple indirect blocks that are all pointed to from the file inode especially when the file size tends to get very large. And as you may already know these take up some space as a part of the filesystem. So you may need to account for those as well, but I haven't got the slightest clue how to obtain that information. EVAC hrmm, that's exactly what i'm looking for.... justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |