On 17 Jan 2003, Gerry Doris wrote: > I have a single 30GB drive that is getting full. I want to put in a > second larger hard drive and duplicate the first one, then remove the > first drive and replace it with the new larger drive. > > I'm worried that this first drive contains the operating system. Can it > be duplicated while it is mounted and active? > > Can do this with dd? What should be the correct command?
I have a machine with 2 hard disks of identical size and I use rsync to backup onto the second drive. Assuming /, /usr, /var are mounted in /backup/root, /backup/usr and /backup/var you can run something like rsync -avxH --delete / /backup/root rsync -avxH --delete /usr/ /backup/usr rsync -avxH --delete /var/ /backup/var You would also need to install grub on the second disk if you ever want to boot from it. I've also used the same approach to resize the partitions on the second disk, sync the data across, then make the second disk the primary one. -Roger -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list