windows en grup
Jrlmailing
jrlmailing op gmail.com
Wo Jan 23 10:07:10 UTC 2008
Milton schreef:
> Beste listers,
>
> Ik had Ubuntu 7.10 naast Windows geïnstalleerd. Met behulp van Orca ben
> ik Ubuntu aan het verkennen en wil op termijn overschakelen van Windows
> naar Ubuntu.
> Na een crash van Windows kon ik met een image de zaak terugzetten.
> Echter krijg ik geen GRUB te zien om te kunnen kiezen tussen Ubuntu en
> Windows. Er verschijnt bij het opstarten een melding: ERROR 17.
> Ubuntu kan ik zonder problemen opnieuw installeren maar hoe krijg ik het
> voor elkaar om Windows weer op te starten?
> Alvast bedankt.
>
> Groetjes,
> Milton
>
zie op volgende url:
http://ubuntuforums.org/showthread.php?t=442945
a better solution
I got this error after installing the Ubuntu 7.10 release candidate.
The error usually happens because Linux and your BIOS detect your hard
disks in different orders. GRUB tries to translate between the two using
the device.map file in /boot/grub/device.map, which is automatically
generated. Chances are, it guessed wrong.
In my case, I have three SATA hard disks.
My BIOS sees them as:
HDD1 - 80 GB - Windows
HDD2 - 80 GB - Linux
HDD3 - 250 GB - Media
Linux sees them as:
/dev/sda - 80 GB - Windows
/dev/sdb - 250 GB - Media
/dev/sdc - 80 GB - Linux
So it generated device.map assuming that order was correct, i.e.:
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
When the installer installed GRUB using that data, it tried to install
the first part of GRUB on /dev/sda and told it to look for the OS on
/dev/sdc. Unfortunately, this translated to "install on (hd0) then look
for the OS on (hd2)", so it was looking for the OS on the wrong drive.
To fix it, you have to teach GRUB which order the BIOS uses. To do this,
follow these steps:
1) Boot from the Ubuntu CD
2) Open a Terminal (Applications->Accessories->Terminal)
3) Run "sudo -s"
4) Run "mkdir /ubuntu"
5) Run "mount /dev/sdc1 /ubuntu" (where /dev/sdc1 is your Linux root
partition)
6) Run "chroot /ubuntu"
7) Run "cd /boot/grub"
Edit device.map (using vi or another text editor)
In my case, my new device.map was:
(hd0) /dev/sda
(hd1) /dev/sdc
(hd2) /dev/sdb
which told GRUB that sdc was really the second hard drive, not the third.
9) Run "grub --device.map=device.map"
10) Type "root (hd1,0)" (where hd1,0 is your Linux boot or root
partition using the BIOS order)
11) Type "setup (hd0)" (where hd0 is your first boot drive, almost
always hd0)
You should see a message that it's now telling GRUB to load 17+(hd1,0)
instead of 17+(hd2,0) or something like that. This is what we want.
12) Edit menu.lst
You need to change references from (hd2,0) to (hd1,0), or whatever your
Linux boot drive was autodetected as to whatever it is according to your
BIOS.
If you get this step wrong, you'll see an error message something like:
Error 17: Cannot mount selected partition
meaning it's looking for a Linux file system on that partition, but it
can't find one (because the drive device number is wrong in menu.lst).
13) Reboot
--
Jrl
Ubuntu gemakkelijk mooi & betrouwbaar
Meer informatie over de Ubuntu-NL
maillijst