> I want more space under /, so I tried to move /usr to a different
> partition - and (IIRC) had a 'failure to unmount the initrd' on boot...
> and no boot.
>
> So, is there a safe way to do this?
/usr is a little tricky because it will usually have open processes on it.
You can move /usr to a new partition as you have done with /opt, but you'll
need to do it from the live cd. That's going to be the only way you can
delete the old /usr folder structure.
1. boot from live cd.
2. create new partition for /usr if you haven't done so already.
3. mount your current root partition.
4. cd to where your root partition is mounted, i.e. /mnt/gentoo.
5. tar cvfp usr.tar usr
6. mount your new partition, say /mnt/usr.
7. cd /mnt/usr
8. tar xvpf /mnt/gentoo/usr.tar
9. /bin/rm -rf /mnt/gentoo/usr /mnt/gentoo/usr.tar
10. edit /mnt/gentoo/etc/fstab to mount your new partition as /usr.
11. reboot and enjoy.
As to whether to move all of /usr or just parts of /usr, I have separate
partitions for /usr/local and /usr/portage but leave /usr on the root
partition.
Partitioning is really up to you to determine how to set things up. I don't
know if it is still the case, but I come from those years where filling up
the root partition meant that you couldn't boot into the system, so I try to
isolate those areas that could possibly grow w/o my knowing it and keep them
off of the root partition (i.e. especially /home, /var{/tmp}, and /tmp).
--
[email protected] mailing list