Burette
December 7th, 2008, 06:58 PM
This is a common problem but after reading most threads, I not smart enough to make it work on my own.
I have two physical hard drive
a 160Gb
a 640 Gb
I wanted to have both WinXP and Ubuntu on the smallest one and kept the 640 Gb for files using Ext 3
Here is an output from :
sudo fdisk -lu
Disque /dev/sda: 160.0 Go, 160041885696 octets
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x063c78ea
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 63 39616289 19808113+ 7 HPFS/NTFS
/dev/sda2 41945715 73400984 15727635 83 Linux
/dev/sda3 73400985 83891429 5245222+ 83 Linux
/dev/sda4 83891430 312576704 114342637+ 5 Extended
/dev/sda5 83891493 92277359 4192933+ 82 Linux swap / Solaris
/dev/sda6 92277423 312576704 110149641 7 HPFS/NTFS
Disque /dev/sdb: 640.1 Go, 640135028736 octets
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x1ad0db90
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 63 1250258624 625129281 83 Linux
Disque /dev/sdd: 4009 Mo, 4009230336 octets
255 heads, 63 sectors/track, 487 cylinders, total 7830528 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x000c19c9
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdd1 63 7823654 3911796 b W95 FAT32
Disque /dev/sde: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x41ffc810
Périphérique Amorce Début Fin Blocs Id Système
/dev/sde1 * 63 976768064 488384001 c W95 FAT32 (LBA)
The sda1 is Windows
The sda2 is Linux /
The sda3 is Linux /home
The sda5 is SWAP
The sda6 is Windows NTFS files
The sdb1 is Linux files in EXT3
Then
sudo xxd -l 2 -p /dev/sda
the output is
eb48
sudo xxd -s 1049 -l 2 -p /dev/sda
the output is:
01ff
sudo xxd -l 2 -p /dev/sdb
the output is:
eb48
sudo xxd -s 1049 -l 2 -p /dev/sdb
the output is:
01ff
sudo xxd -l 2 -p /dev/sdd
the output is:
fa33
sudo xxd -l 2 -p /dev/sde
the output is:
33c0
Then
sudo gedit /boot/grub/menu.lst
Ouput is:
title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid 07202457-5112-48ca-bc92-322e0019b3b6
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=07202457-5112-48ca-bc92-322e0019b3b6 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 07202457-5112-48ca-bc92-322e0019b3b6
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=07202457-5112-48ca-bc92-322e0019b3b6 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, memtest86+
uuid 07202457-5112-48ca-bc92-322e0019b3b6
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professionnel
rootnoverify (hd1,0)
#savedefault
#makeactive
#map (hd0) (hd1)
#map (hd1) (hd0)
chainloader +1
First, the system worked and then Windows stopped to boot and only Ubuntu is still working.
Any help would be appreciated
Nicolas
I have two physical hard drive
a 160Gb
a 640 Gb
I wanted to have both WinXP and Ubuntu on the smallest one and kept the 640 Gb for files using Ext 3
Here is an output from :
sudo fdisk -lu
Disque /dev/sda: 160.0 Go, 160041885696 octets
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x063c78ea
Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 * 63 39616289 19808113+ 7 HPFS/NTFS
/dev/sda2 41945715 73400984 15727635 83 Linux
/dev/sda3 73400985 83891429 5245222+ 83 Linux
/dev/sda4 83891430 312576704 114342637+ 5 Extended
/dev/sda5 83891493 92277359 4192933+ 82 Linux swap / Solaris
/dev/sda6 92277423 312576704 110149641 7 HPFS/NTFS
Disque /dev/sdb: 640.1 Go, 640135028736 octets
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x1ad0db90
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 * 63 1250258624 625129281 83 Linux
Disque /dev/sdd: 4009 Mo, 4009230336 octets
255 heads, 63 sectors/track, 487 cylinders, total 7830528 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x000c19c9
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdd1 63 7823654 3911796 b W95 FAT32
Disque /dev/sde: 500.1 Go, 500107862016 octets
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 secteurs
Units = secteurs of 1 * 512 = 512 bytes
Identifiant disque: 0x41ffc810
Périphérique Amorce Début Fin Blocs Id Système
/dev/sde1 * 63 976768064 488384001 c W95 FAT32 (LBA)
The sda1 is Windows
The sda2 is Linux /
The sda3 is Linux /home
The sda5 is SWAP
The sda6 is Windows NTFS files
The sdb1 is Linux files in EXT3
Then
sudo xxd -l 2 -p /dev/sda
the output is
eb48
sudo xxd -s 1049 -l 2 -p /dev/sda
the output is:
01ff
sudo xxd -l 2 -p /dev/sdb
the output is:
eb48
sudo xxd -s 1049 -l 2 -p /dev/sdb
the output is:
01ff
sudo xxd -l 2 -p /dev/sdd
the output is:
fa33
sudo xxd -l 2 -p /dev/sde
the output is:
33c0
Then
sudo gedit /boot/grub/menu.lst
Ouput is:
title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid 07202457-5112-48ca-bc92-322e0019b3b6
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=07202457-5112-48ca-bc92-322e0019b3b6 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 07202457-5112-48ca-bc92-322e0019b3b6
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=07202457-5112-48ca-bc92-322e0019b3b6 ro single
initrd /boot/initrd.img-2.6.27-9-generic
title Ubuntu 8.10, memtest86+
uuid 07202457-5112-48ca-bc92-322e0019b3b6
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Microsoft Windows XP Professionnel
rootnoverify (hd1,0)
#savedefault
#makeactive
#map (hd0) (hd1)
#map (hd1) (hd0)
chainloader +1
First, the system worked and then Windows stopped to boot and only Ubuntu is still working.
Any help would be appreciated
Nicolas