Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub problems with USB harddisk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Barabas2005
n00b
n00b


Joined: 20 Mar 2005
Posts: 13
Location: The Netherlands

PostPosted: Fri Apr 15, 2005 1:54 am    Post subject: Grub problems with USB harddisk Reply with quote

Good evening all,

I have Windows XP and Gentoo Linux installed on my Clevo d900t notebook without a problem, except one:

After installing Windows XP and later Gentoo, grub worked fine until I connect my USB harddisk to the notebook. When I reboot grub stops giving a "error 17" code. I believe that means it cannot find the boot partition?

Grub will work again when I switch off the USB drive, but it is quite annoying having to do that everytime I reboot the computer (especially during installation of Windows and Gentoo this has to be done quite some times).

How can I prevent grub failing while having my USB harddisk connected during boot?

To give you some more details:
Windows is installed on sda1
/boot is on sdb1
/ is on sdb3
The USB drive is on sdd1 after booting Gentoo (strangely it is on sdc1 when booting from Gentoo installation CD).

Here is my grub.conf:
Code:
default 0
timeout 20

splashimage=(hd1,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r6
root (hd1,0)
kernel /kernel-2.6.11-gentoo-r6 root=/dev/sdb3

title=Windows XP Professional
rootnoverify (hd0,0)
makeactive
chainloader +1


Regards,

Barabas
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Fri Apr 15, 2005 10:33 am    Post subject: Reply with quote

Barabas2005,

It sounds like your drives are getting reordered. Add
Code:
title=Gentoo Linux 2.6.11-r6 (With USB Connected)
root (hd2,0)
kernel /kernel-2.6.11-gentoo-r6 root=/dev/sdc3

to your grub.conf and see if that boots.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Barabas2005
n00b
n00b


Joined: 20 Mar 2005
Posts: 13
Location: The Netherlands

PostPosted: Fri Apr 15, 2005 8:47 pm    Post subject: Reply with quote

The problem is that Grub doesn't even get that far that it shows me the list with OS's to boot. When booting it doesn' give the list, but it shows the following right away:

Code:
Grub loading stage 1.5.

Grub loading, please wait
Error17


So it looks like it is booting grub, but grub can't find it's files anymore. It may be - like you said - that the drives get mixed, but I have no way to see which drive is going where. When I boot from the Gentoo CD, the drives are shown in the same order as it is after booting from my notebook (I have to shut -down my external drive until the grub menu is shown).

Do I need to do something with the grub-install command to get things right?

Thanks,

Barabas
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55015
Location: 56N 3W

PostPosted: Fri Apr 15, 2005 9:52 pm    Post subject: Reply with quote

Barabas2005,

You need to edit /boot/grub/device.map
Your USB drive is probably not listed. This is how grub finds it way around.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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