You are not logged in.

#1 2014-10-19 14:38:08

aditya3098
Member
From: In front of the computer
Registered: 2014-05-01
Posts: 53
Website

[SOVED]Deleted /bin

I don't know how I did it, but I somehow managed to delete my /bin and /lib folders.
I have achieved chroot access on the machine, so is there any way I can tell which packages have files in /bin and /lib. The /usr folder is not affected, so Im guessing not too many packages need to be reinstalled.
P.S:
I am currently pacstrapping base, base-devel and zsh.

Last edited by aditya3098 (2014-10-19 16:32:28)

Offline

#2 2014-10-19 14:44:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,597

Re: [SOVED]Deleted /bin

both /bin and /lib are just symlinks (assuming you're even half way up to date). Just `ln -s usr/bin bin` `ln -s usr/lib lib` and you should be set.

Last edited by Scimmia (2014-10-19 14:45:14)

Offline

#3 2014-10-19 16:09:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOVED]Deleted /bin

Not a Pacman issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-10-19 16:31:16

aditya3098
Member
From: In front of the computer
Registered: 2014-05-01
Posts: 53
Website

Re: [SOVED]Deleted /bin

Yeah, got that from the docs and fixed it. I actually read that somewhere, but for some reason, /bin and /lib were empty folders, not deleted. This made me think the system went bonkers and I pacstrapped and got it working.

On the plus side, it helped me fix a bunch of minor/major issues I had, including the shutdown/poweroff/halt/reboot commands not working, forcing me to use systemctl reboot/poweroff, and I found out that for some reason, /root was world-writable, which gave me a heart attack.


UPDATE: I looked into my command history, turns out I was trying to put some stuff into /bin or something, and things went downhill from there.

UPDATE(er): Forgot to mention, the pacstrap command actually errored out until I deleted /bin and /lib

Last edited by aditya3098 (2014-10-19 16:33:53)

Offline

Board footer

Powered by FluxBB