LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   My harddisk spaces disappeared (https://www.linuxquestions.org/questions/linux-general-1/my-harddisk-spaces-disappeared-49527/)

gsbarry 03-12-2003 08:45 PM

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?

Thanks,
Barry.

crabboy 03-12-2003 08:52 PM

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:
Code:

cfdisk -P s
df -k


gsbarry 03-12-2003 10:05 PM

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?

m0rl0ck 03-12-2003 11:18 PM

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.


All times are GMT -5. The time now is 07:05 PM.