and another info
Duplicating smaller partition, or drive to larger partition, or drive; or vice versa:
unmount before format the partition:
Code:
mkfs.ext3 /dev/sdXX
mkfs.ext3 /dev/hdZZ
Delete lost+found directory in the new partition and then mount it
mount -rw /dev/sdXX /mnt/sdXX
Example: You want to sync the root directory tree to another drive, but the other drive is larger.
If you use dd, you will get a file system that is smaller than the larger destination drive.
In this case you want to sync files, not the file system:
Format and mount the destination drive.
Code:
rsync -avH /mnt/source_drive/* /mnt/destination_drive/
Rsync preserves the target file system.
If the second drive does not have the same structure of the logical drives, then don't forget to reedit the /boot/grub/menu.lst and the /etc/fstab in the /mnt/sdXX
You need to run:
Code:
grub-install
update-grub
If the target was bootable previously, it remains bootable.
-----------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment