From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 05:08:39 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 9667D16A4CE for ; Wed, 4 Feb 2004 05:08:39 -0800 (PST) Received: from itree.org (tree.caddev.com [24.153.136.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 109C243D2F for ; Wed, 4 Feb 2004 05:08:36 -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 i14D4bq28947; Wed, 4 Feb 2004 07:04:38 -0600 From: "treeml" To: "Gilad Rom" Date: Wed, 4 Feb 2004 08:07: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: <4020E467.8040609@romat.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal cc: freebsd-questions@freebsd.org Subject: how to replace corrupted /sbin/init 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 13:08:39 -0000 Thanks Gilad, it looks like my /sbin/init is corrupted. The md5 of my init didn't match that of another user. And my system hangs at /sbin/init during boot. Does anyone have any suggestions on how to safely replace /sbin/init without erasing data on the drive? I have FBSD 4.9 stable, I try running upgrade from my the 4.9 RELEASE CD. Everything seems to be fine till the point after I select the installation media (I chose CD-ROM), it say it that it can't read data from /dev/acd0. I can try FTP option, but does anyone have a better sugguestions on how to replace a working copy of /sbin/init on to the root dir? Tree -----Original Message----- From: Gilad Rom [mailto:gilad_bsd@romat.com] Sent: Wednesday, February 04, 2004 7:24 AM To: treeml Cc: freebsd-questions@freebsd.org Subject: Re: verify md5 for /sbin/init (v1.7.2.3 2002/08/12 11:17:37 ) on FreeBSD Stable 4.9 treeml wrote: > 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. Here is mine: MD5 (/sbin/init) = bdcf745dd758b38727ba97f24be471e5 and ident /sbin/init shows: $FreeBSD: src/lib/libc/locale/ldpart.c,v 1.7.2.3 2002/08/12 11:17:37 ache Exp $ This is from FreeBSD 4.9-RC1. However, from a 4.9-STABLE box, I get MD5 (/sbin/init) = 3ce17ad04b21e20b91204dd9867e8f80 and ident /sbin/init shows: $FreeBSD: src/lib/libc/locale/ldpart.c,v 1.7.2.4 2003/12/22 20:45:16 jkh Exp $ Gilad.