Re: transfering linux to new HDD
Craig, my solution is at bottom.
> It's easier if you boot from a rescue disk, then run lilo...
How do you do this remotely?
> > > I have transfered a current linux install across to a new
> > > drive using the cp -a command. I need to now chroot the
Hopefully, the "cp -a" worked properly.
> > > existing install to the new hdd and tell lilo to boot
> > > from there.
> > > How do I do this from a remote location ?
> > If your new drive will be bootable as a secondary drive and you are not
> > to remove the primary drive then this should be easy.
> > If you are going to make the new drive /dev/hda afterwards then it'll be
> > difficult, check the "bios=" option in /etc/lilo.conf...
If hda is original and hdb is the new disk, I do:
/mnt/root/sbin/lilo -C /etc/lilo.conf-hdb-mirror -r /mnt/root -v -b /dev/hdb
(Note that chroot(1) is not needed.)
--- /etc/lilo.conf Wed Jul 10 13:08:37 2002
+++ /etc/lilo.conf-hdb-mirror Mon Aug 19 20:02:18 2002
@@ -1,4 +1,6 @@
Jeremy C. Reed
ISP-FAQ.com -- find answers to your questions