Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2005 17:35:42 -0400
From:      Bob Johnson <fbsdlists@gmail.com>
To:        spammesilly@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Re-use disk Space?
Message-ID:  <54db439905091314355fb65b05@mail.gmail.com>
In-Reply-To: <ef208e530509130704ec74cf2@mail.gmail.com>
References:  <ef208e530509130704ec74cf2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/13/05, Daniel Gonzalez <spammesilly@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:
>=20
> 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
>=20
> 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?
>=20
> Regards
> --=20
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54db439905091314355fb65b05>