First, DO NOT move /etc . It contains files (such as /etc/fstab and, for
most distributions, the rc* scripts) that the kernel needs to boot. It needs
access to them before filesystems other than root (/) are mounted, so they
have to be on the acaual root.
You can move /usr without reinstalling, if you have someplace to move it. It
is better to have a dedicated partition for it, but you can fake it with a
symlink. Here's how:
1. On the second filesystem, /home, create a directory called usr (that is,
you will have a /home/usr).
2. Copy the complete contents of /usr to this new directory. (I think "cp -r
/usr /home/usr" will work ... but check to see if you need to do something
to preserve ownership and permissions in the copy).
3. Move the "real" /usr to a new location (something like "mv /usr /realusr").
4. Symlink /usr to the new directory ("ln -s /home/usr /usr").
5. You may have programs that have open file descriptors pointing to files
in /usr (e.g., some systems have the logs in /usr). If so, you'll need to
restart any that do, to get them to use the "new" /usr .
This should cause the new directory to function as /usr.
NOTE: This will not solve your space problem (yet), because the files that
were in /usr are still there, in /realusr . After you've verified that the
new version of /usr works right, then you can delete the old stuff.
PS - I wrote this procedure from memory, but the last time I actually did it
was about 4 years ago. I may have some details wrong. Please, would others
who catch errors here correct them?
At 08:08 AM 9/4/99 -0500, Mike Duncan wrote [in part]:
>When
>I initially ran fdisk (or whatever the program is), I created two
>partitions--a smaller one (hda1 -- 900MB or so), and a larger one (the
>remainder of the HD--3.1 G. Unfortunately, I mounted the smaller one as
>/, and the larger one as /home. Now my smaller partition is nearly full
>(90%), while my larger partition is virtually empty. I would like to
>put /etc and maybe /usr on the larger partition as well.
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA 94303-3603 [EMAIL PROTECTED]
----------------------------------------------------------------