Gerry Doris wrote:
I have a single 30GB drive that is getting full. I want to put in aYou can use dd, but...
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?
1)It's not a good idea on a live filesystem.
2)It's only really usefull on a live filesystem
3)You may end up coping a bunch of empty sectors.
Try this:
-install new drive
-create new partitions on the disk. (via fdisk or parted)
-create swap and filesystem on the new drive (via mke2fs, and mkswap)*
-mount the new filesystem on /mnt/cdrom (mount /dev/??? /mnt/cdrom)
-copy the files from your current installation to the new drive
cd /
tar -czvpf - . --exclude /proc --exclude /mnt/cdrom |tar -xzpf - -C /mnt/cdrom
-make sure you have a useable emergency floppy (mkbootdisk)
-remove your old drive and boot from floppy
-rerun your installer
*Be sure to create label on the file systems as redhat uses them instead of absolute device names. You can do this as part of your mke2fs command, or with e2label.
--
There is no such thing as obsolete hardware.
Merely hardware that other people don't want.
(The Second Rule of Hardware Acquisition)
Sam Flory <[EMAIL PROTECTED]>
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list