Restoring From An Image File
Well, I finally found someone in this forum who backs up to an image file.
That is what I tried last week and NOW thanks to my own INCREDIBLE STUPIDITY
I need to restore my Knoppix partition from that file. (Long story. Let's not go there)
When I backed up the Knoppix partition I did:
dd if=/dev/hdb2 of=/mnt/hda6/hdb2.img
To get restore Knoppix to /dev/hdb2 I assume I need to
mount -t /dev/hda6/hdb2.img
first and then
"dd" back to the original /dev/hdb2 partition.
Any tips/tricks/caveats/advice before I attempt this?
Oh, I assume I should format the /dev/hdb2 partition first to start clean, right?
Thanks,
sakiZ
Re: Restoring From An Image File
--You're on the right track, but you don't even need to mount the image file; just:
' time dd if=/mnt/hda6/hdb2.img of=/dev/hdb2 bs=10M '
--MAKE SURE /dev/hdb2 is unmounted **before** you do this!!
And there is no need to reformat 1st, because DD will return it to the exact same state it was in at the time of backup.
--Good luck, and keep backing up regularly.
Quote:
Originally Posted by sakiZ
Well, I finally found someone in this forum who backs up to an image file.
That is what I tried last week and NOW thanks to my own INCREDIBLE STUPIDITY
I need to restore my Knoppix partition from that file. (Long story. Let's not go there)
When I backed up the Knoppix partition I did:
dd if=/dev/hdb2 of=/mnt/hda6/hdb2.img
To get restore Knoppix to /dev/hdb2 I assume I need to
mount -t /dev/hda6/hdb2.img
first and then
"dd" back to the original /dev/hdb2 partition.
Any tips/tricks/caveats/advice before I attempt this?
Oh, I assume I should format the /dev/hdb2 partition first to start clean, right?
Thanks,
sakiZ