[NTLUG:Discuss] D.A.question about repartitioning on the fly

Kevin Brannen kbrannen at pwhome.com
Sun Jan 29 15:07:19 CST 2006


Greg Edwards wrote:

> Fred wrote:
>
>> Suse (and others) like to create 2 partitions during install: / and
>> /home. No /usr, no /etc. Some time ago (year or two) I installed Suse
>> 9.1 on my daughter's puter and happened to notice recently that / is
>> at 94% AND they want OpenOffice which, at 120MB or so installed,
>> ain't happening until the disk gets repartitioned. /home has about 2
>> 1/2 gigs of space.
>>
> Thanks,
>
>> Fred
>
>
> IMHO, the simplest solution would be to create a dir under /home say 
> /home/opt2 and install it there.  Add /home/opt2 to the default search 
> path in /etc/profile.
>
> Linux does not care where the programs are located, just that it knows 
> where to look for them.  Next time you upgrade you can move it and 
> redo your partitions.
>
> JMO
>

Or to take it one step farther, as root:

cd /
tar -cf - opt | (cd /home; tar -xf -)
# check to make sure /home/opt looks like /opt, "du -s /opt /home/opt" 
might be useful
rm -r /opt
ln -s /home/opt opt

This is especially useful as Suse like to install 3rd party stuff into 
/opt, so it might grow some more.  Then as Greg points out, you can redo 
things next time you upgrade.  You might also think about LVN so you can 
grow stuff more easily.

HTH,
Kevin




More information about the Discuss mailing list