Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jul 1999 11:29:23 +0800
From:      Dibyo Gahari <dibyo@bali.net>
To:        Ladavac Marino <mladavac@metropolitan.at>, freebsd-questions@FreeBSD.ORG
Subject:   RE: how to get back /usr/bin files ?
Message-ID:  <199907040326.KAA05661@server.jad.net>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907040326.KAA05661>