Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dd backup restore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
shoelesshunter78
n00b
n00b


Joined: 24 May 2010
Posts: 58

PostPosted: Tue Feb 18, 2014 3:40 pm    Post subject: dd backup restore Reply with quote

I have gentoo installed on /dev/sda partitioned as in the handbook giving me sda1 2,3 and 4. I want to clone to an external drive then restore to anothe machine. here are the steps I plan to follow:

dd if=/dev/sda of=/dev/sdb bs=4k

attach /dev/sdb to the new machine

boot from a live disc

dd if=/dev/sdb of=/dev/sda

boot into the restored (cloned) environment.

are these steps correct? will my mbr and partition table transfer without added commands?
keep in mind the new machine will be starting with a blank unpartitioned, unformatted drive.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Feb 18, 2014 6:33 pm    Post subject: Reply with quote

Hello,

I would prefer tar or rsync, because dd copies the whole disk with its MBR, partition table... and white spaces.

It's better to partition the destination table, format the partitions, then copy with tar or rsync.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum