返回列表 發帖

How to clone a paritition?

本帖最後由 角色 於 2010-9-1 06:21 編輯

1)        Create a partition using fdisk or partition magic (linux one, you may use the multi-boot applications for USB)
2)        Boot an OS which is different from the the source partition and destination partition
3)        Format the partition (using CentOS only) using the command "mkfs –t ext3 /dev/sdaxx"
4)        Mount the source and destination parititions
5)        Using the command "sudo cp –afv /mnt/source/* /mnt/destination" to copy the files from the source to the destination  (please note that without sudo, the boot process may not succeed.
6)        Set the label using e2label command to the destination partition, using the command "2label /dev/sdaxx new_label"
7)        Edit the /etc/fstab to reflect the new label
8)        Edit the menu.list to reflect the label used for the root.
9)        Pay attention to the kernl version which must be matched between the paritition and menu.list, otherise booting process will fail.

YH

Please note that all the labels in each partition should be distinctive otherwise incorrect partition will be booted even though the right parition is chosen.

YH

TOP

返回列表