From owner-freebsd-questions Wed Jun 30 6:40:40 1999 Delivered-To: freebsd-questions@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id C90C815109 for ; Wed, 30 Jun 1999 06:40:31 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id ; Wed, 30 Jun 1999 15:43:34 +0200 Message-ID: <55586E7391ACD211B9730000C11002761796C4@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Dibyo Gahari' , freebsd-questions@FreeBSD.ORG Subject: RE: how to get back /usr/bin files ? Date: Wed, 30 Jun 1999 15:37:40 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Dibyo Gahari [SMTP:dibyo@bali.net] > Sent: Wednesday, June 30, 1999 3:14 PM > To: freebsd-questions@FreeBSD.ORG > Subject: Re: how to get back /usr/bin files ? > Importance: High > > > Dear Doug White, > > I take my server with me now. But I don't know how to copy the bin > files > without install it from the scratch. > > I bought a new harddisk of 8,4 gb. So there are 2 harddrives in my > computer. I install the new drive with FreeBSD 2.2.1 as the old drive. > [ML] This would make it seem as if you have physical access to the machine. Good. > I need to know : > 1. > How can I copy the /bin files from my 2nd FreeBSD CDROM to my > /usr/bin/, > since my /usr/bin/login has been deleted ? (I can not login to my > server) [ML] Depending upon the amount of deleted files in /bin or /usr/bin, you may or may not be able to boot standalone (that is, supplying -s as the option to the boot: prompt) because you may not have any shell to run. If you have physical access to the machine, you can boot from installation floppy and chose fixit mode, insert fixit floppy and then mount the previous / or /usr (wherever your /usr/bin resides) onto /mnt. Then, mkdir /mnt/cdrom, unless it already exists, and mount your 2nd CDROM there. Start copying from /mnt/cdrom/usr/bin into /mnt/(usr/)bin That's it. /Marino > 2. > If I use the old drive as the main partition, how can I know the dev > name > of the second drive / File System (/dev/wd0s1, or wd0s1e, or ?) so I > can > mount it as my new partition ? [ML] I would need more details to answer this question. > Thank you. > Regards, > Dibyo Gahari > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message