Disk size/partitions
So I'm feeling a little stupid trying to understand where my disk space is allocated.
My drive is 320 gigs. Code:
~ $ df -h all of the 2.0G entries in the df code above, are they taking space from the 292G /dev/sda1 mounted as root? In case you are wondering I have 2G of swap space as well. 292G + 2.0G(6) + 2.0G = 306G root + var. folders + swap = X Where is the remaining 14G? cfdisk shows Code:
cfdisk (util-linux-ng 2.14) Any help with this is greatly appreciated. |
ooops
|
Hi,
seems to be all ok. Your disk is 320GB with 317GB on sda1, after creating a filesystem you will loos around 5-7% of total partition size. This make the 292 GB available, where 142gb is used from, rest free. So where is the problem? |
Forgive me if I'm just not understanding but I see a discrepancy btw what shows in fdisk and whats actually allocated in fstab.
Why would creating a filesystem cause a loss of 5-7% of total partition size? baobab usage analyzer shows 291.4G |
Quote:
/dev/sda1 mounted on / That would be the extent of it since that is the only disk file system that is mounted in the Linux file structure starting at /. When you create a file system you place a data structure on the disk. A raw disk just has blocks. A file system has a list of the files on the disk. This list takes up space. In fact, when you mkfs the file system all of the places to list files are allocated at that time. These are called inodes and they take up space on the disk. The same thing is true in Windows so don't think that you get more storage space on Windows for a given disk size. Your original post shows that you have one disk drive and two partitions on that disk drive. The first partition is where all of your files are stored including the Linux system files. It is mounted at /. The second partition is a swap partition. It is normally not visible since it is not linked into the file system. There should be a record for it in the fstab file with the file system type shown as swap. |
Informative but...
Thank you for the informative, yet inordinately assumptive response. I haven't used a Windows machine full-time since 2002. While you have given me a good refresher on file systems, at no point did I state I was expecting either OS would allow for more storage space on a given drive.
The only reason I mentioned Windows was because I suspected there might be a hidden partition to be used for system restore since the machine came with Vista installed. I didn't check the disk space in Windows before installing Linux, I had no need to. 5-7% of 320g is 2.24g, much less than the 14g thats missing. |
Quote:
Quote:
Quote:
Why are you so confrontational? We're only trying to help you. |
All times are GMT -5. The time now is 07:56 PM. |