reinstalling debian /bin
James Kramer
kramerjm at gmail.com
Sun Sep 17 15:55:21 EDT 2006
I mounted the root of the OS that requires reinstall to
/test
I then
# chroot /test
# cd /test
# dpkg -get-selections
# apt-get install --reinstall
I get the following:
caldron:/test# apt-get install --reinstall
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 231 not upgraded.
Jay
On 9/17/06, James Kramer <kramerjm at gmail.com> wrote:
> Thanks,
> I'll give it a try
>
> On 9/17/06, dsr at tao.merseine.nu <dsr at tao.merseine.nu> wrote:
> > On Sun, Sep 17, 2006 at 01:53:35PM -0400, James Kramer wrote:
> > > While working on Xen setup I managed to delete /bin by using the command
> > > rm -R /bin. I don't think that I can recover the /bin files but I
> > > should be able to reinstall the packages. I have a backup of all my
> > > data files and most config files that were in /etc. I can boot into a
> > > different debian OS using grub so I can access the partition and
> > > files. I can chroot the particular partition. Can someone suggest
> > > how to reinstall the system. If I do a complete debian reinstalll
> > > from CD on top the partition would it retain my old directories and
> > > files. I tried to chroot the root partion figuring that I could use
> > > apt-get to reinstall the packages but I can not figure out the proper
> > > way to do it. Any suggestion would be appreciated.
> >
> > Use dpkg --get-selection to get a list of all installed
> > packages, then apt-get install --reinstall to reload them.
> >
> > -dsr-
> >
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list