windows overwrote boot record

Karl Klinger karlok at fastmail.fm
Fri Aug 22 00:53:24 UTC 2008


Juan Kawada wrote:
> ubuntu at ubuntu:~$ sudo fdisk -l
> omitting empty partition (5)
> 
> Disk /dev/sda: 320.0 GB, 320072933376 bytes
> 255 heads, 63 sectors/track, 38913 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk identifier: 0x724bd9dc
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1        6869    55175211    7  HPFS/NTFS
> /dev/sda2            6870       11778    39431542+   7  HPFS/NTFS
> /dev/sda3           11779       38913   217961887+   5  Extended
> /dev/sda4           38162       38913     6040408+  82  Linux swap / Solaris
> /dev/sda5           11779       38161   211921384+  83  Linux
> 
It looks like your partition table is messed up.  The extended partition 
should always be sda4.  This is my fdisk -l output:

/dev/sda1   *           1        1216     9767488+   7  HPFS/NTFS
/dev/sda2            1217        1581     2931862+  82  Linux swap / Solaris
/dev/sda4            1582        9212    61296007+   5  Extended
/dev/sda5            1582        2797     9767488+  83  Linux
/dev/sda6            3539        6445    23350446   83  Linux
/dev/sda7            6446        7632     9534546   83  Linux
/dev/sda8            7633        9212    12691318+  83  Linux

Note that it skips sda3 to make sda4 the extended partition.  Off-hand I 
don't know of a way to fix this, but maybe I'll think of something.

Karl




More information about the kubuntu-users mailing list