LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-2006, 12:21 AM   #1
simpat1zq
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
Need help installing boot loader


A little backgroung story:

My computer has 2 hard drives, I was using one for the OS(Windows XP) and the other to hold my data an stuff. Well, I come to find out that for some stupid reason, the drive with the data on was my primary master, and the one with the OS was secondary slave(I know, completely back asswards, I think I was just to lazy to switch the drives when I realised that). So, when I installed XP, it installed the boot loader on the data drive, but the OS on the OS drive.

Well, the problem is that now the drive with the data died, and took the MBR with it. The data's backed up, the MBR is not. So now, I can't boot to my hard drive.

I'm trying to get something loaded on there, just so I can boot windows. Lilo or grub, or anything, I don't have a preference. I've got knoppix booted on there now, but all the little guides on the internet don't seem to be working for me. Is there anyone that could help me out in installing a boot loader?

Thanks.
 
Old 03-12-2006, 12:29 AM   #2
simpat1zq
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
OK, I just tried doing a grub-install /dev/hda, and I get a "cannot create directory /boot/grub: read only filesystem.

I ran the command as root
 
Old 03-12-2006, 01:16 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Knoppix runs from the CD - which is (of course) R/O.
Bigger issue for you will be the fact that it also mounts all the HD partitions it finds as R/O. Trying to protect you from yourself.
Remount as R/W, and try this (adjust as required);
Code:
grub-install --recheck --root-directory=/mnt/hda? /dev/hda
You'll need a partition (FAT32 might be best) for the grub stage files and config. Another option is to boot the XP CD and do a fixmbr from recovery console.
 
Old 03-12-2006, 01:24 AM   #4
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
I'd suggest the latter !
 
Old 03-12-2006, 07:13 AM   #5
comptiger5000
Member
 
Registered: May 2005
Distribution: Fedora Core Since version 3
Posts: 193

Rep: Reputation: 30
definitely, xp's bootloader is better for xp
 
Old 03-12-2006, 12:51 PM   #6
simpat1zq
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I got it working. Thanks.

I wanted to do the fixmbr thing from the beginning. The windows setup wouldn't let me get into recovery console, so that wasn't an option.

So what I did was install windows, but to a temp directory, booted to it, changed the boot.ini so thatit boots from the old installation, and then rebooted, and deleted the new installation.
 
  


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
Installing Boot Loader kemplej Slackware 6 03-13-2006 03:42 PM
need help on installing boot loader/manager claudius753 Linux - Newbie 5 12-26-2004 01:46 PM
Boot Loader is Gone after installing Windows 98 hazarcon Linux - General 4 09-14-2004 01:48 PM
boot loader not installing jsmarshall85 Mandriva 1 12-26-2003 11:22 PM
installing boot loader emjay Linux - Newbie 1 09-29-2002 01:12 AM

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

All times are GMT -5. The time now is 09:09 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