Partition & format hard drive mysterious used space
by elaterite from LinuxQuestions.org on (#5SMH7)
Hi -
I can't account for what's using a lot of extra space on my storage drives, both internal and external.
I am familiar with reserved-blocks-percentage, the need for that space for fragmentation reasons, and how to adjust it during or after partitioning.
Since these are all data storage drives, not system drives, I set the reserved-blocks-percentage to 1 percent rather than the default 5 percent.
Here's two examples of used space I don't understand. After freshly partitioning (with one partition) and formatting:
A 1TB drive reports the size to be 931.51GB, 1.94GB is used, 929.57GB is available.
A 2TB drive reports the size to be 1.82TB, 30.31GB is used, and 1.79TB is available.
Maybe I'm doing something wrong during partitioning and formatting?
To partition the drive:
Code:sudo parted /dev/sdx(Where x = the drive to be worked on.)
Code:(parted) mklabel gpt(To create the file system.)
Code:(parted) mkpart [label] 0% 100%(Where 'label' is the name I want to call the disk.)
Then I quit parted.
And then to format the drive:
Code:sudo mkfs.ext4 -L [label] -m 1 /dev/sdx1(Where label is the same label as used earlier and 'x' is the drive letter I'm working on.)
The OS lives on a separate drive and I'm using an EFI boot. There is one storage drive in my box that is has a MSDOS rather than GPT file system. I plan to change it to GPT soon. All drives are hard disks, not SSDs.
Thoughts? And thanks!
I can't account for what's using a lot of extra space on my storage drives, both internal and external.
I am familiar with reserved-blocks-percentage, the need for that space for fragmentation reasons, and how to adjust it during or after partitioning.
Since these are all data storage drives, not system drives, I set the reserved-blocks-percentage to 1 percent rather than the default 5 percent.
Here's two examples of used space I don't understand. After freshly partitioning (with one partition) and formatting:
A 1TB drive reports the size to be 931.51GB, 1.94GB is used, 929.57GB is available.
A 2TB drive reports the size to be 1.82TB, 30.31GB is used, and 1.79TB is available.
Maybe I'm doing something wrong during partitioning and formatting?
To partition the drive:
Code:sudo parted /dev/sdx(Where x = the drive to be worked on.)
Code:(parted) mklabel gpt(To create the file system.)
Code:(parted) mkpart [label] 0% 100%(Where 'label' is the name I want to call the disk.)
Then I quit parted.
And then to format the drive:
Code:sudo mkfs.ext4 -L [label] -m 1 /dev/sdx1(Where label is the same label as used earlier and 'x' is the drive letter I'm working on.)
The OS lives on a separate drive and I'm using an EFI boot. There is one storage drive in my box that is has a MSDOS rather than GPT file system. I plan to change it to GPT soon. All drives are hard disks, not SSDs.
Thoughts? And thanks!