You can't "merge" two partitions into one.  What you can do, however, is
move an entire directory tree (say, /usr or /home or /usr/local) over to
this new partition and mount the new partition on the original file
structure.  No reboot necessary!

For instance, if you wanted to move /usr/local onto the new partition:
  mkdir /mnt/new
  mount /dev/XXX /mnt/new
  cd /usr/local
  mv $(ls -A) /mnt/new
  cd /
  umount /mnt/new
  mount /dev/XXX /usr/local

XXX stands for the new partition's device name (i.e. hda7, sdb6 or
whatever).

You'll also need to add a line to /etc/fstab:

/dev/XXX  /usr/local  ext2  defaults  1 2

This will tell your computer to mount the extra filesystem on boot.

-Matt Stegman
<[EMAIL PROTECTED]>

On Tue, 15 Feb 2000, WH Bouterse wrote:

> Okay I have seen a zillion ways to do this over
> the last couple of years and read hundreds of lines
> of mans, howto's, and email's, HOWEVER;
> 
> I will ask this list for pointers again !
> 
> My / 3 gig partition is full. I have created another 
> ext2 fs of 2 gigs on the same HD. How do I merge it into
> The present / so that after reboot (I guess that would be 
> necessary?) The new / partition would contain 5 gigs?
> 
> I may go ahead and repartition into smaller units but 
> thought I would try this method first in the interim.
> 
> Thanks 
> 
> William Bouterse
> Juneau Alaska
> 

Reply via email to