On Fri, Mar 06, 1998 at 04:49:00PM -0600, Victoria Stanfield wrote:
> I'm thinking of replacing my 1.2 GB drive which is totally dedicated to
> Linux with a larger one. Can someone tell me the steps to do that in
> the most efficient manner?. I should have my tape drive, but since it
> is a Ditto 2GB internal, ftape support is intermittent; I seem to have
> to recompile the kernel from time to time to get it to work. I have
> gotten it to work a few times, so I'm hoping to use it in the transition.
> If there is a better way like having both drives hooked up and copying
> from drive to drive, I would love to hear about it. I haven't seen a
> HOWTO on this topic but would gladly read one if one exists. Thanks.
>
> Have a good day!
> -Vicki
I would do it incrementally. Say /dev/hdb1 is your present linux
partition (I'll assume you only have a / partion right now). Install
the new drive as /dev/hdc. Make swap, /, /usr, /home, and whatever other
partitions you want with whatever sizes you want on /dev/hdc using fdisk.
Then mke2fs each of the partions. Let's say you want to put /usr on
/dev/hdc2. Then "mount /dev/hdc2 /mnt" and "cp -a /usr/* /mnt". You
can then edit /etc/fstab to have /dev/hdc2 mounted as /usr. You can
then do this for /home and whatever other partions you desire.
If you use lilo to boot then moving / will be a little tricky
since, according to the Red Hat User's Guide, lilo can only boot kernel images
located on hard disks on the primary ide controller. One approach is to
copy over / while the new drive is attached as /dev/hdc (remember cp -a /*
won't work here since you don't want to recursively copy usr, etc.) Then
physically move the new drive to the slave of the primary controller
(/dev/hdb), boot with a rescue floppy and mount the new drive (now /dev/hdb)
onto /mnt. Then edit /mnt/etc/fstab and /mnt/etc/lilo.conf to reflect the
new situation and run "/mnt/sbin/lilo -r /mnt". Take a deep breath and
reboot. If anything goes wrong, you've still got a rescue disk and your
entire old disk with your working Red Hat distribution.
I've assumed you have a DOS partition on /dev/hda (don't take it
as an insult). If you current linux disk is /dev/hda and you just want
to add /dev/hdb things are quite a bit easier. Hope this helps.
Greg Whittier
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.