From owner-freebsd-questions Fri Jul 2 8:53:22 1999 Delivered-To: freebsd-questions@freebsd.org Received: from server.jad.net (unknown [202.134.2.38]) by hub.freebsd.org (Postfix) with ESMTP id AA84E14F25 for ; Fri, 2 Jul 1999 08:52:54 -0700 (PDT) (envelope-from dibyo@bali.net) Received: from office (ppp033.dpr.vidas.telkom.net.id [203.130.255.33]) by server.jad.net (8.8.5/8.9.0) with SMTP id WAA18419; Fri, 2 Jul 1999 22:52:08 +0700 (JAVT) Message-Id: X-Sender: dibyo@bali.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Fri, 02 Jul 1999 23:55:02 +0800 To: Ladavac Marino , freebsd-questions@FreeBSD.ORG From: Dibyo Gahari Subject: RE: how to get back /usr/bin files ? In-Reply-To: <55586E7391ACD211B9730000C11002761796C7@r-lmh-wi-100.corpne t.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks a lot, Marino. I have much more understanding about fixit and mount command now. But, ... At 17:53 01/07/99 , Ladavac Marino wrote: > Now, when you mention slices, I assume these are FreeBSD >partitions (in FreeBSD jargon, slice means a DOS partition). For your >purposes, you can use the so called "compatibility interface" which >supports only one FreeBSD DOS slice (further partitioned into FreeBSD >partitions). > > Let as assume that the disk is detected as wd0. > > In this case your FreeBSD / will be at /dev/wd0a. We shall >mount that so that we can take a look at /etc/fstab. > So, > > fsck /dev/wd0a (this should repair possible / filesystem >damage) > mount -t ufs /dev/wd0a /mnt (now your / should be available as >/mnt) I did it, but there is a "mount: not found" message. So I can't do the rest. What should I do now ? > cat /mnt/etc/fstab (this will let you see where the other >partitions were) > > Let as assume that the /usr was on /dev/wd0d > > fsck /dev/wd0d > mount -t ufs /dev/wd0d /mnt/usr (now, your old /usr is visible >as /mnt/usr) > > If there is no /mnt/cdrom, create one, but there will probably >be one > Take a look what device is your cdrom--we shall assume /dev/wcd0 > insert CD #2 into the cdrom > mount -t cd9660 /dev/wcd0a /mnt/cdrom > > your old /usr/bin is at /mnt/usr/bin. > the cdrom /usr/bin is at /mnt/cdrom/usr/bin > > cd /mnt/cdrom/usr/bin > cp login /mnt/usr/bin (actually, I think login is /bin/login, >in which case cd /mnt/cdrom/bin; cp login /mnt/bin) > > you have your login now. > > umount /mnt/cdrom > umount /mnt/usr > umount /mnt > > exit > > > you are done. > > >>> > /Marino Please advice. Best regards, Dibyo Gahari To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message