2

I think it's a noob question, Using samba with external 1tb hdd. I have ubuntu server 24.04.

I formated the drive using mkfs.ex4. Out of 931gb that I should be getting only 915gb are appearing and of those I can only use 869gb. That's 60gb lost right there with a formatted drive! I also plugged the drive to Windows to confirm that it is formatted and having 1 partition.

Imgur link: https://imgur.com/a/7tVRfuF

This is sab.conf with spaces of course, it deletes them here. [ex] path = /mnt/ex writeable=yes public=no

New contributor
Pita is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
4
  • No.. I have ubuntu on my other pc. It certianly donsen't list 1tb hdd as 869gb. it lists it as 931gb. Commented yesterday
  • 2
    5% reserved space is default for ext4, that explains the difference between 915GB and 869GB. Take a look at this related question. Commented yesterday
  • Very much thanks! Thanks to you I was able to remove that 5%. For anyone wondering, I used: tune2fs -m 0 /dev/mydevice Commented yesterday
  • ... see also My Terabyte hard drive only has 931mb free? Commented yesterday

1 Answer 1

2

Ext4 takes 5% for reserved space for some odd reason. Removed it with: sudo tune2fs -m 0 /dev/mydevice

New contributor
Pita is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • 3
    This is probably fine if the drive is just for data storage. For disks being used for system purposes, as a root filesystem or another important part of the system, the blocks reserved for root ensure that your system doesn't immediately die if some unprivileged user fills the disk, so that root is suddenly unable to write to it. Commented yesterday

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.