[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

partition table incorrect/ fdisk messed up?



Hi everyone,

in the course of fixing another problem (thanks for the help everyone)
I discovered something odd on my system.  

My (currently oly) hard drive is an 80-gig maxtor.  here's the
partition table:

--------------------
 sudo fdisk /dev/hda

The number of cylinders for this disk is set to 9732.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 9732 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1       373   2996091   83  Linux
/dev/hda2           374       871   4000185   83  Linux
/dev/hda3           872      1120   2000092+  83  Linux
/dev/hda4          1121      5116  32097870    5  Extended
/dev/hda5          1121      1493   2996091   83  Linux
/dev/hda6          1494      1991   4000153+  83  Linux
/dev/hda7          1992      2489   4000153+  83  Linux
/dev/hda8          2490      2684   1566306   82  Linux swap
/dev/hda9          2685      3900   9767488+  83  Linux
/dev/hda10         3901      5116   9767488+  83  Linux


-----------

and here's the output of df -h

matt@anarres:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             2.8G  1.7G  1.0G  63% /
/dev/hda2             3.8G  2.4G  1.2G  67% /usr
/dev/hda3             1.9G  804M 1021M  45% /usr/local
/dev/hda5             2.8G  1.2G  1.4G  44% /var
/dev/hda6             3.8G   74M  3.4G   3% /tehanu
/dev/hda7             3.8G   82M  3.4G   3% /tehanu/usr
/dev/hda9              19G  6.5G   11G  37% /moreaudio
/dev/hda10            9.2G  5.8G  2.9G  67% /home

-------------------------------------

as I read these two tables, I should have just under half the disk
free, amounting to almost 40 gig.  And yet when I try to add a
partition in fdisk ('n'), it tells me "No free sectors available".
What am I missing?  

one last bit of information:  in "expert" mode (obviously I don't
quali\fy!), fdisk prints the following alist of extended partitions:


Expert command (m for help): e

Disk /dev/hda: 255 heads, 63 sectors, 9732 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl    Start     Size ID
 4 00 254  63 1023 254  63 1023 17992800 64195740 05
 5 00 254  63 1023 254  63 1023  5992245  8000370 05
 6 00 254  63 1023 254  63 1023 13992615  8000370 05
 7 00 254  63 1023 254  63 1023 21992985  3132675 05
 8 00 254  63 1023 254  63 1023 25125660 19535040 05
 9 00 254  63 1023 254  63 1023 44660700 19535040 05
10 00   0   0    0   0   0    0        0        0 00

does anyone know why hda10 (/home!) has only 0's in its listing?

thanks as usual!!!,
matt



Reply to: