HD 40 GB but 31 GB instead

Matthias Saou matthias at rpmforge.net
Mon Oct 27 20:07:22 UTC 2003


cantisan wrote :

> Before the command:
> 
> /dev/hdd1              31G  4.4G   25G  15% /des
> 
> After:
> 
> #tune2fs -m 0 /dev/hdd1
> tune2fs 1.26 (3-Feb-2002)
> Setting reserved blocks percentage to 0 (0 blocks)
> [root at GPSTEC5 root]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hdd1              31G  4.4G   26G  15% /des
> 
> 
> Need I to format again ?

I don't think so. Unless you haven't used the entire disk when creating the
partition with fdisk, what you've got is all you can have. Here's for
instance disks from various vendors sold as 80GB, 120GB and 60GB
respectively...

# df -h
Filesystem            Size  Used Avail Use% Mounted on
[...]
rave:/data             69G   63G  6.2G  92% /mnt/rave
neurone:/120          111G  109G  1.3G  99% /mnt/120
neurone:/data          56G   55G  230M 100% /mnt/neurone

As I said above, you can check that you've used up all the disk's space
when creating the partition. For instance, here the partition starts at 1
and the two "784" values match, so I'm sure there isn't any unused space
left.

# fdisk -l /dev/hdc
 
Disk /dev/hdc: 255 heads, 63 sectors, 784 cylinders
Units = cylinders of 16065 * 512 bytes
 
   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1       784   6297448+  83  Linux

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 0.95 (Severn) - Linux kernel 2.4.22-20.1.2024.2.36.nptl
Load : 0.24 0.19 0.23





More information about the test mailing list