I guess nobody knows of any nondestructive repartitioning things.  I
sure don't.  But moving /usr off onto another partition will give you
more room in /, so /etc won't be as likely to fill up. :-).  Or, you can
move more than one directory onto your third partition, but the
partition itself can only be mounted on one point.  Then you can play
games with symbolic links to make it look like you want it to look.  I
would call it something completely different.  Let's call it slop, just
so we have something to call it.
mkfs -t ext2 /dev/hda3
mkdir /slop
mount -t ext2 /dev/hda3 /slop
now add it to /etc/fstab:
/dev/hda3       /slop           ext2    defaults        1   1
now copy /usr to it with tar or cpio:
mkdir /slop/usr
cd /usr
find |cpio -p /slop/usr     or  tar -Oc . |tar -C /slop/usr -xvf -
check that they are the same:
diff -r . /slop/usr
cd /
rm -r /usr
ln -s /slop/usr /usr

You can move other directories using the same method.

The only problem I know of with this, is that ls -l /usr will now show
the symbolic link instead of the contents, but ls -lL will show the
contents.  That, and I've never done it.  On what used to be my windows
partition I keep and compile source packages I don't have room for on /,
and my devil's playground for running windows apps with wine, and a
bunch of tar.gz files: the kernel source, the X source tarball, the most
recent releases of wine...

Maybe it would be better to just move /usr to start with, so:

mkfs -t ext2 /dev/hda3
mkdir /slop
mount -t ext2 /dev/hda3 /slop
now copy /usr to it with tar or cpio:
cd /usr
find |cpio -p /slop     or  tar -Oc . |tar -C /slop -xvf -
check that they are the same:
diff -r . /slop
cd /
rm -r /usr/*
umount /slop
mount -t ext2 /dev/hda3 /usr
now add it to /etc/fstab:
/dev/hda3       /usr            ext2    defaults        1   1

If you still need more space on /, you can then move other directoies
to /usr, and link them back as in the first example.

Take care!

Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.

On Thu, 6 May 1999, Inane wrote:

> Hello,
> 
> Well I've run into the problem now of not having enough harddrive space
> for my ever growing linux box.  I have my hardrive partioned into 4
> different partions, 1st windows95, 2nd windows program 3rd empty but
> formatted for dos, and 4th linux.  I want to convert the 3rd one over
to
> linux, but I was hoping that somehow that I could non drestrutively
> repartion the 4th partition(the linux one) to increase it's size.  I
> know that i can set the 3rd partition to a directory like /usr/ but
well
> what can i do when like /etc on the 4th drive gets filled up and
> programs or something needs more space on their? I was thinking maybe i
> could (although i doubt this would work) but have the 3rd harddrive
also
> be / . But im pretty sure that wouldnt work... Anyway can anyone
suggest
> actions i can take (other than delete useless stuff). And any non
> destructive repartioning software preferably for idiots ;) (oh yeah
both
> partitions are 1 gig each, if that matters)
> 
> TIA,
> 
> Scott
> 
> 
> 




___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

Reply via email to