Date: Wed, 30 Jun 1999 15:37:40 +0200 From: Ladavac Marino <mladavac@metropolitan.at> To: 'Dibyo Gahari' <dibyo@bali.net>, freebsd-questions@FreeBSD.ORG Subject: RE: how to get back /usr/bin files ? Message-ID: <55586E7391ACD211B9730000C11002761796C4@r-lmh-wi-100.corpnet.at>
next in thread | raw e-mail | index | archive | help
> -----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55586E7391ACD211B9730000C11002761796C4>