LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-10-2009, 03:09 AM   #1
godfigure
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Grub, Stage1, and GRUB/BIOS detection of external hard drive


Ladies and Gentlemen (no offense meant).

I have run out of ideas, and so has the Net Forums.

Interesting problem: I have a MyBook connected via eSata internal PCI card. When this external drive is powered off, my hdX architecture looks normal (sda,sdb,sdc,sdd, MyBook powered later as 'sde' ) at boot time, when GRUB takes control. XP is on hda0, and /boot/[Ubuntu 8.10] is on hda1.

BUT....When the eSATA is powered at boot time, it precedes my IDE drive (0,0) and the takes the 'sda' position.

This behavior is probably obvious to some to be troublesome, as it displaces my boot partition from GRUB (hda,1) to (hdb,1). Interestingly, XP is unaffected, I suppose the writers of GRUB used wide latitude in giving the opportunity for Windows users to regain their distaste for the OS.

I know ONE solution is to leave the MyBook unpowered and drive home to power it up when I want to access it, but I would prefer to be able to work the solution, and remote reboot without adding commuting to the mix.

An added note:

I have the Menu to set fallbacks in case of failure to try the Ubuntu boot on the (hdb,1) as the first fallback if there is a failure. However, when the failure 'cannot find /boot image' (error 15, if I'm recall) the stage1 doesn't panic?? just drops to the shell..initramd -- Which I can drive home and hit <CTRL+ALT+DELETE> and the fallback takes hold and loads from the correct partition.

Can I change the behavior of the Stage1 portion via some command line 'stunt' of GRUB so it reboots automatically upon general errors, certain errors, or no matter what? Would this require me to get the source to Stage1 and rewrite the code, optimize for space (something I never cared about before --scary)? Or is there something out there already.

Or am I missing a simple solution that doesn't involve manually operation of the machine?

Thanks for any ideas you have -- I hope it is interesting.

G
 
Old 03-10-2009, 03:51 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,425

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
Nothing (directly) to do with grub - that's a BIOS issue. Grub was generated expecting to be on the "first" hard disk as indicated by the BIOS (it's just a flag setting). If some-one stuffs another disk in there as the first (0x80) disk, grub will happily go looking there for its stage files.
Can you set the (BIOS) boot order to have the external last ? - possibly not if it's not present all the time.
Sorry, can't think of any other obvious solution off the top of my head.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
grub on laptop with external hard drive Vetruvet Linux - Newbie 4 01-29-2008 06:27 AM
External Hard Drive GRUB Error magcius Linux - Hardware 4 05-15-2007 07:37 PM
more grub/external hard drive issues andy! Ubuntu 1 02-21-2007 03:30 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Hard drive not seen in BIOS - Grub issue? toko Linux - Hardware 1 04-16-2005 07:02 PM


All times are GMT -5. The time now is 04:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration