LinuxQuestions.org
Help answer threads with 0 replies.
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 01-28-2008, 03:57 PM   #1
Vetruvet
Member
 
Registered: Jan 2008
Distribution: openSUSE 11.2
Posts: 42

Rep: Reputation: 15
grub on laptop with external hard drive


I've been using openSUSE 10.3 for about half a year now. I have XP installed on the internal SATA hard drive of the laptop (/dev/sda) and openSUSE on the external USB hard drive (/dev/sdb).

I had grub installed on a small /boot partition (~100MB) on the internal hard drive. It booted and showed me the menu. I could always boot into XP, and also into openSUSE when the external hard drive was plugged in. However, I had to reinstall openSUSE and don't remember how I got grub configured last time.

Now, if the external hard drive isn't plugged in, grub gives Error 21 (hard drive not found). If it is plugged in, it gives Error 15 (file not found). I can still boot into either OS using the "Rescue installed system" option on the openSUSE CD.

Does anyone know how to configure grub in my case?

Thanks
 
Old 01-28-2008, 05:27 PM   #2
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
that error shows on re-install of grub....you put the bootloader link files to the external

just redo grub in mbr to re-link to the internal ones.

a live cd is best

Code:
su
grub
root (hd0,0)....read my signature if linux /boot is not first partition
setup (hd0)
quit
2) if you have no live cd...suse should have a recovery mode or rescue mode where you can re-install the bootloader...hopefully with an option to go to internal drive but maybe not....in which see if it has an option to go to console mode...then try above commands

if you do not understand grubspeak after reading my sig tell us your internal drive partitions pls
 
Old 01-28-2008, 09:07 PM   #3
Vetruvet
Member
 
Registered: Jan 2008
Distribution: openSUSE 11.2
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks A LOT for the quick reply.

Well, I did as you instructed (except I used (hd0,4), because the /boot partition is /dev/sda5). Now it will boot XP. I see the menu flash for a split second before it boots XP. I'm assuming I need to edit the menu.lst file.

However, after I edit menu.lst, will I need to redo the grub setup? Or will the changes take effect on the next reboot?

Thanks for your help!
 
Old 01-28-2008, 11:52 PM   #4
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
now the beauty of grub is...once embedded in mbr and linked to the balance of the booting files...from now on just edit that menu.lst WITH root powers as file is owned by root

a split second suggests you need a
timeout 3....means 3 seconds

depending on whether title for xp is b4 title for linux add a
default 0....means boot first title system unless you arrow down and press enter at menu

see the signature if you need more hints
 
Old 01-29-2008, 06:27 AM   #5
Vetruvet
Member
 
Registered: Jan 2008
Distribution: openSUSE 11.2
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks a lot for all your help. I now have grub working the way I had it before.
Thanks!
 
  


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
laptop with linux on external hard drive bruce_johnson Linux - Newbie 2 11-07-2007 07:28 PM
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
laptop XP/LINUX external hard drive v2010 Linux - Laptop and Netbook 1 02-15-2005 01:28 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration