From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 04:22:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5517B16A4CE for ; Wed, 4 Feb 2004 04:22:36 -0800 (PST) Received: from itree.org (tree.caddev.com [24.153.136.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F96943D1F for ; Wed, 4 Feb 2004 04:22:34 -0800 (PST) (envelope-from treeml@itree.org) Received: from laptop (user-0cdfdln.cable.mindspring.com [24.215.182.183]) by itree.org (8.11.6/8.11.6) with SMTP id i14CIdq28915 for ; Wed, 4 Feb 2004 06:18:39 -0600 From: "treeml" To: Date: Wed, 4 Feb 2004 07:21:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20040204144342.3bcae8d7@Hal.localdomain> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: verify md5 for /sbin/init (v1.7.2.3 2002/08/12 11:17:37 ) on FreeBSD Stable 4.9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 12:22:36 -0000 My machine hangs at /sbin/init on boot, I just want to check if /sbin/init is corrupted or not. I have FreeBSD 4.9 stable on PIII 866. Here is the md5 MD5 (/mnt/sbin/init) = a7dc0528ae8a102c96f51dc516aa7f62 ident /mnt/sbin/init Gave out a long list of results, but at the end of the list, which is also the most recent is the following. $FreeBSD: src/lib/libc/locale//ldpart.c,v1.7.2.3 2002/08/12 11:17:37 ache Exp $ If anyone out there can verifies the md5 sum of "/sbin/init" of the version listed above, that would be very helpful. Tree -----Original Message----- From: Sergey 'DoubleF' Zaharchenko [mailto:doublef@tele-kom.ru] Sent: Wednesday, February 04, 2004 6:44 AM To: treeml Subject: Re: freeBSD 4.9 stable hang on start_init: trying /sbin/init On Wed, 4 Feb 2004 05:41:14 -0500 "treeml" probably wrote: > After a power failure, my freebsd 4.9 stable is giving out the UDMA ICRC > error. (see my first email below), but after a few boot, and change of a IDE > cable, it is no longer giving out that error. > > However, it still hangs at boot at > > >Mounting root from ufs:/dev/ads1a > > If I boot with "boot -v" option. It will stop at > > >Start_init: trying /sbin/init My bet is that the data in /sbin/init is broken. Do an md5 /sbin/init and send it to the list. Be sure to supply the date of your sources (as you're using STABLE, not 4.9-RELEASE) (or the output of ident /sbin/init). If nobody confirms the same checksum, then perhaps I'm right. > This happens with my custom kernel and the default kernel. I also can't > boot into single user mode using "boot -s" > > It is worth mentioning that I was able to boot the box from a FreeBSD 5.1 > rescue CD, and remount all the partitions. I even used fsck and check all > the partitions to make sure they are clean. But still can't boot from it. fsck will not necessarily notify you if there are hardware read errors somewhere on the drive. It just makes sure the filesystem areas are consistent and readable, not the data. If you use dd to read the whole disk, say # dd if=/dev/ad1s1a of=/dev/null bs=128k and it completes successfully, then it might be not a hardware fault, but something else. I'm sorry to say, but recently I had a power failure and it damaged my 80G Seagate (and FreeBSD gives pretty much the same errors when attempting to access the damages sectors). > I have search the Internet, and it looks like quite a few people had the > same problem during installation, but I didn't find any suitable solutions. -- DoubleF People will accept your ideas much more readily if you tell them that Benjamin Franklin said it first.