[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Xen-users] About: rm -f /bin /sh
Thanks for your patience and help!! I try to do ln -s /bin/bash /bin/sh , and it can work now!
Thanks a lot !!
Best regards, Yogi
> Date: Wed, 26 Jan 2011 08:34:17 -0700 > From: Nick.Couchman@xxxxxxxxx > To: chi7396@xxxxxxxxxxx > CC: xen-users@xxxxxxxxxxxxxxxxxxx > Subject: Re: [Xen-users] About: rm -f /bin /sh > > Okay, question, first: > Did you do: > rm -Rf /bin /sh > OR > rm -Rf /bin/sh > > ?? Notice the space inbetween the /bin and /sh on the first one. If > you executed the first one, you're pretty well hosed - you're going to > need to reinstall several packages to get the files back into /bin. If > you executed the second one, read on... > > If you executed ln -s /bin/sh /bin/bash, and the command succeede
d, then > you have almost certainly wiped out bash with a link to the > non-existent /bin/sh. With the ln command the first path is the > existing file and the second path is the link. Since you've > removed /bin/sh, linking /bin/bash will erase the /bin/bash file and > replace it with a link to /bin/sh, which doesn't exist. So, at a > minimum you need to reinstall bash. You'll likely need to boot with a > rescue CD for this. > > -Nick >
> On Wed, 2011-01-26 at 20:49 +0800, Huang Yogi wrote: > > Dear all > > > > > > After I doing: rm -f /bin /sh ,my pc(Debian) can not work anymore, > > > > I try to do: ln -s /bin/sh /bin/bash, but it doesn't work; > > > > > > after reboot it shows cannot > > execute /etc/init.d/rcS ; /etc/init.d/rc... > > > > > > > &
gt; could you help me how to fix this problem!! > > > > > > Thank you so much!!! > > > > > > Best regards, > > Yogi Huang
|
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|