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

Re: Install Debian GNU/Linux



Cahaya Lilin wrote:

> Hello all..
> 
> I want to  know is there Debian linux can install by copy the entire files
> in the hard disk to another hard disk ??
> 
> Because i already install linux in my computer and now i want to install
> linux in another computer but not install it from the cd, it would be good
> if Debian GNU/linux can install in another computer just by copy all of
> the files..
> 
> and is there setting i have to do ??
> 
> Thanx..

So to sum up (HOW TO CLONE A SYSTEM with two or one cup(s) of coffee)

SOURCE PC:
1) it works if the source system is prepared so. Which means at least to
install kernel for the target system (if not in the same family Motorolla
i*86x32/64 etc), so that you can boot on your new machine.

2) then what I prefer to do is to mount the partitions somewhere so I can
access only the data I need

cd /tmp; mkdir backup
mount /dev/XXX[1-9] backup
mount /dev/XXX[1-9] backup/boot
mount /dev/XXX[1-9] backup/home
(repeat for other partitions as in fstab, if you want to backup them)

3) plugin external disk (usb or so) and mount_it_somewhere

4) backup all (preserves permitions and so on)
tar cjvf mount_it_somewhere/system.tar.bz2 backup
(have a cup of coffee)
5) unmount mount_it_somewhere and all mounted on backup

TARGET PC:
1) boot with live cd/ usb disk or what ever linux capable
2) cd /tmp; mkdir -p backup/{boot,home} (the same structure like in 2 above)

3) plugin external disk (usb or so) and mount_it_somewhere

4) extract all
tar xjvf mount_it_somewhere/system.tar.bz2

5) customize 
        - ssh,ssl and other keys
        - root, user passes
        - x driver, other drivers
        ( there are/were few problems with ATI - NVidia proprietary GL and vice
versa migration, because both of them installed different GL libraries, but
they might have fixed it in recent versions)

6) run grub install to make the system bootable

7) recreate initrd if necessary

8) unmount mount_it_somewhere and all mounted on backup

9) reboot




Reply to: