From owner-freebsd-questions Sat Jul 3 20:27:13 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 80A381527E for ; Sat, 3 Jul 1999 20:27:01 -0700 (PDT) (envelope-from dibyo@bali.net) Received: from office (ppp062.dpr.vidas.telkom.net.id [203.130.255.62]) by server.jad.net (8.8.5/8.9.0) with SMTP id KAA05661; Sun, 4 Jul 1999 10:26:18 +0700 (JAVT) Message-Id: <199907040326.KAA05661@server.jad.net> X-Sender: dibyo@bali.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Sun, 04 Jul 1999 11:29:23 +0800 To: Ladavac Marino , freebsd-questions@FreeBSD.ORG From: Dibyo Gahari Subject: RE: how to get back /usr/bin files ? 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