Gabriel Sandor wrote:
> The process of moving Linux from one partition or hd to another is
> fairly simple:
> Put your new hd as slave and make all the partitions and format them.
> Just copy all the tree but /proc and /mnt. Create the directories
> under /mnt. Then you should edit your /etc/fstab and /etc/lilo.conf to
> reflect the new location of the partitions.
> At this point you need a boot disk to boot when you swap the hd's to
> their final position.
> When you boot with the diskette, run lilo to remap your boot files and
> that's all.
Sorry, but it won't work like that.
You must have a running Linux (partition or on a floppy like tomsrtbt
205). With that, as superuser, you must mount the target Linux
partition then, for a lilo-booted system:
chroot <mount point> pico /etc/fstab
edit the device name changes, save and exit.
chroot <mount point> pico /etc/lilo.conf
edit the changed device names into the global stanza and all other
stanzas, save and exit.
chroot <mount point> /sbin/lilo
chroot <mount point> uname -r
to get the target linux kernel version.
chroot <mount point> mkbootdisk <kernel version>
to make a boot floppy for the target Linux.
The moved Linux partition is now bootable from that floppy.
Finally, change your boot manager to match.
--
Regards,
Ron. [au]