Quote:
Originally Posted by jggimi
Step-by-step instructions for "resizing" /usr, using /home as a temporary storage facility. Warning: This is just typed up here for your convenience, just now. I have not -tested- this procedure as written, and may have made a mistake. Or two. Hint: If you blindly copy/paste these commands without understanding them, you are likely to get into trouble.
- Boot in single user mode. At the boot> prompt, enter "-s".
- Back up the existing /usr. It is assumed that /usr and /tmp and /home are defined in fstab(5):
- # mount /tmp
- # mount /home
- # dump -0af /home/usr.dump /usr
- Delete and recreate your /usr partition using disklabel(8) and newfs(8). This assumes you have the desired free space, and that the existing partition is on wd1d:
- # disklabel -E wd1
- d d
- a d
- [select your starting LBA]
- [select your size]
- [press ENTER to take the default FFS partition type]
- q
- # newfs wd1d
- Restore /usr from backup
- # mount -o async,noatime /dev/wd1d /usr
- # cd /usr
- # restore -rf /home/usr.dump
- # rm restoresymtable
- Reboot
- # reboot
|
Thanks mate, I will give it a rip in arvo.
I know swap can save life but i am on i386 atm and that doesnt read my complete ram. I will resize '/home' and put the swap at the end of the disk.
Best,
David