From owner-freebsd-questions Thu Feb 7 14:21:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 0EC9437B400 for ; Thu, 7 Feb 2002 14:21:03 -0800 (PST) Received: from dialup-209.245.138.32.dial1.sanjose1.level3.net ([209.245.138.32] helo=blossom.cjclark.org) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16YwuS-0007Gs-00; Thu, 07 Feb 2002 14:20:52 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id g17Lj2k07253; Thu, 7 Feb 2002 13:45:02 -0800 (PST) (envelope-from cjc) Date: Thu, 7 Feb 2002 13:45:01 -0800 From: "Crist J. Clark" To: Thorsten Trampisch Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /sbin not on root partition, init_path does not work -> init not found Message-ID: <20020207134501.B6492@blossom.cjclark.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from thorsten@trampisch.com on Thu, Feb 07, 2002 at 04:41:08PM +0100 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 07, 2002 at 04:41:08PM +0100, Thorsten Trampisch wrote: > Hello, > > I have the following problem: > I had to upgrade a FreeBSD 4.3-RELEASE box to 4.5-STABLE. > I did a "make buildworld" "make buildkernel" and "make installkernel". > After the following reboot the machine came up with /stand/sysinstall > > The system was not set up by me: I found out that /sbin > is linked to another partition: > disk1s1a: Root Partition > disk1s1e: Partition with sbin on it > > I tried to "set init_path=disk1s1e:/sbin/init" at the loader prompt > but this does not work at all. > > Because I only have a serial console and cannot access the machine physically > I have to try it remotely. I do have to get it work. > > Here some Output from the boot screen: > > ----- START - before init_path set -------- > > Waiting 15 seconds for SCSI devices to settle > Mounting root from ufs:/dev/da0s1a > da0 at sym0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing > Enabled > da0: 8678MB (17773524 512 byte sectors: 255H 63S/T 1106C) > /stand/sysinstall running as init on serial console > > ----- END - before init_path set -------- > > > ----- START - after init_path set -------- > > Mounting root from ufs:/dev/da0s1a > da0 at sym0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing > Enabled > da0: 8678MB (17773524 512 byte sectors: 255H 63S/T 1106C) > init: not found in path disk1s1e:/sbin/init > panic: no init > > > ----- END - after init_path set -------- > > If I try an "ls disk1s1e:/sbin" at the loader prompt I get the correct > entries of the /sbin directory including "init"-program. > > It would be great if someone could help me with this problem. That's a good one. My first thought is to: 1) Let it boot into sysinstall, 2) Go to the fixit option and start the fixit floppy or CDROM, 3) Wipe the /sbin symlink, 4) Make /sbin a directory, 5) Mount /dev/da0s1e on /mnt2 or someplace out of the way, 6) Copy the contents of /mnt2/sbin to /sbin. 7) Copy anything else from /mnt2/sbin to the appropriate places, 8) Reboot. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message