Mascarenhas wrote:
> I have RH5.2 installed
[wine install details snipped - not really relevant]
> /usr/bin/install /usr/local/bin/wine no space left on device
> What do I uninstall SAFELY to make some space on the device?
If you have no space under /usr (or whichever fs is full), but a fair amount
of space on another fs (use df to find out), you could move stuff from /usr
to the other fs as shown below. There may be some way to make the wine
installation create its directories on another fs, with links back to /usr -
but I don't know how to make it do that, since it's creating them on the
fly, unless you want to mess with the install scripts.
Please note that this worked under minimal testing on my Slackware system.
YMMV. *MAKE A BACKUP FIRST.*
You'll have to do this as superuser, so go find a phone booth...
Example: Let's say the /usr fs has only 2 MB free, but you have plenty of
space on the fs that's mounted on /foo. So:
- Find (with du) a big subtree under /usr. This example uses /usr/baz.
- Create directory /foo/bar.
- cp -a /usr/baz /foo/bar
[This seems to be the right option for cp. Does anyone know the difference
between -r and -R?]
The entire /usr/baz subtree is now copied to /foo/bar/baz (barring errors).
Now we'll check it:
- ls -labRL /usr/baz >/tmp/orig
- mv /usr/baz /usr/old_baz
- ln -s /foo/bar/baz /usr/baz
- ls -labRL /usr/baz >/tmp/new
- diff /tmp/orig /tmp/new
There may be slight differences due to links. Hard links will be copied as
new files, so the link count will be 1 instead of what it was before. The
parent directory may show a similar change in link count, as well as mod
time. Symlinks will have a different timestamp.
If everything's OK, rm -r /usr/old_baz and clean up /tmp.
The space taken by /usr/baz is now sitting on another fs, and this is
transparent to the system.
Would y'all characterize this as a kluge or a hack? If there's no better
way to do it I may enscript it.
--
Tom Zych [EMAIL PROTECTED]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12 r1.0, 12-05-98
GCS/M d- s:- a C++>++++ UL++>++++ P+ L+>+++$ E-@ W+(++)
N+(++) o K++ w--->!w O- !M V-- PS+@ PE Y+ PGP? t@ 5++(+++)
!X !R !tv(B5+) b+++ DI++ D G e>++++ h+ r%>+++ y?
------END GEEK CODE BLOCK------