Hi guys,
I'm looking to transfer one of my linux boxes from it's 3Gb drive to a bigger drive (40Gb).
What's the easiest method to transfer a partition including the boot manager to another drive? How can the root parition be resize afterwards? Or would it make sense to start using a separate /var, /usr partitions?
Mounted devices are /dev/hda1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) tmpfs on /dev/shm type tmpfs (rw) usbfs on /proc/bus/usb type usbfs (rw)
Cheers David
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
I do this all the time when I do new lfs builds. The easiest way is to boot off a live cd(ubuntu etc) or rescue disk (any redhat based system, boot with "linux rescue") Create the partitions on the new disks and mount them, mount the old disk read only (just in case). cd into the new disk mount and run this rsync -vaogH /mnt/old/ . (the trailing / is important)
When its finished chroot into the new disk by running chroot . /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin: /bin/bash --login +h (mind the wrapping) Once in there, modify whatever you need. Typically /etc/fstab and /boot/grub/grub.conf
Once you're happy run grub-install /dev/{new disk}
I find its better to add a new grub entry than to modify your existing one, that way you can boot to both while both disks are in.
Hope it helps
Stuart