Voytek Eymont wrote:
> I have a RH system that is running out of disk space faster than I can
> figure out what can I delete to gain space,
> 
> in the short term, I just need to give it more hardrive space, what are my
> best options to clone the old 20GB IDE drive to a new 80GB IDE drive ?
> 
> can I clone a running system ?

Yes, you can.

Boot the system to a bare shell, by giving grub/lilo the "init=/bin/sh"
kernel option.

Then mount all disks (look at /etc/fstab to see which ones are there)
read-only (give the "-r" option to mount).

Then partition your new disk. Format the partitions as you see fit.
Mount them all somewhere, such as under /mnt/newdisk, and using the
final hierarchy (so /mnt/newdisk as root, /mnt/newdisk/home, etc).

Then copy all old partitions over, using the "-ax" option to do
individual filesystems. Eg:

cp -avx / /mnt/newdisk
cp -avx /home/ /mnt/newdisk/home
[etc]

The "-a" flags copies all attributes and ownership, and "-x" keeps each
operation to one filesystem. "-v" turns on verbose (ie prints each file
as its copied).

Once it's all copied, install the bootloader to the new disk, and you're
done. You might need to change the fstab if you've changed partitions.

BB


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to