View previous topic :: View next topic |
Author |
Message |
drseergio Apprentice
Joined: 28 Sep 2005 Posts: 236
|
Posted: Tue Nov 21, 2006 1:50 pm Post subject: restore dd full drive copy [solved] |
|
|
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 |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Tue Nov 21, 2006 2:39 pm Post subject: |
|
|
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 |
|
|
drseergio Apprentice
Joined: 28 Sep 2005 Posts: 236
|
Posted: Tue Nov 21, 2006 2:57 pm Post subject: |
|
|
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 |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Tue Nov 21, 2006 5:16 pm Post subject: |
|
|
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 |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Tue Nov 21, 2006 5:26 pm Post subject: |
|
|
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 |
|
|
drseergio Apprentice
Joined: 28 Sep 2005 Posts: 236
|
Posted: Tue Nov 21, 2006 8:56 pm Post subject: |
|
|
Okay, I get the point, I will archive them then. |
|
Back to top |
|
|
|