Huub <"v.niekerk at hccnet.nl"> wrote: > Jeremy C. Reed wrote: > > On Wed, 3 Jan 2007, Huub wrote: > > > I was wondering why I got "disk full" without having many apps > > > installed. Now "df -k" tells me /usr is very small and /home is very > > > large. Is there any smart way I can change this without having to > > > reinstall DFBSD? > > > > Move your /usr to /home/usr. > > > > Remove any /usr from /etc/fstab. (If in there use that space for something > > else.) > > > > And create symlink for /usr to /home/usr > > Ok. So there's not some way like partition-magic to reallocate diskspace > from /home to /usr?
No, there is no way to shrink an an existing UFS file system. In fact, it _is_ possible to change partition sizes, but that will invalidate the previous contents, i.e. you would have to create new file systems. So you have two options: Backup + re-install + restore, or do it the way jeremy explained: Duplicate the contents of /usr to /usr/home, then unmount /usr and create a symlink /usr /home/usr (that have to be done in single user mode). You can use the partition formerly used for /usr for other purposes if you like. Alternatively, you can also move (and symlink) /usr/local to /home/local or similar. I guess that /usr/local is the biggest subdir in your /usr file system, so moving only that one will help. That approach has the advantage that you probably don't need to enter single user mode. > su-3.2# df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad3s1a 254063 82828 150910 35% / > /dev/ad3s1d 254063 29144 204594 12% /var > /dev/ad3s1e 254063 24 233714 0% /tmp > /dev/ad3s1f 8257742 8257726 -660602 109% /usr > /dev/ad3s1g 65839984 13189 60559597 0% /home You said you don't have many apps installed. But 8 GB is pretty much, I think. Maybe you should check what is installed and clean up a bit. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way.
