On 2017-10-30, "Jay Hart" <[email protected]> wrote:
> Below is currently how I have my disk laid out partition wise. I have a
> feeling I need to swap
> /tmp and /usr in order to gain additional space for /usr.
>
> What is the best way to go about that?
* Drop into single user mode.
* Unmount the filesystems mounted on top of /usr.
* Unmount /usr and /tmp.
* Dump the /usr and /tmp contents to files somewhere where there's
space, e.g., on /home:
dump 0af /home/tmp wd0d
dump 0af /home/usr wd0f
* Create fresh filesystems:
newfs wd0d
newfs wd0f
* Remount them in their new place:
mount /dev/wd0f /tmp
mount /dev/wd0d /usr
* Restore their content:
cd /tmp && restore rf /home/tmp
cd /usr && restore rf /home/usr
* Edit the /etc/fstab entries.
* Clean up:
rm /home/tmp /home/usr /tmp/restoresymtable /usr/restoresymtable
Do not follow these instructions blindly if you do not understand
them.
--
Christian "naddy" Weisgerber [email protected]