[oclug] Imaging a Drive
Allan McIntosh
amcintosh at atreus-systems.com
Thu Jan 25 09:51:23 EST 2001
#>
#> I am looking at changing the drive in my server. I was thinking of an
#> Adaptec 29160 controller card and a Quantum Ultra 160 10K drive.
#> Presently I have an older IDE drive. Has anyone had any luck using
#> software like Drive Image or Ghost on Linux partitions. The problem is
#> that I will need to expand the partitions once the transfer is done.
#> Can anyone offer some suggestions.
#>
#> Thanks,
#> Charles
#>
#
#
#Yes. Read the hard-drive-upgrade mini howto. All your problems will be solved
#;)
I would partition the new disk with ext2 and swap.
Then I would tar the old partition.
- shut down none essential services(so logging is at a minimum).
- Destroy any log files you don't need rm -f /var/log/*.[2-9] or
something along these lines.
cd /root
vi excludes
add these three lines
/proc/*
/tmp/*
/usr/doc/*
/and any other things you do not want included.
(be in /root)
tar czvfp /tmp/image.tar.gz /* -X image_excludes
This will create an image of your current file system.
Then expand this image to to your new drive and you have a back up of your
current files system. Be sure to adjust any partition changes to
/etc/fstab if required on the new drive. Don't forget to run lilo on the
new drive.
Al
--
------------------------------------------------------------------
Allan McIntosh, Software Designer
Atreus Systems Corp, http://www.atreuscorp.com
Phone: (613) 233-1741 ext 217
1800 764-5514
Fax: (613) 233-8204
------------------------------------------------------------------
More information about the OCLUG
mailing list