Re: Resizing ext2 filesystems
On Thu, 15 Apr 1999, Max wrote:
> I have a problem in that I'm quickly running out of space in /usr but
> I have tons of space left in /home. Here's what df shows:
>
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda1 497667 35357 436608 7% /
> /dev/sda5 497667 385312 86653 82% /var
> /dev/sda6 2478138 2271514 78508 97% /usr
> /dev/sda7 4616953 643170 3734818 15% /home
My suggestion? Too late to do it now, but DON'T PARTITION so much. Make
three partitions (IMHO primary partitions for all three) as follows:
/dev/sda1 500MB /
/dev/sda2 120MB <swap>
/dev/sda3 <rest> /usr
Create /usr/home and symlink /home to /usr/home.
Create /usr/var and symlink /var there.
Now, your poor overworked disk head will have less partition-wide hunting
to do to go from ~/<yourfiles> to /var/log/<yourlogs>, and the only space
crisis you'll run into is filling the whole disk. If you can do that,
than, well, you've got yourself a legitimate problem.
>From O'Reilly's System Perfomance Tuning (http://www.ora.com) by Mike
Loukides (I think - please don't shoot me if I'm wrong), if at all
possible, don't use more than one partition per disk. On a single disk
system, I prefer to bend the rules just a little bit: separating the root
filesystem makes sense to me, and a swap partition is important.
Pete
--
Peter J. Templin, Jr.
Systems and Networks Administrator
Jlink Internet Services
1000 S. Market St. templin@jlink.net
Bloomsburg, PA 17815 (717)389-6400
Reply to: