Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I did the LM6 install I choose the whole disk option.
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)
Disk Drive: /dev/sda
Size: 320072933376 bytes, 320.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 38913
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> sda1 Boot Primary Linux ext3 317923.53
sda2 Primary Linux swap / Solaris 2146.80
It should be noted that this machine came with Vista, set to install on first boot. I made the backup as requested then installed LM6 using the entire disk.
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731
Rep:
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.
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
fstab mounts a lot of virtual file systems. These are things like /proc and they do not take up any disk space. They reside in RAM and the listed sizes are not valid. These things account for most of what you see when you issue the mount command with no argument. It would be more helpful for newbies if the mount command just showed the mounted disk file systems. If that were the case then your output to mount would be something like
/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.
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.
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.
I did not assume anything. I only stated that Windows file systems did not have any advantage regarding losing disk space to file system data structures preallocated when the partition is formatted. I think you are being overly critical when I only tried to help you.
Quote:
Originally Posted by jinnstar
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.
The cfdisk output shows two partitions. Both are being used by Linux.
Quote:
Originally Posted by jinnstar
5-7% of 320g is 2.24g, much less than the 14g thats missing.
In fact I did the calculation. It turns out to be about 8%. The cfdisk output shows 318GB data + 2GB swap = 320GB. The df command shows 292GB for the data partition. Add the 2GB for the swap partition and you have 294GB. 29400/320=92% which leaves 8% difference and that's allowing for 26GB to be "missing". That is not so far from the 5%-7% stated by mesiol.
Why are you so confrontational? We're only trying to help you.
Last edited by stress_junkie; 03-29-2009 at 11:15 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.