VanLUG Email Archive

VanLUG Mailing List
re: LILO problems / Hard drive upgrade

New Message Reply About this list Date view Thread view Subject view Author view

dlinford@vcn.bc.ca
Tue, 22 Aug 2000 22:19:06 -0700


in <Pine.LNX.4.20.0008221601510.12338-100000@barney.intergate.bc.ca>,
Sean Ellis <sellis@intergate.bc.ca> writes:

>Assuming new drive is /dev/hdb
>and we want to (ultimately) boot into /dev/hda1 as the root
>filesystem. I think you ought to be able to run lilo with the
>/etc/lilo.conf having:
>
>boot = /dev/hdb
>
>image = /vmlinuz # location of kernel
>root = /dev/hda1
>
>.. to write a new boot sector to /dev/hdb.
>Set the partition active, put the drive in place,
>make sure the kernel is in the right place. After booting edit the
>line boot = /dev/hdb to boot = /dev/hda .
>
>My interpretation of the docs, at any rate. How does this sound?

I've done something similar, with the xterminal kit,
and here is the cut&paste of the modified lilo.conf:

[[root@test-7 xterm]# cat lilo.conf
compact
disk = /dev/fd1
  bios = 0x00
boot = /dev/fd1
append = "APPEND"
delay = 50
vga = normal
image = /zImage
        label = xterm
        root = /dev/none

I needed to write a 3-1/2" floppy for the target, but that was
fd1 on the build host. So what you'll do is use the actual hdb
in the lilo.conf, plus tell it to use the "bios code" for hda.
I think that is 0x81, but don't trust me - not a PC guy...

dean

--
This message came to you via the Vancouver Linux Users Group mailing list.
For unsubscription instructions do not email the list, but rather send mail
to <vanlug-request@gweep.bc.ca>.


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b3 on Wed 23 Aug 2000 - 05:21:36