Re: [expert] Extending / partition

2000-02-17 Thread Hoyt


Subject: Re: [expert] Extending / partition



> > 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?
> >

>From the command line:

copy all the files from /usr to the new partition after temporarily mounting
it as /mnt/temp.

edit fstab to mount the entire partition as /usr.

mv /usr /usrold

reboot

Now your /usr directory is 2 GB.

Verify that everything works and then rm /usrold to free up the space.

This is not a good technique to do with the /bin or /lib partitions; you
should do those, if necessary, from a rescue disk.

Hoyt




__
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html



Re: [expert] Extending / partition

2000-02-16 Thread Sheldon Lee Wen


I'm not sure about the status of a logical volume
manager for linux (I know one is/was in development)
but with an LVM you can resize any volume or
stretch it over multiple disks/paritions. Under
linux however you may have to format to do the initial
setup. Not sure, under HP-UX and some other UNIX's you
don't.

> On Tue, 15 Feb 2000, you 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?
> >

-- 
==
"Definitions involving chicken heads no longer apply."
  -Jon katz
==



Re: [expert] Extending / partition

2000-02-16 Thread Bug Hunter


 I think parted may do what you want.  I saw a release e-mail about this
for redhat. It may be on their site under contrib.


On Wed, 16 Feb 2000, John Aldrich wrote:

> On Tue, 15 Feb 2000, you 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?
> > 
> My suggstion would be to boot to a boot floppy and use one
> of the disk repartitioning tools such as Partition Magic
> from PowerQuest or perhaps there's a linux-based
> non-destructive repartitioner?
>   John
> 



Re: [expert] Extending / partition

2000-02-16 Thread John Aldrich

On Tue, 15 Feb 2000, you 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?
> 
My suggstion would be to boot to a boot floppy and use one
of the disk repartitioning tools such as Partition Magic
from PowerQuest or perhaps there's a linux-based
non-destructive repartitioner?
John



Re: [expert] Extending / partition

2000-02-16 Thread WH Bouterse

Thanks Matt!
Appreciate the help!

Matt Stegman wrote:
> 
> 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
> >



Re: [expert] Extending / partition

2000-02-16 Thread Matt Stegman

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
> 



[expert] Extending / partition

2000-02-16 Thread WH Bouterse

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