Re: lilo on /dev/hdb to work as /dev/hda

2002-08-18 Thread Jeremy C. Reed
On Tue, 6 Aug 2002, Kevin J Menard wrote:

 This is a shot in the dark, but could you use the bios option to install
 lilo onto that drive.  Then use a boot disk to boot off of it.  Once
 it's up, you could then change the bios option back to 0x80, and rerun
 lilo, and should be all set.

This is a follow-up on my problem. Anyways, using the bios option did
work -- and I didn't need a boot floppy or have to rerun lilo again!

I was able to copy hda to hdb (fdisk, newfs, rsync, lilo) and then use the
disk originally at hdb as hda without any changes.

The boot= was /dev/hda, but I used -b /dev/hdb to override that.
And then in the lilo config I did:
 disk=/dev/hdb
   bios=0x80

And it wrote the boot loader to hdb so it thought that it was really hda.

  Jeremy C. Reed

  http://www.bsdnewsletter.com/  -- BSD news and resources
  http://www.isp-faq.com/-- find answers to your questions




Re: lilo on /dev/hdb to work as /dev/hda

2002-08-18 Thread Jeremy C. Reed
 I was able to copy hda to hdb (fdisk, newfs, rsync, lilo) and then use the

if [ $(uname) = Linux ] ; then sed 's/newfs/mkfs/' ; fi




Re: lilo on /dev/hdb to work as /dev/hda

2002-08-08 Thread Michelle Konzack
Am 15:59 03/08/02 -0700 hat Jeremy C. Reed geschrieben:

I have /dev/hdb that is a mirror of /dev/hda. It is not a image copy
though, so files may be in different sector/cylinder locations.

I want to be able to pull the /dev/hdb and /dev/hda out; then replace
/dev/hda with this /dev/hdb.

So when I do this I get Lilo's L error message. It can't find the second
stage boot loader.


If you use /dev/hdb as /dev/hda you must use the Floppy-Bootdisk to 
boot. Mount all needed partitions on /dev/hda and execute a shell. 
In the shell type /sbin/lilo

Now it will work.

I have done this several times and it works properly. remove the 
Floppy from the FD-Drive and reboot your system...

Michelle


 ##  Get the Power of Debian/GNU-Linux  ##




Re: lilo on /dev/hdb to work as /dev/hda

2002-08-06 Thread Jeremy C. Reed
  I have /dev/hdb that is a mirror of /dev/hda. It is not a image copy
  though, so files may be in different sector/cylinder locations.
 
  I want to be able to pull the /dev/hdb and /dev/hda out; then replace
  /dev/hda with this /dev/hdb.
 
  So when I do this I get Lilo's L error message. It can't find the second
  stage boot loader.
 
 The easiest solution to this problem is to use software RAID-1 for the 

Thanks for the idea, but I don't want a real-time snapshot.

Anyways, can lilo be used to setup a boot loader on /dev/hdb so that if
you physically move it to /dev/hda and boot it will boot successfully?

Again, it seems like the bios= option is not relevant, because it really
will be /dev/hda.

What is the most appropriate mailing list for lilo discussion?

Can grub do what I want?

Thanks,

  Jeremy C. Reed


http://www.bsdnewsletter.com/




Re: lilo on /dev/hdb to work as /dev/hda

2002-08-06 Thread Kevin J Menard


On Tue, 6 Aug 2002, Jeremy C. Reed wrote:

 Again, it seems like the bios= option is not relevant, because it really
 will be /dev/hda.

This is a shot in the dark, but could you use the bios option to install
lilo onto that drive.  Then use a boot disk to boot off of it.  Once
it's up, you could then change the bios option back to 0x80, and rerun
lilo, and should be all set.

I think I did something similar once, and it worked for me.

-- 
Kevin





Re: lilo on /dev/hdb to work as /dev/hda

2002-08-06 Thread Donovan Baarda
On Tue, Aug 06, 2002 at 04:08:05PM -0700, Jeremy C. Reed wrote:
   I have /dev/hdb that is a mirror of /dev/hda. It is not a image copy
   though, so files may be in different sector/cylinder locations.
  
   I want to be able to pull the /dev/hdb and /dev/hda out; then replace
   /dev/hda with this /dev/hdb.
  
   So when I do this I get Lilo's L error message. It can't find the second
   stage boot loader.
  
  The easiest solution to this problem is to use software RAID-1 for the 
 
 Thanks for the idea, but I don't want a real-time snapshot.
 
 Anyways, can lilo be used to setup a boot loader on /dev/hdb so that if
 you physically move it to /dev/hda and boot it will boot successfully?

Yes, this can be done. The trick is you need to tell lilo to install itself
on hdb, boot the kernel on hdb, but pretend that everything is hda. The best
way to do this is;

mount /dev/hdb1 /mnt
lilo -r /mnt -b /dev/hdb1 -M /dev/hdb

where /dev/hdb1 is the hdb root partition, and you want to use a normal mbr
with lilo installed in the boot record of that root partition.

 Again, it seems like the bios= option is not relevant, because it really
 will be /dev/hda.
 
 What is the most appropriate mailing list for lilo discussion?
 
 Can grub do what I want?

Grub would make things a little simpler, because it delays any sort of
locating of kernel etc on the disk untill boot time. It can do this because
it is a whole little OS of its own that understands filesystems. Personally
I find grub overkill.

-- 
--
ABO: finger [EMAIL PROTECTED] for more info, including pgp key
--




Re: lilo on /dev/hdb to work as /dev/hda

2002-08-04 Thread Russell Coker
On Sun, 4 Aug 2002 00:59, Jeremy C. Reed wrote:
 I have /dev/hdb that is a mirror of /dev/hda. It is not a image copy
 though, so files may be in different sector/cylinder locations.

 I want to be able to pull the /dev/hdb and /dev/hda out; then replace
 /dev/hda with this /dev/hdb.

 So when I do this I get Lilo's L error message. It can't find the second
 stage boot loader.

The easiest solution to this problem is to use software RAID-1 for the 
mirror, LILO supports this and will install itself in such a fashion that you 
can remove hda and have things work.

A software RAID-1 can be easily split or re-added at any time, so it'll work 
well for a snapshot of your system if that's what you want.


Russell Coker