LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-22-2021, 02:54 PM   #1
Morbius1
LQ Newbie
 
Registered: Dec 2021
Posts: 2

Rep: Reputation: Disabled
Wrong size of unused space on /home partition shown by GPARTED after installing Kali Linux


Hello. I am new to this forum and I hope that I post at the right place.

I have just completed my first installation of Kali Linux on my system (NVMe SSD).

I have partitioned the space for Kali as follows:
swap : 12 GB (I have 12 GB RAM)
/ : 60 GB
/home : 350 GB

However, just after installation, GPARTED indicates that my /home partition has:
used space: 6 GB
unused space: 319 GB

I find it weird to have 6 GB of home space already used when I haven’t even started to use this newly installed system !

To be noted that I have another installation – Linux Mint LMDE4 – on the same system/SSD and I do not face this problem: right after installation, GPARTED indicated just a few MB of used space on /home.

Could anyone guess what’s going on ?
 
Old 12-22-2021, 04:14 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,341

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
I suggest that you list the files on the new /home partition to see what is on it.

boot into Linux Mint LMDE4

open a terminal

su to root

create a mountpoint, say /media/xxx

mount the new /home partition on the mount point

issue the ls command: ls -l /media/xxx


You should get a listing of the directories and files on the new /home
 
Old 12-22-2021, 05:35 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,758

Rep: Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930Reputation: 5930
What is displayed in gparted is the total amount of space used in relation to the partition not the filesystem itself. Filesystems contain metadata which basically is the stuff necessary to find your files. How much overhead depends on the filesystem type and ext4 is around 2%. Total space used = files + metadata = 350GB.

What is displayed using filesystem tools like df does not include metadata. In addition if using ext4 there is reserved space (defaults 5%) which is also not included.

I don't think gparted has changed....
 
Old 12-23-2021, 01:39 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,954

Rep: Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329
additionally I would try to use df to check that partition/filesystem.
 
Old 12-23-2021, 01:21 PM   #5
Morbius1
LQ Newbie
 
Registered: Dec 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Many thanks for your answers. As per the advice I was given, I did the following.

Code:
┌──(root💀kali)-[/]
└─# mkdir /media/med
┌──(root💀kali)-[/]
└─# mount --bind /home /media/med
┌──(root💀kali)-[/]
└─# ls -lh /media/med                                                  130 ⨯
total 20K
drwxr-xr-x 16 db   db   4.0K Dec 23 22:51 db
drwx------  2 root root  16K Dec 23 22:28 lost+found

Code:
┌──(root💀kali)-[/]
└─# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            5.8G     0  5.8G   0% /dev
tmpfs           1.2G  1.3M  1.2G   1% /run
/dev/nvme0n1p3   55G   11G   42G  21% /
tmpfs           5.9G  164M  5.7G   3% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/nvme0n1p4  320G  192M  304G   1% /home
/dev/sda1       196M   21M  176M  11% /boot/efi
tmpfs           1.2G  860K  1.2G   1% /run/user/1000
So I will take it from here and assume that this used space on /home comes from those metadata and reserved space, that it is just normal, and that there is no possible action from me to 'free' this space.
 
Old 12-24-2021, 05:21 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
There's also something called "reserved blocks".
See
Code:
man tune2fs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
Free space not showing correct after increasing root partition size with GParted. avanindra Linux - Newbie 3 08-06-2009 07:49 AM
How to get Hard Disc memory size used and unused space in c/c++ Linux program dwijesh Linux - Hardware 4 06-26-2009 01:35 AM
User shown as "already exist" when there is no user directory shown on home directory Sharpeye Linux - Newbie 3 03-18-2009 01:17 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration