> On Sat, 2005-06-04 at 20:26 -0700,
> [EMAIL PROTECTED] wrote: 
> > On 6/4/05, Arun Khan <[EMAIL PROTECTED]> wrote:
> > > Figure this one out.
> > > 
> > > /dev/hda6 is ~10GB per fdisk but 5.0GB per df (see below).
> > > 
> > > # fdisk -l
> > > Disk /dev/hda: 61.4 GB, 61492838400 bytes
> > > 255 heads, 63 sectors/track, 7476 cylinders
> > > Units = cylinders of 16065 * 512 = 8225280 bytes
> > > 
> > >    Device Boot      Start         End      Blocks   Id  System
> > > /dev/hda6            3457        4673     9775521   83  Linux
> > > 
> > > # df -h
> > > Filesystem            Size  Used Avail Use% Mounted on
> > > /dev/hda6             5.0G  1.9G  3.1G  38% /home
> > 
> > 
> > Where does fdisk say that the partition is 10GB? It says that the
> > partition contains 9775521 blocks. Each block is 512bytes, you get the
> > total size to be 5,005,066,752 or 5GB.
> > 
> > Thaths

On my SuSE 9.2 (x64), fdisk by default reports 1024 bytes/block.
See the fdisk/df report for /dev/hda

# fdisk -l
Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         386     3100513+   b  W95 FAT32
/dev/hda2             387        1023     5116702+   7  HPFS/NTFS
/dev/hda3            1024        7476    51833722+   5  Extended
/dev/hda5            1024        3456    19543041   83  Linux
/dev/hda6            3457        4673     9775521   83  Linux

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6             5.0G  1.9G  3.1G  38% /home
/dev/hda5              19G  8.5G  9.1G  49% /home/dnloads
/dev/hda1             3.0G  2.0G  988M  68% /windows/C
/dev/hda2             4.9G  2.2G  2.8G  44% /windows/D

The scenario in the above case is: a 5.0G /home (from another disk) was dd'd
over to a 10G device (hda6).

rgds,
akk




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to