You are not logged in.

#1 2010-04-02 10:44:45

Domion
Member
Registered: 2009-01-05
Posts: 2

/usr/bin deleted-> How To get it back

Hi there,
Today I was dumb enough to delete /usr/bin. Actually I just wanted to delete a file in /bin, but you know how it works, before you've written everything you hit enter, and bad things happen. Now I've only got kdemod, opera, kontact, and amarok running, nothing else works.
So how do I get /usr/bin back, or at least pacman back so I can install everything anew?
I've got a 32Bit System, and KDEmod, obviously, if you need anything else tell me and I'll post it.

Offline

#2 2010-04-02 10:47:51

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: /usr/bin deleted-> How To get it back

Reinstall your system, it's gone now.

Offline

#3 2010-04-02 10:48:32

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: /usr/bin deleted-> How To get it back

If I were you I'd make a backup of system files (fstab, pacman configs, rc.conf etc) and reinstall. I think that's a lot faster than trying to restore /usr/bin.

Offline

#4 2010-04-02 10:51:49

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: /usr/bin deleted-> How To get it back

i would boot a livecd, chroot into your install and reinstall all your (or most important) packages.
or copy /usr/bin from another arch system that just has the base group (eg livecd, although it has a few more packages)

Last edited by Dieter@be (2010-04-02 10:52:32)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#5 2010-04-02 10:55:03

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: /usr/bin deleted-> How To get it back

Why on earth would you be deleting stuff from /usr/bin ?
I don't know, you could try the ftp iso and a chroot but I'm not sure...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#6 2010-04-02 16:43:45

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: /usr/bin deleted-> How To get it back

Offtopic, but I just realized that pacman is in /usr/bin, shouldn't it be in /usr/sbin?

Offline

#7 2010-04-02 17:07:51

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: /usr/bin deleted-> How To get it back

some-guy94 wrote:

Offtopic, but I just realized that pacman is in /usr/bin, shouldn't it be in /usr/sbin?

No, if so, you couldn't do normal operations.

As stated, just chroot. No need to reinstall, this is not windows.

Offline

#8 2010-04-03 06:36:03

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: /usr/bin deleted-> How To get it back

I wrote a script to reinstall all packages, of course having pacman install is necessary.  If you're eager, grab the pacman package pacman....pkg.tar.gz, extract it to /.  You'll need other basic tools too like bash probably smile.  Like I said you can run the script, extract each package the script requires and could eventually get to it, if you're eager.  Or you can do like most others suggest and just reinstall.

http://bbs.archlinux.org/viewtopic.php? … 05#p719905

Last edited by Gen2ly (2010-04-03 06:36:31)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB