Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
restore dd full drive copy [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
drseergio
Apprentice
Apprentice


Joined: 28 Sep 2005
Posts: 236

PostPosted: Tue Nov 21, 2006 1:50 pm    Post subject: restore dd full drive copy [solved] Reply with quote

I have a PC with SATA disk, few hours ago I had to change it to _exactly_ the same PC (a laptop). I booted from gentoo live CD, mounted external USB (reiserfs) and made a full copy by using this:

Code:

dd if=/dev/sda of=/path/linux_backup


However, I cannot figure out how to restore right now:
dd if=/path/linux_backup of=/dev/sdb (drive name changed for some reason)

it does not seem to restore the partition table. What might be wrong?


Last edited by drseergio on Tue Nov 21, 2006 2:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Tue Nov 21, 2006 2:39 pm    Post subject: Reply with quote

Not sure about your problem, just a hint:

If one of the filesystems you backed up was also reiserfs, DO NOT EVER run any of the reiserfstools against that USB disk.
The tools cannot deal with reiserfs-image-on-reiserfs and will corrupt your filesystem.
You might consider bzipping* (or similar) this image to work around that.


*) should that be bz2ipping or bzip2ing or bzipping2?
_________________
Please put [SOLVED] in your topic if you are a moron.


Last edited by nephros on Tue Nov 21, 2006 5:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
drseergio
Apprentice
Apprentice


Joined: 28 Sep 2005
Posts: 236

PostPosted: Tue Nov 21, 2006 2:57 pm    Post subject: Reply with quote

Thanks for help, dunno why the second time everything went okay. Previously only half was copied (for an unknown reason), now everything works.

And yes, I have all reiserfs partitions (except swap, of course). I shouldn't run reiserfs utilities on the image that dd made?
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Nov 21, 2006 5:16 pm    Post subject: Reply with quote

nephros wrote:
You might consider bzipping* (or similar) this image to work around that.

*) should that be bz2ipping or bzip2ing or bzipping2?


"bzip2-ing." I am answering rhetorical questions today in honor of Voltaire's birthday. :)
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Tue Nov 21, 2006 5:26 pm    Post subject: Reply with quote

drseergio wrote:
I shouldn't run reiserfs utilities on the image that dd made?

No, you shouldn't run reiser tools on (real) filesystems which contain image-files of a reiser filesystem.
The tools are known to get confused with these, especially fsck.reiserfs --rebuild-tree.
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
drseergio
Apprentice
Apprentice


Joined: 28 Sep 2005
Posts: 236

PostPosted: Tue Nov 21, 2006 8:56 pm    Post subject: Reply with quote

Okay, I get the point, I will archive them then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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