Networking Forums

Networking Forums > Computer Networking > Linux Networking > LILO Boot Sector Question

Reply
Thread Tools Display Modes

LILO Boot Sector Question

 
 
Lamar Thomas
Guest
Posts: n/a

 
      12-31-2003, 09:51 PM
I have a RAID 1 mirror set and had to replace drive hdb with a new drive.
That worked okay. I even got linux to sync all the data to the new drive.
However, it didn't copy the boot sector to the second drive. Anyone know
how to do that?

I am running RH 9.0 software RAID 1 and LILO as the boot loader. Thanks for
any help.


Lamar


 
Reply With Quote
 
 
 
 
P.T. Breuer
Guest
Posts: n/a

 
      12-31-2003, 11:10 PM
In comp.os.linux.networking Lamar Thomas <(E-Mail Removed)> wrote:
> I have a RAID 1 mirror set and had to replace drive hdb with a new drive.
> That worked okay. I even got linux to sync all the data to the new drive.
> However, it didn't copy the boot sector to the second drive. Anyone know
> how to do that?


man cp.

But why would you want the mbr of one drive on the other drive? Surely
it wouldn't point to the right place! The physical offset of the kernel
image would be all wrong for the other drive, likely as not.

Just run lilo again, with root drive set to what the drive will be when
the other has failed. Hic.



Peter
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      01-01-2004, 12:15 AM
(E-Mail Removed) (P.T. Breuer) writes:

> In comp.os.linux.networking Lamar Thomas <(E-Mail Removed)> wrote:
> > I have a RAID 1 mirror set and had to replace drive hdb with a new drive.
> > That worked okay. I even got linux to sync all the data to the new drive.
> > However, it didn't copy the boot sector to the second drive. Anyone know
> > how to do that?

>
> man cp.
>
> But why would you want the mbr of one drive on the other drive? Surely
> it wouldn't point to the right place! The physical offset of the kernel
> image would be all wrong for the other drive, likely as not.


I thought RAID 1 maintained a sector-for-sector exact mirror?
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair
 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      01-01-2004, 08:50 AM
In comp.os.linux.networking Joe Pfeiffer <(E-Mail Removed)> wrote:
> (E-Mail Removed) (P.T. Breuer) writes:


> > In comp.os.linux.networking Lamar Thomas <(E-Mail Removed)> wrote:
> > > I have a RAID 1 mirror set and had to replace drive hdb with a new drive.
> > > That worked okay. I even got linux to sync all the data to the new drive.
> > > However, it didn't copy the boot sector to the second drive. Anyone know
> > > how to do that?

> >
> > man cp.
> >
> > But why would you want the mbr of one drive on the other drive? Surely
> > it wouldn't point to the right place! The physical offset of the kernel
> > image would be all wrong for the other drive, likely as not.


> I thought RAID 1 maintained a sector-for-sector exact mirror?


Well, ya know, you have a point. But the partition itself may not be in
exactly the same place!

Peter
 
Reply With Quote
 
JohnInSD At san DOT rr dot COM
Guest
Posts: n/a

 
      01-02-2004, 08:19 PM
On Wed, 31 Dec 2003 22:51:20 GMT, "Lamar Thomas" <(E-Mail Removed)> wrote:

>I have a RAID 1 mirror set and had to replace drive hdb with a new drive.
>That worked okay. I even got linux to sync all the data to the new drive.
>However, it didn't copy the boot sector to the second drive. Anyone know
>how to do that?
>
>I am running RH 9.0 software RAID 1 and LILO as the boot loader. Thanks for
>any help.


With software RAID1 & the out-of-date LILO that RH distributes, the boot
sector is on the MBR, not the RAID partition. In reconstructing the mirror,
only the RAID1 partition was duplicated. RAID1 codes know nothing about boot
loaders.

Just re-run /sbin/lilo to install a new boot sector on the new drive.

--John



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot-up question Torgeir Bakken \(MVP\) Windows Networking 3 06-09-2005 12:35 AM
firestarter question, NAT at boot time? Ohmster Linux Networking 5 05-14-2005 12:00 AM
THanks lilo ... matt Broadband Hardware 0 07-31-2004 01:09 AM
Dual booting from xp's NTFS partition using LILO? Raqueeb Hassan Linux Networking 2 05-24-2004 03:51 PM
Boot from EEPROM @ PCI-Card --> Boot from DHCPD/BOOTPD via Linux Daniel Schwager Linux Networking 3 07-06-2003 04:35 PM



1 2 3 4 5 6 7 8 9 10 11