Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Guru is too stupid for lilo or grub, Error 17
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 8:57 am    Post subject: Guru is too stupid for lilo or grub, Error 17 Reply with quote

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
Code:

root=/dev/hda1

to
Code:

root=/dev/hdb3


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
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Thu Feb 23, 2006 9:11 am    Post subject: Re: Guru is too stupid for lilo or grub, Error 17 Reply with quote

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?

Code:
root (hd1,2)
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
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 9:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Feb 23, 2006 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 1:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Feb 23, 2006 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
lesourbe
l33t
l33t


Joined: 24 Nov 2005
Posts: 710
Location: Champagne !

PostPosted: Thu Feb 23, 2006 2:32 pm    Post subject: Reply with quote

You did not forget to change your fstab accordingly, did you ?
_________________
Is that a banhammer ?
LeSourbe, Member of EPowerforce.
Back to top
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Feb 23, 2006 2:36 pm    Post subject: Reply with quote

You wrote you added new HDD. How new it was anyway? Perhaps it has something odd in its MBR?
Back to top
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Thu Feb 23, 2006 2:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
lesourbe
l33t
l33t


Joined: 24 Nov 2005
Posts: 710
Location: Champagne !

PostPosted: Sun Feb 26, 2006 12:02 pm    Post subject: Reply with quote

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 :oops:
_________________
Is that a banhammer ?
LeSourbe, Member of EPowerforce.
Back to top
View user's profile Send private message
dj_farid
l33t
l33t


Joined: 14 Jun 2004
Posts: 613

PostPosted: Sun Feb 26, 2006 1:13 pm    Post subject: Reply with quote

What does fdisk say about your both disks?
Which partition is active? Which partitions are extended and which are primary?
Back to top
View user's profile Send private message
Tamsco
Guru
Guru


Joined: 04 Aug 2004
Posts: 313
Location: dmse.mit.edu

PostPosted: Sun Feb 26, 2006 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Konsti
l33t
l33t


Joined: 10 Dec 2002
Posts: 691

PostPosted: Mon Feb 27, 2006 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum