[K12OSN] Re: How to drive copy Linux

Mario Guerra mguerra at cariari.ucr.ac.cr
Mon Feb 7 19:26:18 UTC 2005


El Lunes, 7 de Febrero de 2005 01:05 PM, Algot Runebjörk escribió:

> Example mounting sda1 and sdb1 from a system
> booted from a CD (or a diskette):
>
> # mkdir /mnt/hd_a
> # mkdir /mnt/hd_b
> # mount /dev/sda1 /mnt/hd_a
> # mount /dev/sdb1 /mnt/hd_b
> # cp -a /mnt/hd_a /mnt/hd_b
> # umount /mnt/hd_a
> # umount /mnt/hd_b
>

Another way is using tar:

cd /mnt/hd_a
tar -cvf - . | (cd /mnt/hd_b; tar -xf -)
chroot /mnt/hd_b
grub

for example

Mario Guerra




More information about the K12OSN mailing list