On 05/20/2014 10:20 AM, Carlos E. R. wrote:
On 2014-05-20 15:56, Anton Aylward wrote:
On 05/20/2014 05:29 AM, Carlos E. R. wrote:
It's automatic. I have it like that.
Ah, sorry, let me rephrase.
If you install with a separate /usr its all taken care of automatically.
However if you have /usr on the ROOTFS and want to create a new partition and migrate /usr to that then you'll need to create a new initrd that knows about this.
If you run "mkinitrd" it should do it. However, you have to do it after migration and before booting.
I was hoping you'd talk about the config and parameters needed. *sigh* As I understand it, mkinitrd is on the way out in favour of some other, easier to configure and manage, tool.
And possibly the best way to migrate /usr -- should one use 'cp', mv', 'cpio' or 'rsync' ?
I use 'mc' or 'rsync', with some parameters that I don't remember by memory. Probably these:
rsync --archive --acls --xattrs --hard-links --stats \ --human-readable ORIGEN/ DESTINO
And it has to be done from a live. Basically, the procedure is:
create new partition, mount it somewhere, copy usr there, rename old usr, edit fstab appropriately, run mkinitrd inside a chroot (with new usr mounted appropriately).
"Chroot"? Chroot to where? You can't, in my experience, simply chroot to anywhere except / without having to make provision for /dev, /proc and /sys. At the very least initrd needs to know what modules to include and where to write to. If you've chroot'd this may be all upset unless you either make a few mounts and symlinks and supply an argument list. Now to be fail, I've booted form the rescue disk to do many operations and then mounted the hard drive I've been modifying/repairing on /mnt/disk and chroot'd there so that I'm running on the 'real' system and not the rescue disk. Perhaps that's what you were thinking of but didn't mention or perhaps edited out when revision. If, however, you are doing this change in single user mode without booting from the rescue disk, then the chroot isn't needed. As with so many things when working with Linux, "there's more than one way to do things". However .... Migrating /usr/share to its own partition frees up space on /usr and maybe on /, and you don't need to run mkinited :-) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org