LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2005, 04:56 PM   #1
hig
LQ Newbie
 
Registered: Dec 2004
Posts: 13

Rep: Reputation: 0
Unhappy Moving MBR


In my PC i have a removable hard drive. I have an XP/FC3 dual boot installed on it using GRUB.

However, whenever I remove the removable HDD (The one with FC3 on it) the PC stall, well, obviously.

I want to know is there a way to move my GRUB MBR to a different HDD so that I can remove the drive it's currently booting from and replace it with a data storage HDD which i use for large file transfers to an unconnected PC.
 
Old 03-12-2005, 05:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well you can save your mbr using "dd if=/dev/hda of=/root/my.mbr", and the restore would be the opposite "dd if=/root/my.mbr /dev/hda" but i've never tried moving it between devices, adn i'd wonder if it would actaully work... i don't know what's in there to be honest. maybe it'll be fine. it wouldn't damage the recipient drive at all if it didn't work though, at work it just wouldn't boot. personally i'd just recommend reinstalling the bootlaoder correctly.
 
Old 03-12-2005, 05:22 PM   #3
hig
LQ Newbie
 
Registered: Dec 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Could you possibly tell me how to do that?

I can log in to FC3 and do what you say, but I'm not particularly knowledgable, so, dumb it down if you could.

Thanks.
 
Old 03-13-2005, 04:04 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
do what? reinstall a bootlaoder? well which do you use? lilo or grub? their documentation will cover instalation in a lot of detail.
 
Old 03-13-2005, 04:46 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,220

Rep: Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954
You would be much better off asking how to achieve what you want rather than asking how to move the MBR.

- do you wish to boot without the external drive, or
- do you wish to remove it once XP is booted, or
- do you wish to remove it once FC3 is loaded ???.

Let's presume it's the first.
Grub needs its stage files to complete its work - these are probably on that external.

Best solution is to use the XP bootloader. To do this you'll need to do something along the lines of;
- Boot XP CD and use the Recovery Console to run fixmbr.
- Then boot the FC3 CD and re-install grub to a partition on the external drive rather than MBR.
- Then copy that boot sector record across to the XP C: drive, and update boot.ini.

Not simple - I'm sure the Fedora forums will have plenty of threads with more detail on how to do this, but that is the overview. And I should add I've never installed Fedora, so you'll need to refer to those that have.

BTW acid_kewpie, that command would copy the entire disc. Now that would have some interesting repercussions
 
Old 03-13-2005, 12:01 PM   #6
hig
LQ Newbie
 
Registered: Dec 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Simply, I want to change the bootloaders location to a primary HDD and not the removable one it's on now.

And I've already stated I want to use GRUB or th XP loader.
 
Old 03-14-2005, 06:30 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,220

Rep: Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954Reputation: 2954
There is only one MBR - that's why it's called "Master". It is on the "primary" disk - as determined/assigned by the BIOS.
Very unlikely to be on the removable drive.

You need to over-write the MBR with code from you boot-loader of choice. I offered you an option ...
 
Old 03-14-2005, 02:50 PM   #8
hig
LQ Newbie
 
Registered: Dec 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I know. I build PCs for a living, but I dont deal with *nix too much. And it's on the removable drive.
 
  


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
Moving lilo to the MBR davidsrsb Slackware 2 09-19-2005 09:31 AM
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 06:28 PM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 05:25 PM
copying/moving stalls when moving a lot of data to a usb stick =X= Linux - Hardware 10 07-30-2004 06:29 AM
Moving Grub to the MBR cucolin@ Linux - Laptop and Netbook 2 12-30-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

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