backup whole disk.
I have a 20G disk with bootable window 95 and there are 2-3 logical partition on the disk c:,d:,e: et.
I want to use the disk for something else and transfer all the data to a bigger disk. However, There are a lot of tools/software that I may need to boot my computer with this disk in the future. Is there an easy way to tool on linux to backup the whole thing? Will I be able to restore it on a bigger drive? I was looking in to the dd if=/dev/hda command. If I use that, will I be able to restore hda1,hda2 with dd, or do I need to create those partitions before restore it? |
To my knowledge you have to create the partitions and then dd each partition. Perhaps someone with more experience will be able to tell you for sure.
|
Here's a pretty comprehensive thread on the use of "dd":
http://www.linuxquestions.org/questi...ommand-362506/ If you use the dd command, check it several times before you actually hit the enter key. Another way is to boot from Knoppix (or similar) and use "cp -axu /from /to" where "/from" and "/to" are drives you've mounted on knoppix. Then, install grub, of course. The preferred way is probably using dd. There is lots of discussion in the dd thread, and lots of information. Added: Oops. As b0uncer pointed out, you have windows stuff, so you'll need to use dd. |
If you want your Windows software to work after the copy operation, you need to use something like dd that makes one to one copy of the data; simply copying files may well result in the files being there but software not working (for example if Windows registry happens to be missing or wrecked). I'd guess what you want to do is dd the whole disk to another physical disk and if the new disk is bigger than the old (dd won't enlarge the image; if you copy 20GB to a 40GB disk, you'll seemingly be missing 20GB after that), after that resize the partition(s) to fill the disk. Don't get rid of the data in the old disk before you've made sure the new one works..
|
It looks like I still do not get a solution. :)
What is other software I can use then? Is there a free software run on Windows if no tool available on Linux? I did some searching on the Internet. I think the tool is called disk cloning. but i am still finding the one i can use. :) |
Why can't you use "dd"?
|
The software you seek is Clonezilla. http://www.clonezilla.org/
|
You could use dd to create a byte-by-byte image of the drive. On the new larger drive, partition it with the sizes you want. Then mount each partition from the image and simply copy all of the files over. Suppose that you use an external drive (don't use the fat32 filesystem) to save the image, and it is mounted on /media/disk/.
All of these commands are run as root. Code:
dd if=/dev/sda bs=512 of=/media/disk/sda_backup.img Code:
fdisk -u /dev/sda >/media/disk/sda_partition_table. Code:
jschiwal@qosmio:~> sudo mkdir /mnt/part3 |
All times are GMT -5. The time now is 06:47 AM. |