Solved

Grub setup with 2 hd (change boot disk)

Posted on 2008-06-24
3
1,434 Views
Last Modified: 2013-12-15
I recently installed Fedora 9, as I thought Ubuntu didn't quite meet my expectations. - Bad choice, I guess, but that's another story...

My laptop (Dell XPS m1730) has two disks and my Linux system is installed on the second one. During installation I got the option to choose what disk the system was to boot from. I answered disk A. Then I got the question if I really would like it like that as the system was on disk B. - Well "boot from" is rather vague I guess so I changed it.

Now, fortunately my BIOS lets me boot from disk B, but of course I would prefer not having to pick up the boot list each time I start up. I kind of thought that the problem would be simply solved by running something like grub-install /dev/sda... Here's where the real issue started. Now I had the screen full of "GRUB GRUB GRUB GRUB..." - looks quite like my first Basic program in the late 70's. Booting from disk B was corrupted as well.

For some reason my device.map file says hd0 is sdb and hd1 is sda. This can not be changed without complications either.

So, how do I tell grub to boot from disk A instead (and work, I might add)?
0
Comment
Question by:obg
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
arndawg earned 125 total points
ID: 21854893

If grub-install is not working for you:

#grub --no-floppy
grub> root (hd0,0)   # change to where the boot partition is (hd1,0 ?)
grub> setup (hd0)   # Install to MBR
grub> quit            #exit

0
 
LVL 2

Author Comment

by:obg
ID: 21863778
This does not help me very much. I have a Windoze boot partition as well, on the first disk. Why do I need to give the root command to grub? How are the parameters interpreted? Why can't it use sda and sdb wich are the names of my disk devices? I assume that hd0 (for example) gets parsed through device.map...? And setup (hd0) would again install on MBR of sdb, right? Can I change the device.map and set hd0 to sda and hd1 to sdb and then update grub.conf without problems?
0
 
LVL 2

Author Comment

by:obg
ID: 21864219
Well, I finally got it working with grub-install. I don't know why but I changed everything I thought should be changed and now it works...

I'll give you some cred anyway...
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Install MySQL 5.6 and PHP on Centos Linux 6 103
bash script question (chmod) 10 56
Changing passwords in Linux Systems 3 42
Linux VM 6 51
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now