LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 07-25-2005, 01:28 PM   #1
roastedmnm
LQ Newbie
 
Registered: Jul 2005
Posts: 24

Rep: Reputation: 15
Accidentally overwrote /bin/sh


SuSE9.3 Pro

Simply put, I was going to install some package and used su to give myself the privlages to do so but then realized that I had the folder in the wrong directory so I 'cd installfolder /bin/sh' not realizing that there was already a file named sh.

Now when I boot I get errors stating that: SuSEfirewall2_setup alsasound boot.udev earlykdm earlykbd hal cron dbus hwscan mdusd nfsboot nscd postfix random rcd smbfs smb cups nmb splash_early sshd xinetd resmgr and portmap cannot be found on runlevel (I forgot to check the runlevel).

Also the login screen states "Log into (none)". It will properly properly authenticate username and password but after logging in (root or user)I recieve a simple command line in the corner and that shows '(none):#'. From this command line I can see / and can mount the rest of the harddrive (multiple partitions) but I seem to have no access to any cd rom drive.

In trying to solve this problem I first tried YaST2's autmatic recovery option (on the boot cd) to no effect and I have copied the file /bin/sh from another SuSE9.3 Pro machine (this was a server machine so no kde/gnome), however, neither had any noticable effect.



Please help this noob that knows just enough to be dangerous.

roasted
"su is the root of all kinds of evil"
 
Old 07-25-2005, 01:51 PM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
/bin/sh has always just been a symbolic link to /bin/bash on distros I've used.
 
Old 07-25-2005, 02:12 PM   #3
roastedmnm
LQ Newbie
 
Registered: Jul 2005
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by oneandoneis2
/bin/sh has always just been a symbolic link to /bin/bash on distros I've used.
If this is the case, then why have about 20 important files dissappeared, and why has my box ceased to have a name ex. Login to (name) or start kde etc properly?

I haven done anything ground breaking in the last week (I think that was what my uptime was) other than that mistake. I just don't want to have to reinstall everything. (i.e. this noob got ATI drivers to work, my printer to work-and a bear that one was, my sound to work properly with my card, and installed several (read 20-30) packages that provided important stuff that I use, but don't know the names of).

roasted
 
Old 07-25-2005, 03:52 PM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Have the files disappeared, or are they just not being run any more?

Shell scripts are generally set to be run by /bin/sh - if you no longer have /bin/sh, you'll loose the functionality of every shell script on your machine.
 
Old 07-26-2005, 12:12 AM   #5
roastedmnm
LQ Newbie
 
Registered: Jul 2005
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks for the suggestions. I noted that the programs were still there and created a new symlink. (pouf) It works again.



roasted
 
Old 07-26-2005, 02:37 AM   #6
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Told you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally overwrote MBR - Grub rrc124 Linux - Newbie 2 05-20-2005 12:24 AM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 06:40 AM
AaaaAAAaah help, I made a huge mistake :( accidentally moved /bin! yelgnits Linux - General 10 09-02-2004 07:08 AM
Accidentally deleted /usr/bin/net larley Linux - General 2 07-26-2004 10:22 PM
Emergency - /bin accidentally overwritten davidbalt Linux - Newbie 23 02-25-2004 02:12 PM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration