-1

I can't boot Windows XP after installing Ubuntu 12.04 and what is worst is that I don't have the Windows XP installation CD.

kathy@kathy-HP-Compaq:~$ sudo fdisk -l
[sudo] password for kathy: 

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc51bc51b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    41957999    20978968+   7  HPFS/NTFS/exFAT
/dev/sda2        41958061   156301311    57171625+   f  W95 Ext'd (LBA)
/dev/sda5        41958063   101887679    29964808+   7  HPFS/NTFS/exFAT
/dev/sda6       154224640   156301311     1038336   82  Linux swap / Solaris
/dev/sda7       101888000   154222591    26167296   83  Linux

Partition table entries are not in disk order

Disk /dev/mapper/cryptswap1: 1063 MB, 1063256064 bytes
255 heads, 63 sectors/track, 129 cylinders, total 2076672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x693811c2

Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table

please teach me how to do this things cuz i got limited knowledge in computer teach me like u teach your little sister.

Javier Rivera
  • 35,434
kathy
  • 9

1 Answers1

0

Just install boot-repair and try to restore mbr. Type this in terminal (CTRL + Alt+T)

  1. sudo add-apt-repository ppa:yannubuntu/boot-repair
  2. sudo apt-get update
  3. sudo apt-get install -y boot-repair && (boot-repair &)

or use live ubuntu cd/usb and install equivalent MBR to your sda drive by doing the following (it helps you to boot directly into Windows again if all goes well):

  1. sudo apt-get install lilo
  2. sudo lilo -M /dev/sda mbr