View previous topic :: View next topic |
Author |
Message |
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Thu Feb 23, 2006 8:57 am Post subject: Guru is too stupid for lilo or grub, Error 17 |
|
|
Well. On a friend's computer I added a new hard disk.
I wanted to move the linux completely onto this second new one, so her friend can add more easy a windows
installation without breaking anything.
So the old / was on /dev/hda1, now it is on /dev/hdb3.
I booted the gentoo install cd an chrooted into /dev/hdb3, changed in /etc/lilo.conf
to
I run lilo and it was happy. On booting it spits out L 99 99 99 99 and stops.
So I tried grub. I did something like:
Code: |
root (hd1,2)
kernel (hd1,2)/boot/vmlinunz-2.6.11 root=/dev/hdb3
setup (hd0)
|
grub than checkes (successfully) the stages 1 2 and e2fs-stage-2_5
and seems to be happy.
But before the grub menu appears it says Error 17.
Hey, the boot scenarion is rather simple, bootloader into MBR first disk, root is a stock ext3 /dev/hdb3. I really don't get it
Edit:
PS.: are there any bootcd images out there, which allow me to pass root=/dev/hdb3 to the kernel to boot natively the installation?
I tried gentoo and debian, but they are so highly modulated so they don't contain an ide driver anymore in kernel. |
|
Back to top |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Thu Feb 23, 2006 9:11 am Post subject: Re: Guru is too stupid for lilo or grub, Error 17 |
|
|
According to Grub Error Collection [Part 4] [POST GRUB QUESTIONS HERE!], error 17 is caused by:
idoneus wrote: | [*]Grub error 17
info grub wrote: | 17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
| Be sure to check your root(x,y) settings in your grub.conf. |
You do not say what your /boot partition is...
Konsti wrote: | Code: |
root (hd1,2)
kernel (hd1,2)/boot/vmlinunz-2.6.11 root=/dev/hdb3
setup (hd0)
|
|
What you have above says that the /boot partition is /dev/hdb3, same as the / partition.. Is this correct?
specifies the /boot partition..
EDIT:
You might like to take a look at the Configuring the Bootloader section of the Gentoo Handbook. _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Thu Feb 23, 2006 9:42 am Post subject: |
|
|
Yes, /boot is a subdirectory in / on /dev/hdb3.
Can the error be caused due to the fact that /dev/hdb3 is behind the 138GB border?
/dev/hdb1 is 120G fat32 and /dev/hdb2 is 20GB fat32.
Can't lilo or grub handle this scenario? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Feb 23, 2006 1:36 pm Post subject: |
|
|
L 99 99 99 99
I have encountered this before. This means you have an old broken Lilo installation on MBR. I used dd to overwrite MBR and got rid of it. |
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Thu Feb 23, 2006 1:55 pm Post subject: |
|
|
Jaglover wrote: | This means you have an old broken Lilo installation on MBR. |
While experimenting now, I changed the MBR from grub to lilo and vice versa.
So "L 99 99..." from lilo or "Error 17" from grub. So I suppose the mbr gets written from each other new.
How do I erase the MBR anyway? The first xxx Bytes IIRC, but not 512 (partition Table)? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Feb 23, 2006 2:19 pm Post subject: |
|
|
Well... I do not have theoretic knowledge to explain it. It happened to me long time ago. I pulled an IDE disk with Linux installation from one box and installed it into another. And no matter how I fought with various disk utilities every time I started that box L 99 99 ... thing came up. In my case there was no partition table to retain. So I issued dd if=/dev/zero of=/dev/hda count=1 bs=512 and that made the disk usable. |
|
Back to top |
|
|
lesourbe l33t
Joined: 24 Nov 2005 Posts: 710 Location: Champagne !
|
Posted: Thu Feb 23, 2006 2:32 pm Post subject: |
|
|
You did not forget to change your fstab accordingly, did you ? _________________ Is that a banhammer ?
LeSourbe, Member of EPowerforce. |
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Thu Feb 23, 2006 2:33 pm Post subject: |
|
|
It is worth a try. I could recreate the partition table after. only hdb4 has to be recovered, but noting and reusing the cylinder data should not harm the phsikal volume in hdb4.
I think about this because I found no hint, that /boot in /
has to be before a special boundary even on modern machines or harddisks anymore...
|
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Thu Feb 23, 2006 2:35 pm Post subject: |
|
|
lesourbe wrote: | You did not forget to change your fstab accordingly, did you ? |
What should that be for? Is it used by lilo or grub installing the mbr? They have own config files for that... |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Feb 23, 2006 2:36 pm Post subject: |
|
|
You wrote you added new HDD. How new it was anyway? Perhaps it has something odd in its MBR? |
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Thu Feb 23, 2006 2:40 pm Post subject: |
|
|
The old was and is still the first hda. The new is hdb now.
fat32 data and linux. so MBR is still on hda... |
|
Back to top |
|
|
lesourbe l33t
Joined: 24 Nov 2005 Posts: 710 Location: Champagne !
|
Posted: Sun Feb 26, 2006 12:02 pm Post subject: |
|
|
Konsti wrote: | lesourbe wrote: | You did not forget to change your fstab accordingly, did you ? |
What should that be for? Is it used by lilo or grub installing the mbr? They have own config files for that... |
well I misread your post, I thought the error came after lilo or grub ...
sorry _________________ Is that a banhammer ?
LeSourbe, Member of EPowerforce. |
|
Back to top |
|
|
dj_farid l33t
Joined: 14 Jun 2004 Posts: 613
|
Posted: Sun Feb 26, 2006 1:13 pm Post subject: |
|
|
What does fdisk say about your both disks?
Which partition is active? Which partitions are extended and which are primary? |
|
Back to top |
|
|
Tamsco Guru
Joined: 04 Aug 2004 Posts: 313 Location: dmse.mit.edu
|
Posted: Sun Feb 26, 2006 4:11 pm Post subject: |
|
|
I'm confused, what's on hdb1 and hdb2?
Please post you grub.conf and /etc/fstab. _________________ If you get your problem solved put a [SOLVED] in the title!
Is OpenOffice still compiling?! |
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Mon Feb 27, 2006 11:47 am Post subject: |
|
|
The computer is now away at my friend's home. I have no hands on it anymore.
hdb1 and hdb2 were fat32 partitions and hdb3 contained the /
I switched now hdb3 and hdb1 so the 1GB / ist first partition and grub and lilo are happy now.
All Partitions are primary. |
|
Back to top |
|
|
|