![]() |
Feel free with Open Source SoftwareAndries Filmer - Internet professional sinds 1996.
|
|
|
|
Harddisk clone disk and partition - Shred, a tool to erase a harddiskHarddisk cloneClone your entire disk, all partitions, byte for byte, using the dd command. The replacement drive will be a turn-key, plug-in replacement for the original drive. Drive sdb has to be bigger!
dd if=/dev/sda of=/dev/sdb bs=32768 The bs=32256 represents one complete track of 63 sectors each with 512 bytes. This is about the optimum in my experience with the hardware I have. Omitting the bs parameter will cause dd to default to 512 bytes in each transfer and can slow down the process significantly.
Partition clone
sudo dd if=/dev/sda1 of=/dev/sdb1 If this partition is the boot partition we need to tell this to grub.
sudo grub Grub will launch and give you the grub> prompt. Here, type: find /boot/grub/stage1 You should see something come back that looks like hd(0,0). Jot that down, you’ll need it in a second. Now, still in the grub> prompt, type: root hd(0,0) You’ll put in whatever result you go above – it may be different than hd(0,0). Once that completes, type:
setup (hd0) Even if you got a result that differs from hd(0,0) above. Type:
quit And you’re out of grub. Restart your machine, removing the LiveCD and you should be up and running on your new hard drive. You may also encounter a problem on your first boot where the system will try to scan your hard drive for bad sectors. If that fails, you’ll find yourself in a root terminal session. Just type:
fsck
Shred - Tool om een harddisk te wissen, erase a harddiskOverwrite the specified device/file repeatedly, in order to make it harder for even very expensive hardware probing to recover the data. Start the server with an Ubuntu Server CD and choose for a live/try Ubuntu. Open a Terminal and type:
shred -fuvz -n 3 /dev/{device}
NOTE: Be aware that the data is definitely lost after running this command!
I appreciate if you give some comment about this page. Please go ahead. |
|
Andries Filmer | http://andries.filmer.nl | andries@filmer.nl | © 2011
|