[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Transport debian woody from laptop to PC

On Tue, 2004-10-05 at 13:50, Paolo Alexis Falcone wrote:
> On Tue, 5 Oct 2004 05:16:26 +0200, Oliver Fuchs
> <oliverfuchs@onlinehome.de> wrote:
> > Hi,
> > 
> > I am running a debian woody box for a long time now on my laptop.
> > I want to install it now with the (nearly) same configuration on my PC.
> > Can I transport the laptop system (for example via tar) to my PC or won't
> > this work.

we routinely clone PCs running RedHat using by doing (almost) a simple
cp -ax. we just set up our partitions as required and do a cp -ax like
so ...

mkswap -f /dev/hdc1
mke2fs -j -L / /dev/hdc2
mke2fs -j -L /home /dev/hdc3

mount -t ext3 /dev/hdc2 /mnt/clone
mount -t ext3 /dev/hdc4 /mnt/clone/home

cp -axv / /mnt/clone
cp -axv /home /mnt/clone

cd ${CWD}
umount /mnt/clone/home
umount /mnt/clone

if you want to make it bootable (when connected as a primay master) then
you have to muck around with grub or lilo to get it going. I haven't
done it with grub, but lilo used to involve doing a chroot, and
installing lilo on the second drive. the lilo.conf was set up so that it
assumed the drive was a primary master and so was not bootable until
connected properly.

chroot /mnt/clone
sbin/lilo -C /etc/lilo.conf.clone


Blake Swadling
Senior Software Engineer
Newton Pty Ltd

+61 2 6247 3544
+61 2 6247 3533
+61 407 026277

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: