WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-users

[Top] [All Lists]

RE: [Xen-users] About: rm -f /bin /sh

To: <nick.couchman@xxxxxxxxx>, XEN-Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] About: rm -f /bin /sh
From: Huang Yogi <chi7396@xxxxxxxxxxx>
Date: 2011年1月27日 11:01:12 +0800
Cc:
Delivery-date: 2011年1月26日 19:02:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <4D3FDC8902000099000C11CA@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4D3FDC8902000099000C11CA@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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: 2011年1月26日 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 
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-users] iscsi vs nfs for xen VMs , James Harper
Next by Date: Re: [Xen-users] iscsi vs nfs for xen VMs , Adi Kriegisch
Previous by Thread: Re: [Xen-users] About: rm -f /bin /sh , Nick Couchman
Next by Thread: [Xen-users] qemu: drive out of range , Wolf Grossi
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /