LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-30-2007, 08:49 AM   #1
xeagle
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Changing the first boot stage of grub


Hi
I've installed the suse 10.3 on external hdd.
the problem that the second boot stage is installed on the external disk and the first one is on the local disk . So i can't start the computer if the external disk is not plugged in.
Is there a solution to change the first boot stage to the external disk and restore the mbr state of the local disk.

Thanks ..
 
Old 11-30-2007, 10:16 AM   #2
ifthengoto
LQ Newbie
 
Registered: Jun 2007
Posts: 0

Rep: Reputation: 0
Quote:
Originally Posted by xeagle View Post
Hi
I've installed the suse 10.3 on external hdd.
the problem that the second boot stage is installed on the external disk and the first one is on the local disk . So i can't start the computer if the external disk is not plugged in.
Is there a solution to change the first boot stage to the external disk and restore the mbr state of the local disk.

Thanks ..
This is what worked for me when I had that problem. (ubuntu not suse though).

I got the supergrub disk and used it to repair my MBR. It can also boot your linux partitions on the external drive. You can also use your windows disk but this screwed my install up.

The other reference that I have found useful is Hermans grub guide

(google both - I cannot right now)

To avoid writing to my main hard drive I changed my BIOS to look for my USB drive first and then I did not have the problem of overwriting the MBR. The if my USB was not plugged in the main hard drive would boot just like a regular window machine.

It works for most distros but not all.

In order to make a grub menu then for your USB drive I got to a terminal through a live CD and ran grub.

Code:
find /boot/grub/menu.lst
It will list the available partitions, maybe something like this

(hd1,0)
(hd1,1)

(the first number is the drive the second is the partition. Note grub counts the number 1 partition as 0 and number 2 as 1 etc).

Choose which one you want for root - for example

Code:
root (hd1,0)
then set the grub menu to the (for example) USB (external hard drive) drive

Code:
setup (hd1)
Like I said that works for me on Ubuntu (hundreds of times) but don't exactly know your distro.

There are lots of googles on this subject.

Hope it works for you.
 
  


Reply



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
Boot problem Grub Loading Stage 2 mbutler31 Fedora - Installation 5 12-29-2007 11:17 AM
dual boot fedora & vista - boot error - "GRUB loading stage 2" ans Fedora 1 08-20-2007 03:35 AM
Grub hangs looking for Stage 2 from XP Boot JonnyBGood Linux - General 4 12-05-2006 01:46 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Boot now Hangs @ "GRUB" How do I find Stage 2's Address??? Supafast Linux - Hardware 1 07-06-2005 09:55 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:57 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
Open Source Consulting | Domain Registration