This is a discussion on Help on cloning the entire disk. within the Linux software forums, part of the Linux Getting Started category; I have an old 20GB disk running as a bugzilla server. I need to clone that to a newer harddisk ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
I have an old 20GB disk running as a bugzilla server. I need to clone that to a newer harddisk or maybe to a RAID disk. I tried it using dd but i'm not sure exactly what i'm doing. i have also read about g4l. I dont want to have a trial an error, this server is running 24/7 and I don't want to mess things up
Maybe you guys have a proven experience, please help me on this... need a safe step by step instruction [root@ProTrackResource ~]# fdisk -l Disk /dev/hdc: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 * 1 65 522081 83 Linux /dev/hdc2 66 2359 18426555 83 Linux /dev/hdc3 2360 2434 602437+ 82 Linux swap / Solaris thanks, warren |
| Sponsored Links | ||
|
|
|
||||
|
You can only clone everything if new hard disk has the same size or greater than original size, at least this is what dd does.
For example: Code:
dd if=/dev/hdc1 of=/dev/hda1 I recommend using Partimage command/program. Partition Image will only copy data from the used portions of the partition. For speed and efficiency, free blocks are not written to the image file. This is unlike the 'dd' command, which also copies empty blocks. Partition Image also works for large, very full partitions. For example, a full 1 GB partition can be compressed with gzip down to 400M See Parimage for more info http://www.partimage.org/Main_Page If I were you, I will only copy the data using tar or cp or partimage command. |
|
|||
|
ok thanks, I have look into PartImage, looks nice somewhat similar to ghost.
I was also thinking of just copying the data. install a new linux, bugzilla, etc..then copy the database and configurations, this would be safest way but I think may take so much time. so far I have already created an image using dd, I have done it using by partition and compressing the image file. Code:
dd if=/dev/hdc1 | gzip > /mnt/temp/hdc1.img.gz dd if=/dev/hdc2 | gzip > /mnt/temp/hdc2.img.gz Code:
dd if=/dev/hdc of=/mnt/temp/hdc.boot.mbr bs=512 count=1 Code:
dd if=/mnt/temp/hdc.boot.mbr of=/dev/hda bs=512 count=1 gzip -dc /mnt/temp/hdc1.img.gz | dd of=/dev/hda1 gzip -dc /mnt/temp/hdc2.img.gz | dd of=/dev/hda2 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Solaris Disk Monitoring | vimalgoel | Getting started tutorials | 0 | 12-19-2007 05:53 PM |
| Linux check disk error | raj | Linux hardware | 3 | 12-07-2007 11:00 AM |
| USB flash disk on Redhat | sunguru | CentOS / RHEL / Fedora | 3 | 11-12-2007 09:00 PM |
| USB flash disk on Redhat | sunguru | CentOS / RHEL / Fedora | 0 | 11-07-2007 06:40 PM |
| hard disk backup | zafar466 | Linux software | 1 | 06-29-2007 02:47 AM |