From owner-freebsd-questions Sat Feb 21 18:53:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA01193 for freebsd-questions-outgoing; Sat, 21 Feb 1998 18:53:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA01175 for ; Sat, 21 Feb 1998 18:53:23 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id NAA06292; Sun, 22 Feb 1998 13:22:22 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id NAA22954; Sun, 22 Feb 1998 13:22:22 +1030 (CST) (envelope-from grog) Message-ID: <19980222132221.48564@freebie.lemis.com> Date: Sun, 22 Feb 1998 13:22:21 +1030 From: Greg Lehey To: ANgel Behar , freebsd-questions@FreeBSD.ORG Subject: Re: Cannot mount file system, and sorry!! References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from ANgel Behar on Sun, Feb 22, 1998 at 02:34:55AM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 22 February 1998 at 2:34:55 +0000, ANgel Behar wrote: > > Sorry about the last mail, I need to send it from another computer (for > obvious reasons). I shutdown my 2.1.7.1 box to put more memory and once I > turn it on the file system dont boot again. The next message appear : > > swapon:/dev/sd0s1b:No such file or directory > Automatic reboot in progress... > /dev/sd01f:no such file or directory > Can't Stat /dev/sd0s1f > Automatic file system check failed...help! The message "No such file or directory" here means that the device node for /dev/sd* doesn't exist, not that the system can't find the disk (otherwise you'd get the message "Device not configured". It's relatively simple to create the nodes--*if* they're already there. In this case, you can use MAKEDEV for this. > Once this happend I have an # prompt but I cannot mount the partitions > manualy. > As you can see I am a little bit paranoic about lose my info. If you have > any comment or suggestion, please HELP me!!! Don't worry about your data. There's probably no problem there. Try this: # ls -l /dev/sd0* This will probably not list the device files you're looking for. Next, try this: # mount -u / # cd /dev # ./MAKEDEV sd0 If this works, you should be able to exit single user mode by pressing ctrl-D (^D). If it doesn't, check if you can find /dev/sd0a, /dev/sd0b and /dev/sd0f. In this case, try: # fsck -y /dev/sd0a # fsck -y /dev/sd0f # mount -u /dev/sd0a # mount -u /dev/sd0f The last two lines assume that you have a valid /etc/fstab. If you can't find these files, try this: # mount -u / # mknod /dev/sd0s1b b 4 1 # mknod /dev/sd0s1f b 4 5 If this works, you should then be able to do: # swapon /dev/sd0s1b # mount /dev/sd0s1f After that, use MAKEDEV (see above) to create all the device nodes properly. A lot of this is in "The Complete FreeBSD", second edition (http://www.cdrom.com/titles/os/bsdbook2.htm), page 172 and on. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message