On 9/10/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > I have a 160 GB USB HDD. What are the recommendations for doing something > like replicating or imaging the present data of the whole hard drive to the > USB HDD (excluding /boot), create the new partition structure on the HDD > using LVM, and restore things back.
There are two things I do not know about: booting from a USB hard disk and whether what I am going to suggest will work with LVM. I see no reason why it shouldn't. Here is what I suggest you do: 0. Make sure that the kernel you have running currently has LVM support. 1. Add the new hard disk. Keep your old hard disk. Boot up using a live CD. 2. Assuming your usb hard disk is /dev/usbdisk, do an LVM on it and partition it to your needs. 3. Mount the partitions of your old disk and your new disk as /mnt/hda1, /mnt/usbdisk1, etc. 3. Copy files over from your old disk to your new disk maintaining permissions like so: $ (cd /mnt/hda1&& tar zcvfp - .) | (cd /mnt/usbdisk1 && tar zxvfp -) 4. Rinse. Repeat with other partitions. 5. Edit lilo.conf or Grub's menu.lst. Install it from the new USB disk to your MBR. 6. Remove hda1, reboot, keep fingers crossed. Thaths -- "This is everybody's fault but mine!" -- Homer J. Simpson ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ linux-india-help mailing list linux-india-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-india-help