[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] dd command
- Subject: [cobalt-users] dd command
- From: "Mike Fritsch" <mfritsch@xxxxxxxxxxxx>
- Date: Wed Jun 7 23:06:54 2000
Dad
I did some research on the dd command. Here is what I came up with:
First : backup the partition table ==> dd if=/dev/hda
of=/mnt/backup/partition.img bs=1024 count=1
Second : backup the first partition ==> dd if=/dev/hda1
of=/mnt/backup/part1.img
Third : backup the third partition ==> dd if=/dev/hda3
of=/mnt/backup/part3.img (not hda2 ==> swap)
Four : backup the fourth partition ==> dd if=/dev/hda4
of=/mnt/backup/part4.img
To restore :
1°)dd if=/mnt/backup/partition.img of=/dev/hda
2°)fdisk /dev/hda , then just type "w"
3°)dd if=/mnt/backup/part1.img of=/dev/hda1
4°)dd if=/mnt/backup/part1.img of=/dev/hda3
5°)dd if=/mnt/backup/part1.img of=/dev/hda4
6°)Don't forget to active /dev/hda1
What do you think? Would it work?
Mike