Macamba
April 19th, 2009, 07:35 AM
Hi,
The other day I had to install XP again. As I had to format the partition, my boot loader was lost. I put it back using the Ubuntu Live CD, but after reboot I got an 'Error 17: Cannot mount selected partition'.
This is what I did:
1 Boot Ubunut from CD
2 Opened a terminal, performed a
sudo fdisk -l
The result was:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6375 51207156 7 HPFS/NTFS
/dev/sda2 6376 25497 153597465 6 FAT16
/dev/sda3 25498 91201 527767380 f W95 Ext'd (LBA)
/dev/sda5 25498 31871 51199123+ 7 HPFS/NTFS
/dev/sda6 31872 38245 51199123+ 7 HPFS/NTFS
/dev/sda7 38246 44619 51199123+ 7 HPFS/NTFS
/dev/sda8 44620 46186 12586896 83 Linux
/dev/sda9 46187 57080 87506023+ 83 Linux
/dev/sda10 57081 57367 2305296 82 Linux swap / Solaris
/dev/sda11 57368 70115 102398278+ 7 HPFS/NTFS
/dev/sda12 70116 82863 102398278+ 7 HPFS/NTFS
/dev/sda13 82864 91201 66974953+ 7 HPFS/NTFS
3 Next I performed a
sudo grub
4 And to be sure I had the correct partition, I performed
grub> fdisk -l
with the result
find /boot/grub/stage1
(hd0,7)
grub>
5 Next I instructed Grub where my Ubuntu partition is by entering
root (hd0,7)
setup (hd0)
quit
6 So far as instructed by the book. To be absolutely sure, I tried to find menu.lst by entering
sudo gedit /boot/grub/menu.lst
This was the result:
## ## End Default Options ##
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,10)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
And I noticed
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,10)
7 Then I restarted my system. The boot menu came up fine. I can boot *******. But when I choose to boot Linux I get
Error 17: Cannot mount selected partition
Do I get this error because I'm trying to boot from my Swap partition? How can I change (hd0,10) to (hd0,7) when I can not write menu.lst (because it is part of a file system I have no write access to)?
Macamba
The other day I had to install XP again. As I had to format the partition, my boot loader was lost. I put it back using the Ubuntu Live CD, but after reboot I got an 'Error 17: Cannot mount selected partition'.
This is what I did:
1 Boot Ubunut from CD
2 Opened a terminal, performed a
sudo fdisk -l
The result was:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6375 51207156 7 HPFS/NTFS
/dev/sda2 6376 25497 153597465 6 FAT16
/dev/sda3 25498 91201 527767380 f W95 Ext'd (LBA)
/dev/sda5 25498 31871 51199123+ 7 HPFS/NTFS
/dev/sda6 31872 38245 51199123+ 7 HPFS/NTFS
/dev/sda7 38246 44619 51199123+ 7 HPFS/NTFS
/dev/sda8 44620 46186 12586896 83 Linux
/dev/sda9 46187 57080 87506023+ 83 Linux
/dev/sda10 57081 57367 2305296 82 Linux swap / Solaris
/dev/sda11 57368 70115 102398278+ 7 HPFS/NTFS
/dev/sda12 70116 82863 102398278+ 7 HPFS/NTFS
/dev/sda13 82864 91201 66974953+ 7 HPFS/NTFS
3 Next I performed a
sudo grub
4 And to be sure I had the correct partition, I performed
grub> fdisk -l
with the result
find /boot/grub/stage1
(hd0,7)
grub>
5 Next I instructed Grub where my Ubuntu partition is by entering
root (hd0,7)
setup (hd0)
quit
6 So far as instructed by the book. To be absolutely sure, I tried to find menu.lst by entering
sudo gedit /boot/grub/menu.lst
This was the result:
## ## End Default Options ##
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-22-generic (recovery mode)
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro single
initrd /boot/initrd.img-2.6.24-22-generic
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,10)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=bf978112-024f-4cd6-95d4-8bc32588e26f ro single
initrd /boot/initrd.img-2.6.24-19-generic
title Ubuntu 8.04.1, memtest86+
root (hd0,10)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
And I noticed
title Ubuntu 8.04.1, kernel 2.6.24-22-generic
root (hd0,10)
7 Then I restarted my system. The boot menu came up fine. I can boot *******. But when I choose to boot Linux I get
Error 17: Cannot mount selected partition
Do I get this error because I'm trying to boot from my Swap partition? How can I change (hd0,10) to (hd0,7) when I can not write menu.lst (because it is part of a file system I have no write access to)?
Macamba