You are not logged in.
Pages: 1
Hi, apologies if this is a rather simple problem.
Basically I ran out of space on my root partition and rather than figuring out how to allocate more space, I moved my /usr folder into my main partition. Naturally my computer freaked out and to solve it I created a symbolic link to a folder in / named usr while loaded in the installation cd.
Doing this I am able to boot into ttyl or whatever that is and fiddle around without any issues. My main issue is that updating anything will give me "command failed to execute properly". I tried deleting my dir in the usr/share/info/ folder and regenerating it, but the symptoms still occurred.
I've tried simply booting things like lightdm and getting a "127" message as its status from systemctl.
I can't post a complete error log since it doesn't quite give me one, only bits and pieces. From what I can see, kdm, rpcbind and lightdm all failed. What I figure is that systemd doesn't know the full directories anymore since I moved the folder (despite symbolically linking it).
I appreciate all the help anyone can give me and apologize for the lack of information.
Offline
Revert your system to the state it was in before you started moving stuff around, and then solve your space isue.
Offline
Revert your system to the state it was in before you started moving stuff around, and then solve your space isue.
I haven't kept any backups, does arch come with a pre installed back up utility?
Offline
No.
Jin, Jîyan, Azadî
Offline
You said you moved a directory and made a symlink, surely you can just delete the symlink and put the directory back?
Offline
Can you post the results of...?
$ df -h
$ lsblkYou probably have to edit /etc/fstab to show the kernel where the new /usr directory is. https://wiki.archlinux.org/index.php/Fstab
Last edited by charli3 (2015-06-10 07:44:33)
Offline
Can you post the results of...?
$ df -h $ lsblkYou probably have to edit /etc/fstab to show the kernel where the new /usr directory is. https://wiki.archlinux.org/index.php/Fstab
I can't copy and paste it since the gui isn't working. But it's just showing my usual file systems, it shows a few tmpfs which I don't recognize but I'm not sure if that's any issue.
All the other stuff is mounted properly, sda1 is / and sda2 is /home
however, the usr directory is now in /home/usr with it linked to /
So that may be the issue. How would I go about telling fstab where /usr is now?
Also, multiple websites say that to undo the link (just to check and make sure nothing else is screwed up) you just delete the directory (as in /usr not /home/usr).
Is this true, because I don't wish to delete my data.
Offline
I would suggest using a bind mount in this case. The best would be of course to get more space. How big is your root partition?
You can pipe the output of the commands into a file and then copy that to an usb key or something and paste the content from wherever you write here.
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
I would suggest using a bind mount in this case. The best would be of course to get more space. How big is your root partition?
You can pipe the output of the commands into a file and then copy that to an usb key or something and paste the content from wherever you write here.
My root partition is 15GB. I'll get the output tomorrow afternoon.
Offline
Note that having /usr on a separate partition complicates the boot process (see http://freedesktop.org/wiki/Software/sy … is-broken/ and https://wiki.archlinux.org/index.php/Mk … partition). I'm not sure if having /usr on a non-dedicated separate partition (i.e. having it be a subfolder on /home) is supported by Arch's default initcpio hooks either, so you may need to write custom hooks to handle that.
If you do go down this route, then you will need to use a bind mount instead of a symbolic link, simply because pacman doesn't follow symlinks and will refuse to install anything to /usr so long as it is one. (making updating impossible)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Without seeing df -h or lsblk output, we can just guess.
For me, it sounds as if you come from Mac/Apple:
/usr != /Users
/Users = /home
Just to illustrate my saying:
/dev/sda12 11G 3.0G 7.4G 29% /
/dev/mapper/home 145G 94G 44G 69% /homedu -h /var
<...>
2.3G /usrSo out of 3GB total of my / partition, more than 2/3 are within /usr.
Also, did you add the changes to your /etc/fstab?
hth for future
Offline
Without seeing df -h or lsblk output, we can just guess.
For me, it sounds as if you come from Mac/Apple:
/usr != /Users
/Users = /homeJust to illustrate my saying:
/dev/sda12 11G 3.0G 7.4G 29% / /dev/mapper/home 145G 94G 44G 69% /homedu -h /var <...> 2.3G /usrSo out of 3GB total of my / partition, more than 2/3 are within /usr.
Also, did you add the changes to your /etc/fstab?
Would I do this just by repeating my /dev/sda2 entry with /home/usr or is there something else I should do? The wiki doesn't have this specific circumstance, normally I'd improvise but that's how I got into this mess haha.
I tried doing a bind mount with
/home/usr /usr none bind 0 0 but nothing seemed to change.
I'll try to undo the symbolic link so I can at least boot into kde.
EDIT: Interesting, the screen bypassed the login screen for tty1, probably meaning that its loading the greeter but its just flashing a white dash.
I've not had this before. This is after I moved /usr back into my root directory btw.
EDIT2: Programs seem to install correctly in arch-chroot, so I'm assuming that the pacman stuff is all fixed. I'm not sure where I should go from here.
Last edited by dogin (2015-06-10 22:58:44)
Offline
Note that having /usr on a separate partition complicates the boot process (see http://freedesktop.org/wiki/Software/sy … is-broken/ and https://wiki.archlinux.org/index.php/Mk … partition). I'm not sure if having /usr on a non-dedicated separate partition (i.e. having it be a subfolder on /home) is supported by Arch's default initcpio hooks either, so you may need to write custom hooks to handle that.
WorMzy is right. /usr should be in the same directory as / and /boot for the kernal to run correctly or you have to do some advanced hacking for it to work. My initial comment to change the fstab and mount the file system to another partition only works for non-boot critical filesystems and is wrong in this case. You can however move /var to another partition just fine: https://wiki.archlinux.org/index.php/Pa … unt_points. This would free up some space.
You said you moved a directory and made a symlink, surely you can just delete the symlink and put the directory back?
This actually makes the most sense to me now as the solution to try. And then deal with your space issue.
Offline
WorMzy wrote:Note that having /usr on a separate partition complicates the boot process (see http://freedesktop.org/wiki/Software/sy … is-broken/ and https://wiki.archlinux.org/index.php/Mk … partition). I'm not sure if having /usr on a non-dedicated separate partition (i.e. having it be a subfolder on /home) is supported by Arch's default initcpio hooks either, so you may need to write custom hooks to handle that.
WorMzy is right. /usr should be in the same directory as / and /boot for the kernal to run correctly or you have to do some advanced hacking for it to work. My initial comment to change the fstab and mount the file system to another partition only works for non-boot critical filesystems and is wrong in this case. You can however move /var to another partition just fine: https://wiki.archlinux.org/index.php/Pa … unt_points. This would free up some space.
tomk wrote:You said you moved a directory and made a symlink, surely you can just delete the symlink and put the directory back?
This actually makes the most sense to me now as the solution to try. And then deal with your space issue.
I moved the /usr folder back into root.
I then got it to boot into the normal tty1 by disabling kde, oddly enough some of my permissions are all wonky. As in, sudo no longer works and logging in as su with my password gives me an authentication failure.
Offline
What do you mean with "sudo no longer works"? If logging in as root gives you an authentication failure you have either forgotten your password or your /etc/passwd and or /etc/shadow files might be corrupted.
Are you sure you copied the folder to / ?
How much space is left on your root partition?
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
It sounds like the sudo and su binaries have lost their SUID, or root is no longer the owner. How did you move the files? Did you preserve ownership and attributes?
What is the output of
ls -l $(which sudo) $(which su)Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I had forgotten to -p on cp. I guess thats why I belong in the newbies corner haha.
Luckily I mv'd it initially, which is why su and sudo worked when I made the symbollic link. Thankfully. I also could log in as root, but not su.
I'll add more as time goes on if there's anything else.
EDIT:
Update, ownership has been restored but multiple things still are rather odd. Kdm and lightdm both flash a black dash when started.
Wifi-menu no longer displays its gui anymore and simply says "invalid interface specification"
I did try reinstalling the firmware on that one, no dice.
Last edited by dogin (2015-06-13 08:14:21)
Offline
As already stated, /home =! /usr.
This said:
which sudo
/usr/bin/sudoSo, binding your user 'usr' its directory /usr, will overwrite (over-mount/bind) ALL subdirs of /usr, such as /usr/bin, /usr/share, /usr/local and so forth.
Stop doing that, rather try:
/home/User /username bind none 0 0Where /username is NOTHING of the currently existing paths, you have to create it before first boot though.
hth
Last edited by esa (2015-06-13 10:11:43)
Offline
Excuse me if I'm asking a stupid question, but why would he want to bind /home/User to /username?
You used mv to move the directory earlier, but you reversed it using cp. Why not just mv it back so that you're sure you reverted the action as much as possible? I'm not sure how much of a difference it will make but it might.
Offline
Excuse me if I'm asking a stupid question, but why would he want to bind /home/User to /username?
You used mv to move the directory earlier, but you reversed it using cp. Why not just mv it back so that you're sure you reverted the action as much as possible? I'm not sure how much of a difference it will make but it might.
I cp'd the /usr directory back to its original place, while preserving permissions.
So all the permission stuff is back to normal. As for the other poster, I had already tried a bind mount to no success. Right now I'm focusing on just getting my computer working and then figuring out how to expand my root directory.
Right now, wifi menu isn't working. Kde displays a flashing dashbar when I start it with systemctl. I've done pacman -Syu about a dozen times and that might be the error.
I might also have to redo the /dir file with all the new location. Honestly I'm not sure where to go at this point.
Last edited by dogin (2015-06-13 20:42:45)
Offline
Right now, wifi menu isn't working.
What, specifically is the output when you try it.
Kde displays a flashing dashbar when I start it with systemctl.
That makes no sense. KDE is not a systemd service. Perhaps you mean kdm?
Were I in your shoes, I would disable kdm (or kde
) services. Then, as your user, use xinit or startx, to try to start X.
Post the output here, along with your Xorg.0.log. When using xinit or startx, the logs are in ~/.local/share/xorg/
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Steef435 wrote:Excuse me if I'm asking a stupid question, but why would he want to bind /home/User to /username?
You used mv to move the directory earlier, but you reversed it using cp. Why not just mv it back so that you're sure you reverted the action as much as possible? I'm not sure how much of a difference it will make but it might.
I cp'd the /usr directory back to its original place, while preserving permissions.
Reading the manual page, cp -p preserves "just" mode, ownership and timestamps by default. Did you use cp --preserve=all? Even then I wouldn't know for sure whether it would be the exact same as mv. Though it may not make a difference indeed.
Offline
Pages: 1