How to use clonezilla to copy just one partition?

Matt Graham danceswithcrows at usa.net
Thu Jan 3 13:20:37 MST 2013


From: "kitepilot"
> Hello Joe, if I was you I'd forget about [using] Clonezilla [to clone
> one machine to another machine] and go either rsync or tar: 
> 
> I'd boot with a CD (Debian live is perfect) and: 
> rsync -xaHDC --super /my/mounted/partition \
> root at remotebox:/my/new/partition

While this will copy all the files from the old partition on the old machine
to the new partition on the new machine, it won't do a thing about the
bootloader.  That means the new machine won't be able to boot Linux, since you
haven't installed GRUB.  Installing GRUB should be relatively easy, though:

# N is the GRUB device number of your /boot, or your / if you don't
# have a /boot
# sda1 = (hd0,0) , sda2 = (hd0,1) , etcetera.
livecd-on-new-machine:~# grub
grub> root(hd0,N) # tells GRUB where to look for its files
grub> setup(hd0)  # installs GRUB to MBR/slackspace of first disk
grub> quit        # done

Or try grub-install.  Note that these steps probably won't work for GRUB2 or
GPT partition tables, so modify that if you're dealing with those things.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see



More information about the PLUG-discuss mailing list