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

Re: linux copying



Just boot with your current installation (small hdd) and attached second new disk (big hdd).

tar cvf linux.tar /  - create linux.tar from root [/]
mount /your/new_drive /mnt/something (after file system create)
cd /mnt/something - change dir where is mounted your new drive
tar xvf path_to/linux.tar - extract tar file with your current distro under new hdd

OK now you have your current installation to your new drive !
now type chroot /mnt/something - this will change your root to destination that you used for untar your distro

lilo -v - this will install lilo (if you use lilo) to your new hdd

power off and boot from your new drive.

another way is to tar and untar trough pipe without first tar and after this untar (if you do not space)   


> Hi all,
> i have bought a 40GB HDD. is it possible to copy the existing Debian linux 
> from my old HDD to the new one as well as make it boot-able ?
> 
> please let me know .
> 
> thanks in advanced.
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 


-- 

Konstantin Kostadinov
Fadata Ltd.

---------------------------------------------------
Public PGP : http://www.fadata.bg/pgp/kostaspgp.asc
---------------------------------------------------

Attachment: pgpFlxmzQ1a7e.pgp
Description: PGP signature


Reply to: