PDA

View Full Version : Restoring Knoppix Partition From an image File



sakiZ
01-24-2005, 05:22 PM
Well, now I've done it. I trashed my Knoppix partition. We will skip my stupidity and get to the silver lining.

That good news is I had made a backup to an image file just last week of my hdb2 partition. It resides on: /dev/hdb6/hdb2.img

Obviously I want to restore this.

Do I just "mount -t /dev/hdb6/hdb2.img" and "dd" it to the /dev/hdb2 partition?

I guess I should reformat /dev/hdb2 first though to clean it up. Any tips here before I attempt this?

sakiZ

greenfly
01-24-2005, 07:34 PM
How did you create the image? With dd? If so, you just need to mount /dev/hdb6 and type:
dd if=/mnt/hdb6/hdb2.img of=/dev/hdb2