>>  > From: Net Llama!
 >>  > Drive designations are contreolled by your BIOS.  You can't change these
 >>  > via software.

 >> From: steve rader
 >> Yea--understood.  Are you saying it's not possible
 >> to write a MBR to a non-boot disk that will end up
 >> being a boot disk???

 > From: Net Llama!
 > Not at all.  I'm just saying that you need to do more than just write a
 > bootloader to the MBR of hdb, in order to make it bootable.

Oh, sure... sorry... assume I do...

 - install a good linux system on /master
 - fdisk /dev/hdb
 - mkfs /dev/hdb1
 - mkswap /dev/hdb5
 - mount /dev/hdb1 /slave
 - (cd /master; tar -cf - .) | (cd /slave; tar -xpf -)
 - umount /slave

..now how do I write a MBR to /dev/hdb that will
boot when it's /dev/hda???

Currently, I re-cable /dev/hdb as /dev/hda, boot linux
into memory from a CD (RedHat install media) and then...

 - mknod /dev/hda1 b 8 1
 - mkdir /slave 
 - mount /dev/hda1 /slave
 - /slave/sbin/lilo -r /slave
 - umount /slave

but I want to automate those steps (preferably without
another boot!)

The solution needs to work for IDE and SCSI disks, btw.

steve 
- - - 
systems & network guy
high energy physics
university of wisconsin

_______________________________________________
Linux-users mailing list
[EMAIL PROTECTED]
Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users

Reply via email to