Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

/bin/sh gone

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
eronde
n00b
n00b
User avatar
Posts: 73
Joined: Sat Dec 25, 2004 7:00 pm
Location: The Netherlands

/bin/sh gone

  • Quote

Post by eronde » Sat Aug 25, 2007 5:14 pm

Hello,

I've made a little mistake, I've delete /bin/sh.

How can I get bash on my system without a bash shell.

Greetz
Top
steveb
Advocate
Advocate
User avatar
Posts: 4563
Joined: Wed Sep 18, 2002 8:19 pm

  • Quote

Post by steveb » Sat Aug 25, 2007 5:21 pm

Did you deleted just /bin/sh (the symlink) or did you deleted /bin/bash. If you just removed the symlink then execute:

Code: Select all

cd /bin
ln -sf bash sh
// SteveB
Top
eronde
n00b
n00b
User avatar
Posts: 73
Joined: Sat Dec 25, 2004 7:00 pm
Location: The Netherlands

  • Quote

Post by eronde » Sat Aug 25, 2007 5:24 pm

sorry, I'e also deleted /bin/bash.
Top
Majlo
n00b
n00b
User avatar
Posts: 38
Joined: Sat Sep 16, 2006 7:17 pm
Location: Slovakia

  • Quote

Post by Majlo » Sat Aug 25, 2007 8:11 pm

Hi

Code: Select all

mario@server ~ $ equery belongs /bin/bash
[ Searching for file(s) /bin/bash in *... ]
app-shells/bash-3.2_p17 (/bin/bash)
So

Code: Select all

emerge -1av app-shells/bash
should be enough

Regards,
Mario
Top
Rob1n
l33t
l33t
Posts: 714
Joined: Sat Nov 29, 2003 5:16 pm
Location: Cambridge, UK

  • Quote

Post by Rob1n » Sat Aug 25, 2007 8:29 pm

You'll probably need to do a binary install - I suspect the compilation will fail without a valid /bin/sh. You could also just copy the missing files from an install CD or stage3 tarball.
Top
omp
Retired Dev
Retired Dev
User avatar
Posts: 1018
Joined: Sat Sep 10, 2005 8:47 am
Location: Glendale, California
Contact:
Contact omp
Website

  • Quote

Post by omp » Sat Aug 25, 2007 9:09 pm

Rob1n wrote:You could also just copy the missing files from an install CD or stage3 tarball.
Even easier would be to just download a binary of bash.

Assuming you are on x86, use the following URL. Otherwise, poke around the tinderbox to find your arch. :)
http://tinderbox.dev.gentoo.org/default ... 2_p17.tbz2
meow.
Top
eronde
n00b
n00b
User avatar
Posts: 73
Joined: Sat Dec 25, 2004 7:00 pm
Location: The Netherlands

  • Quote

Post by eronde » Sun Aug 26, 2007 11:51 am

Thanks for the info.

I've downloaded but when I extract the file I get the following error.

Code: Select all


bzip2: (stdin): trailing garbage after EOF ignored
I've tried to extract it to /Tmp, it works. Only the files bash and rbash would not extract.
Last edited by eronde on Sun Aug 26, 2007 12:01 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Aug 26, 2007 11:59 am

eronde,

Thats OK.
The tinderbox packages are binaries of the packages made with emerge. After the code you need are some details of how it was produced. It would have installed with no problem had you used emerge -K but I think that needs bash.

I should work now.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
eronde
n00b
n00b
User avatar
Posts: 73
Joined: Sat Dec 25, 2004 7:00 pm
Location: The Netherlands

  • Quote

Post by eronde » Sun Aug 26, 2007 12:10 pm

Thanks guys,

Problem fixed.

Eronde
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic