Date: Fri, 8 Feb 2002 08:36:58 +0100 (CET) From: Thorsten Trampisch <thorsten@trampisch.com> To: "Crist J. Clark" <cjc@freebsd.org> Cc: <freebsd-questions@freebsd.org> Subject: Re: /sbin not on root partition, init_path does not work -> init not found Message-ID: <Pine.NEB.4.33.0202080834450.19183-100000@otaku.freeshell.org> In-Reply-To: <20020207134501.B6492@blossom.cjclark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, thats a good suggestion. The problem was to get a Fixit floppy to the machine, but today I will go to the housing center and fix it. Thanks, Thorsten On Thu, 7 Feb 2002, Crist J. Clark wrote: > Date: Thu, 7 Feb 2002 13:45:01 -0800 > From: Crist J. Clark <cjc@freebsd.org> > To: Thorsten Trampisch <thorsten@trampisch.com> > Cc: freebsd-questions@freebsd.org > Subject: Re: /sbin not on root partition, > init_path does not work -> init not found > > 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: <COMPAQ BB00921B91 3B07> 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: <COMPAQ BB00921B91 3B07> 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 > Thorsten Trampisch tel: +49-(0)7731-836513 Im Loehnen 71/5 mobile: +49-(0)179-1582420 D-78244 Gottmadingen e-mail: thorsten@trampisch.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.33.0202080834450.19183-100000>