using lilo and running linux1.2.13, linux 1.3.*, and Win95

using lilo and running linux1.2.13, linux 1.3.*, and Win95

Post by Stev » Sun, 04 Feb 1996 04:00:00



I currently am using lilo to boot linux 1.2.13 and Win95 just fine, but I found
a hard drive lying around and would like to put linux 1.3.* on that hard drive,
so that I have one stable kernel and one 'experimental' kernel.  My question
is, how do I go about adding this hard drive to lilo, and adding the new kernel
to the other hard drive?  Do I use boot and root disks like in the begining?  
Any help would be appreciated in this.

Thanks

 
 
 

using lilo and running linux1.2.13, linux 1.3.*, and Win95

Post by bill davids » Sat, 10 Feb 1996 04:00:00



| I currently am using lilo to boot linux 1.2.13 and Win95 just fine, but I found
| a hard drive lying around and would like to put linux 1.3.* on that hard drive,
| so that I have one stable kernel and one 'experimental' kernel.  My question
| is, how do I go about adding this hard drive to lilo, and adding the new kernel
| to the other hard drive?  Do I use boot and root disks like in the begining?  
| Any help would be appreciated in this.

Been there, done that. You can see one way, which is to reinstall,
but if the other disk is large enough you can just mount it and copy
the data to it.

Assuming you have done the fdisk stuff, an example:

 cd /
 find . -depth -print > /tmp/allfiles
 mount /dev/sdb1 /mnt
 cpio -pdm /mnt < /tmp/allfiles

You make the list of stuff before you do the mount, then mount and
copy. Obviously there are other ways, let's skip posting all of
them.

Having done this, you can add a stanza to lilo.conf describing the
other drive and the kernel on it. Don't change it until you are sure
it will run. You need to change the drive descriptor and name in
lilo.conf. Then have mnttab on the 2nd drive to reflect where things
are for that system.

Now run lilo and create a new setup, possibly on a floppy if you are
subject to ill fortune. Now boot it. You *should* be up and running
on the new drive, using your same old kernel. You can now build that
new system, hacked kernel or whatever.

Hope this is enough to help!
--

Too many improbable things have happened to me, both good and bad.
I'm living on the edge of the bell shaped curve.