On Fri, Aug 16, 2013 at 10:04 AM, Tanstaafl <tansta...@libertytrek.org> wrote: > Thanks for the reply Canek > > > On 2013-08-16 10:48 AM, Canek Peláez Valdés <can...@gmail.com> wrote: >> >> If you have physical access to the system, > > > I do. > > >> and a large enough /, > > > Well... > > / is 19GB, with 18GB available. > > /usr is 20GB, with 13GB used, with 7.9GB available. > > I guess I'd be ok with going from 18GB available on / to just 5GB > available... > > >> it's really easy. You boot from a livecd, mount /usr in another >> directory, > > > Not exactly sure how to do this since /user in on lvm...
If the Gentoo minimal install CD doesn't allow you to mount /usr in LVM, for sure SystemRescueCD will: http://www.sysresccd.org/SystemRescueCd_Homepage > >> copy all the files from it to /usr (be sure to preserve >> links, permissions, attributes, etc.), > > > So, once I have it mounted > > cp -rp ... ? I would use rsync: rsync -PvasHAX /oldusr/ /usr/ > >> change /etc/fstab, and off you go. > > > Currently: > >> # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. >> /dev/sda1 /boot ext2 noauto,noatime 1 >> 2 >> /dev/sda2 none swap sw 0 >> 0 >> /dev/sda3 / ext3 noatime 0 >> 1 >> /dev/sda4 /backups ext3 noatime 0 >> 2 >> /dev/vg2/home /home reiserfs noatime 0 >> 0 >> /dev/vg2/usr /usr reiserfs noatime 0 >> 0 >> /dev/vg2/var /var reiserfs noatime 0 >> 0 >> /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 >> 0 >> /dev/fd0 /mnt/floppy auto noauto 0 >> 0 >> >> # NOTE: The next line is critical for boot! >> none /proc proc defaults 0 >> 0 > > > So, just remove the line referencing /usr? Yeah, basically. >> And really, maybe you could try an initramfs? It will be much more >> easy than any juggle of filesystems. > > > I always compile my kernels manually, by choice - so, no desire to use > genkernel or dracut. I compile my kernels manually too. Since ever. Dracut generates an initramfs from your running system, is orthogonal to compiling your own kernel. > How would I then create one? I am *not* a programmer, just a reasonably > competent general sys admin. > > Is there a 'generic' one that I can use? Or is there a separate tool that > will create one based on my system profile (or whatever)? Yeah, dracut. Emerge dracut with LVM support, adding "lvm" to DRACUT_MODULES in /etc/portage/make.conf, then edit /etc/dracut.conf, and add lvmconf="yes", and run dracut like this (for example): /usr/bin/dracut -f -H /boot/initrd-3.10.7 3.10.7 Then you add an initrd line to GRUB, or GRUB2 will automatically detect the initrd with grub2-mkconfig. You should at least try it before changing partitions; is so much easier. If it fails, you can still do the integration of /usr and /. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México