DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It is my understanding that an mv across partitions is in reality a cp followed by an rm.
So I can't see how using mv will make things better. If something goes wrong it will not be easy to fix.
I'm still thinking in terms of the initrd file. The problem seems to be that, early in the boot process, fsck cannot find /usr. When the boot is complete /usr is there, but unchecked.
So: If I copy the initrd file somewhere else, reboot with the new /usr directory selected in fstab and then run update-initramfs is it likely that the new initrd file will have the info necessary for fsck to find /usr?
If this fails I can copy the original initrd file back and reselect the old /usr.
Or am I missing something out and risking trashing my system?
Almost!. I renamed usr1 to usr and vice versa and then reflected the change in fstab.
I could do this because the two directories are on different discs.
I think I'll rephrase the question and toss it into the Linux General forum although i suspect that most of the people here will be there too.
After that I have 2 options.
1. Cross my fingers and run update-inotramfs.
2. Move the /var directory instead of the /usr one and then grow /usr into the space vacated by /var. They are on different but adjacent partitions.
At the present time I'm not sure how you would deal with it, when I got the warning I chose to move /usr to /. This was my original post, which I forgot to post solution & mark solved. http://www.linuxquestions.org/questi...en-4175517426/
When I had that problem I lost /usr by entering a wrong command while using live-cd. I believe I found it in tmp. Then moved it back.
Actually the command was the right command but since I was in live-cd I should've used
Systemd supports it by rebuilding initramfs. I believe the patch makes it do fsck before actually mounting.
You will probably find more documentation in fedora since it's been running systemd the lo.vest & without problems. I believe that I had problems getting info becaus I didn't have an account with redhat or fedora.
Just FYI, while doing my regular upgrade on Sid today, I was prompted with the changelog of the new version of initramfs-tool:
Quote:
The initramfs will now run fsck on the root filesystem before
mounting it. If the chosen init program is systemd and there is a
separate /usr filesystem, it will also fsck and mount /usr.
So, might be worth to give it a try. By the way, this is version 0.119 of initramfs-tools.
Last edited by Hungry ghost; 03-05-2015 at 05:38 AM.
Just FYI, while doing my regular upgrade on Sid today, I was prompted with the changelog of the new version of initramfs-tool:
That's good then that means they added automatic support for it, so you don't have to do it manually. I really liked having separate /usr because my / wasn't always getting full.
That's good then that means they added automatic support for it, so you don't have to do it manually. I really liked having separate /usr because my / wasn't always getting full.
Yes, hopefully the problem is fixed on this version of initramfs-tools.
Thanks for the info. I ran the upgrades yesterday, with /usr still in hte original position. Been run off my feet and so was, and still am, unable to play at length at the moment.
Can anybody answer this please:
Will initramfs find /usr if I move it or do I need to move it, get past the error messages and then generate a new initramfs?
Thanks for the info. I ran the upgrades yesterday, with /usr still in hte original position. Been run off my feet and so was, and still am, unable to play at length at the moment.
Can anybody answer this please:
Will initramfs find /usr if I move it or do I need to move it, get past the error messages and then generate a new initramfs?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.