From owner-freebsd-questions Sat Nov 30 01:02:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA01453 for questions-outgoing; Sat, 30 Nov 1996 01:02:20 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA01448 for ; Sat, 30 Nov 1996 01:02:15 -0800 (PST) From: Greg Lehey Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vTlJL-000QrKC; Sat, 30 Nov 96 10:02 MET Received: (grog@localhost) by freebie.lemis.de (8.8.3/8.6.12) id JAA21468; Sat, 30 Nov 1996 09:52:02 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Message-Id: <199611300852.JAA21468@freebie.lemis.de> Subject: Re: Freebsd Post Installation problem!! In-Reply-To: <329D3AC4.11E9@southwind.net> from Mohammad K Islam at "Nov 28, 96 01:09:56 am" To: sohel@southwind.net Date: Sat, 30 Nov 1996 09:52:01 +0100 (MET) Cc: questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Mohammad K Islam writes: > Hello, > > I have successfully installed freebsd2.1.5 on my machine. But as i was > running it for last few days i have noticed that the hard drive > light(H.D.D Light) is always on whenever i am on the freebsd slice. I > cant seem to figure out the reason for it. Is just the light on, or is the disk also active? If the disk is active, there are ways to find out what's going on. For example, use iostat: $ iostat 5 tty fd0 wd0 sd0 sd1 cpu tin tout sps tps msps sps tps msps sps tps msps sps tps msps us ni sy in id 0 424 0 0 0.0 242 15 7.0 379 39 0.0 37 5 0.0 8 0 8 4 79 0 532 0 0 0.0 265 17 5.3 287 34 0.0 0 0 0.0 9 0 9 1 81 0 468 0 0 0.0 265 22 7.4 242 35 0.0 0 0 0.0 7 0 7 1 86 0 433 0 0 0.0 448 31 6.9 365 34 0.0 0 0 0.0 8 0 8 2 82 ^C The 5 is the number of seconds between the display lines. You'll have to stop the display when you've seen enough (4 is good for what you're looking for). In this example, you can see statistics for 4 disks: fd0 (floppy, inactive), wd0 (IDE drive, quite active), sd0 (first SCSI, also quite active), and sd1 (second SCSI disk, inactive). The man page doesn't tell you, but some of the values specified in the first line are averages since the system was booted (like the activity for sd1, which was quite active earlier on). > I am sharing a 1.06 gig drive between win95 and freebsd. I have put > the freebsd slice within the first 1024cylindres as instructed by > the installtion companion book that came with the CD from Walnut > creek CDROm. Last night when i was running freebsd my pc suddenly > rebooted itself. Sounds like a panic. Take a look at page 83 of "The Complete FreeBSD" for more details. > After that i dont get the login prompt anymore but instead i get > just a root(#) prompt.Also during bootup just after probing for > devices.. it tells me to run fsck and then give me the # prompt. Well, do what it says :-) It looks as if something got badly screwed up as a result of the panic, and even the standard file system checks weren't happy with the result. There's an example of what to do on page 145: # fsck -y /dev/rwd0a # fsck -y /dev/rwd0e You'll need to compare the device names with what you have in /etc/fstab. > I would really appreciate any enlightenment on this if possible. I > really would like to get it solved and get freebsd up and running . I'm more than a little concerned that this happened in the first place. Could it be that you used FIPS to reduce the size of an MS-DOS partition? If so, you could end up having the same problem again. Greg