Re-use disk Space?
Bob Johnson
fbsdlists at gmail.com
Tue Sep 13 14:35:43 PDT 2005
On 9/13/05, Daniel Gonzalez <spammesilly at gmail.com> wrote:
> I have a quick question about re-apportioning disk space on my
> computer (FreebSD 5.4RC2 Athlon 850 MHz 512MB RAM)
> Here is the output of df -H:
>
> REDE2SRV# df -H
> Filesystem Size Used Avail Capacity Mounted on
> /dev/ad0s1a 520M 61M 418M 13% /
> devfs 1.0k 1.0k 0B 100% /dev
> /dev/ad0s1f 5.3G 805M 4.1G 17% /music
> /dev/ad0s1e 1.5G 133k 1.4G 0% /tmp
> /dev/ad1s1d 8.4G 7.0G 732M 90% /usr
> /dev/ad0s1d 1.5G 48M 1.3G 3% /var
>
> My /usr partiton is almost at capacity (90%) on a separate disk
> (/dev/ad1) from the rest of the other partitons. I allocated way too
> much space for my /music partition (dev/ad0s1f). I don't plan on ever
> using up the 4.1GB that's left over. I've been archiving (to CD) my
> mp3s, oggs etc so I always have a backup. What I wanted to know is
> would it be possible to reclaim some disk space under the /music
> partion and link a /usr sub-partition (/usr/home) to that reclaimed
> space? Hopefully I've explained myself clearly. What part of the
> handbook sections could I start with?
>
> Regards
> --
> Dan Gonzalez
You've pretty much described one solution by asking the question. You
could create a directory in music (e.g. /music/home) and then create a
symbolic link to it:
ln -s /music/home /usr/home
For most purposes, that should work (if /usr/home already exists, you
might want to rename it first!).
Or if you can use the entire /music volume as /home, just edit
/etc/fstab and have it mounted as /home instead of /music. This will
avoid any confusion caused by utilities that might not follow symbolic
links by default.
- Bob
More information about the freebsd-questions
mailing list