Re: Okay to clone drive to larger size drive?

From: Michael Perry (mperry_at_lnxpowered.org)
Date: 04/06/05


Date: Wed, 6 Apr 2005 07:21:55 -0700

On Wed, 06 Apr 2005 13:29:09 GMT, Ohmster wrote:

> I have a redhat 9 system with a 27Gb hard drive and am quite pleased with
> it. I was running out of room in the /home directories and with a little
> help from here, I was able to graft a second hard drive onto the root
> tree and mount it a /home. This worked out perfectly, I was able to copy
> everything from the old /home directory to the new hard drive, gave it a
> label of "home", and you would never know the difference.
>
> Now my root drive is getting full, I run an ftp server in /var/ftp/ and
> want more space. Here is what I have:
>
>
> [ohmster@ohmster ohmster]$ df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda2 27G 22G 4.2G 84% /
> /dev/hda1 99M 15M 80M 15% /boot
> /dev/hdb1 28G 18G 8.8G 67% /home
> none 756M 1.4M 755M 1% /dev/shm
> //missy/ohmster_music
> 74G 43G 31G 59% /mnt/ohmster_music
> //cindy/cindy_music 26G 17G 9.3G 64% /mnt/cindy_music
> [ohmster@ohmster ohmster]$
>
> Can I use a drive image tool like True Image or Migrate Easy to copy the
> original root drive to a larger, 80Gb drive, then swap them out and
> reboot? Will this work? Are there linux tools that would work better for
> this? fdisk shows the partitions:
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 13 104391 83 Linux
> /dev/hda2 14 3576 28619797+ 83 Linux
> /dev/hda3 3577 3739 1309297+ 82 Linux swap
>
> I want thre swap and boot partitions to remain the same and to have the
> root / partition expand to the full size of the new 80Gb hard drive.
>
> How can this be done painlessly in order to get a larger root hard drive
> without toasting the system? Please help, I need more room. Thanks.

I've done similar things using the hard disk drive upgrade minihowto. I've
gone from ide to scsi, moved file systems around, went to a larger hard
disk drive. If you want to move things to a new drive but keep the home, I
don't see where this is much different than any one of the samples on the
howto.

I would not purchase some commercial solution when you can use simple
tools. If you use the mini howto, it was kinda written for a 2.4 kernel so
some things have changed like there is a /sys now. Last time I went to a
new drive, I went from a smaller ide drive to a fast scsi drive. I copied
everything over, ran lilo against the drive, removed the old ide drive and
re-edited the lilo.conf again. One thing that was different was that the
copy command tried to copy the /sys file system but it cannot.

Its worked everytime for me so far.

-- 
Michael Perry | do or do not. There is no try. -Master Yoda
mperry@lnxpowered.org | http://www.lnxpowered.org


Relevant Pages

  • Re: How should I partition 2 80 gig drives?
    ... a web site or include some database stuff or name service. ... But, with that much disk, as long as you don't plan to serve a large ... The typical book and handbook examples of very tiny root and swap ... that last is true of all the file systems. ...
    (freebsd-questions)
  • Re: FreeBSD diskless workstation boot over Linux PXE server
    ... root RW for us; no need to secure the environment. ... Mounting local file systems. ... > freeBSD diskless client testing scenario) ... link state change to UP ...
    (freebsd-questions)
  • Re: Root privilege (SOLVED)
    ... The chrony password is _not_ the root password. ... There are still half a dozen logs that are not associated with the adm ... to do is issue one single command "connect" me to the relevant profile. ... mounting/unmounting file systems ...
    (Debian-User)
  • Re: How to change group?
    ... When as root I try: ... FAT file systems do not support users and groups like linux file systems ... You can either mount it as a user (which normally results in all ... simulate that the files belong to a certain user and group and have ...
    (comp.os.linux.misc)