LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-14-2003, 02:56 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
possible to reinstall boot loader on the MBR?


Hello again everyone.

Well, I have been doing a lot of testing on a RH 8.0 linux server we have setup. We are planning to eventually migrate our data to this Linux server.

However, I am concerned that when the install was done, the bootloader was placed on the first active partition and not the MBR.

First question:
Is it possible to tell where the bootloader is installed? Whether on the MBR or the 1st active partition?

Secondly; if it is installed on the 1st active partition, is it possible to move it to the MBR, or will that require a reinstall?

Thanks everyone.

Tarballed
 
Old 02-14-2003, 03:11 PM   #2
skidhmor
Member
 
Registered: Feb 2003
Location: Maitland, FL, USA
Distribution: Gentoo
Posts: 38

Rep: Reputation: 15
If your using LILO for your bootloader, then check /etc/lilo.conf. The first line should say "boot=/dev/hdx"
If "hdx" is hda1, then lilo is installed in the first sector of the first primary partition(on the primary master IDE drive), if you change it from boot=/dev/hda1 to boot=/dev/hda, then run /sbin/lilo , then lilo will be installed to the MBR.
If your using scsi instead of IDE, the just change every mention I made of "hd" to "sd".
 
Old 02-14-2003, 03:28 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Thanks for the input skidhmor.

It makes perfect sense once I read your post.

However, there is a little twist on this.

The current setup on this server is two SCSI drives with software RAID. Both drives are exact mirrors of each other. For kicks, here is the output of lilo.conf:

prompt
timeout=50
default=linux
boot=/dev/md0
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.18-24.8.0smp
label=2.4.18-24.8.0smp
initrd=/boot/initrd-2.4.18-24.8.0smp.img
read-only
root=/dev/md0

image=/boot/vmlinuz-2.4.18-24.8.0
label=2.4.18-24.8.0
initrd=/boot/initrd-2.4.18-24.8.0.img
read-only
root=/dev/md0

image=/boot/vmlinuz-2.4.18-14smp
label=linux
initrd=/boot/initrd-2.4.18-14smp.img
read-only
root=/dev/md0

image=/boot/vmlinuz-2.4.18-14
label=linux-up
initrd=/boot/initrd-2.4.18-14.img
read-only
root=/dev/md0

/dev/md0 includes /dev/sda1 and /dev/sdb1

I'm not sure if there may be away to see if bootloader is installed on the MBR or not, but thought I would post this.

Any thoughts? Possibly have to reinstall the OS? Which is ok, as the server is just a test for the time being.

Thanks.

Tarballed
 
Old 02-14-2003, 03:49 PM   #4
skidhmor
Member
 
Registered: Feb 2003
Location: Maitland, FL, USA
Distribution: Gentoo
Posts: 38

Rep: Reputation: 15
Hmmm, not sure about THAT. I've never delt with Raid.
But if your system boots from the harddives, then I'd say the bootloader has to be installed on whatever equivalent of the MBR the RAID volume uses(i.e.-sector0).
 
  


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
Reinstall XP Boot Loader XxHell-FirexX General 12 10-28-2005 06:37 AM
mbr reinstall, boot command darkangel29 Linux - Newbie 1 05-31-2005 12:02 AM
reinstall windows boot loader bruse Mandriva 5 02-10-2005 07:22 AM
how to reinstall boot loader. abhigo Fedora 1 01-29-2005 07:31 AM
how to reinstall boot loader? jitus Linux - Newbie 8 03-20-2004 01:07 PM


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