Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-12-2003, 08:45 PM   #1
Registered: Jan 2003
Posts: 42

Rep: Reputation: 15
My harddisk spaces disappeared

Dear all,

I have a 80GB harddisk, I divided it to two partitiions.
hda1 is for "/"
hda2 is for swap (512MB)

I use the command "df -m" to check my diskspace.
It report me:

Filesystem1M-blocks Used Available
/dev/hda1 76809 2663 70245

The sum of "Used" and "Avaiable" is 4000MB less than the "1M blocks"

Where is my 4000MB diskspaces?

I have several computers which also installed RedHat LInux(different versions). There are also 3-4GB diskspace disappeared?

Are those spaces reserved by the system(is it really need 4GB?) or other probelm?

Old 03-12-2003, 08:52 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 121Reputation: 121
most likely you have space that is either not allocated to a filesystem or you have a filesystem that is not mounted. You can see unallocated space by running 'cfdisk' as root. If all the space is allocated, you may have a filesystem that is no mounted.

If you are still confused post the output of the following commands:
cfdisk -P s
df -k
Old 03-12-2003, 10:05 PM   #3
Registered: Jan 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Since I don't have cfdisk, I use the "sfdisk -l " which can also report all the detail of the partitions.

Disk /dev/hda: 10011 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 9947 9948- 79907309+ 83 Linux
/dev/hda2 9948 10010 63 506047+ 82 Linux swap
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty

for "df -k"
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 78652836 2726524 71930948 4% /
none 128108 0 128108 0% /dev/shm

Could you see any problem inisde?
Old 03-12-2003, 11:18 PM   #4
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Some of its probably due to filesystem over head and some to the fact that hard drive manufactures like to think of a gig as 1k megabytes instead of 1024.

on my system with /dev/hde being a "20" gig drive i have the following output from df -h:

/dev/hde7 5.2G 3.4G 1.9G 65% /
/dev/hde6 2.0G 1.1G 917M 55% /root
/dev/hde1 12G 8.9G 3.0G 75% /mnt/windows
/dev/hdg1 7.7G 3.8G 4.0G 49% /usr

dev/hde adds up to about 19 gigs.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
filenames with spaces antony.booth Programming 5 11-01-2005 04:49 AM
Is it possible to remove spaces Alex_jacobson Linux - General 4 01-16-2005 10:45 AM
Way to many spaces LuderForChrist Linux - Newbie 4 06-25-2004 02:29 PM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM
spaces WindowsDefector Linux - Newbie 2 05-23-2002 02:03 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:51 AM.

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