[lug] fdisk

Mark Horning rip6 at home.com
Sat Oct 23 23:25:19 MDT 1999


llornkcor wrote:
> 
> Well I am in a humdinger-
> While messing with fips and ms-dos fdisk, the partition table of my linux disk
> got mangled. Somehow it still boots.... :o) Does anyone know how I can edit the
> partition table and take out the superfluous entries?
> fdisk reads it as-
> 
> Disk /dev/hda: 255 heads, 63 sectors, 1027 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1             4      1027   8225280    c  Win95 FAT32 (LBA)
> /dev/hda2           639      1027   3124642+   5  Extended
> /dev/hda5           639       766   1028128+  83  Linux
> /dev/hda6           767       894   1028128+  83  Linux
> /dev/hda7           895      1009    923706   83  Linux
> /dev/hda8          1010      1027    144553+  82  Linux swap
> 
> Command (m for help): v
> Warning: partition 1 overlaps partition 5.
> Warning: partition 1 overlaps partition 6.
> Warning: partition 1 overlaps partition 7.
> Warning: partition 1 overlaps partition 8.
> 48186 unallocated sectors
> 
> I need to keep hda5,6,7,8, while nothing is on hda1.
> 
> LP

Using fdisk, delete partition hda1 and recreate a it with the "correct"
info - start 1, end 638 then toggle the partition type to win95 
(type b or c). Shouldn't be a problem, you may need to delete
all partitions and then recreate them per your info above, but you
shouldn't lose any data.
I've been known to create these type of problems for myself quite
a bit over the years :-)

-- 

Mark Horning
rip6 at home.com




More information about the LUG mailing list