From owner-freebsd-stable Tue Apr 24 0:11:32 2001 Delivered-To: freebsd-stable@freebsd.org Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by hub.freebsd.org (Postfix) with ESMTP id E585637B42C for ; Tue, 24 Apr 2001 00:11:07 -0700 (PDT) (envelope-from netch@iv.nn.kiev.ua) Received: (from uucp@localhost) by segfault.kiev.ua (8) with UUCP id KEE87989; Tue, 24 Apr 2001 10:10:48 +0300 (EEST) (envelope-from netch@iv.nn.kiev.ua) Received: (from netch@localhost) by iv.nn.kiev.ua (8.11.3/8.11.3) id f3O79ce00888; Tue, 24 Apr 2001 10:09:38 +0300 (EEST) (envelope-from netch) Date: Tue, 24 Apr 2001 10:09:38 +0300 From: Valentin Nechayev To: "Michael A. Endsley" Cc: stable@FreeBSD.ORG Subject: Re: /boot/boot0 or boot1 bad? Message-ID: <20010424100937.A343@iv.nn.kiev.ua> References: <3.0.6.32.20010423154044.007de980@mail.gci.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3.0.6.32.20010423154044.007de980@mail.gci.net>; from mandm@alaska.com on Mon, Apr 23, 2001 at 03:40:44PM -0800 X-42: On Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Michael A. Endsley! Mon, Apr 23, 2001 at 15:40:44, mandm (Michael A. Endsley) wrote about "/boot/boot0 or boot1 bad?": > When booting from HD, I use a boot manager (Win98, OS/2, FreeBSD), and > go to FreeBSD. About 1 second after clicking FreeBSD, there appears a > single line of about 14 characters of gibberish at the bottom left of my > monitor. It doesn't lock-up the keyboard, but I can't get anything to > happen either. The Num Lock, Caps Lock, and Scroll Lock keys all work. > Anyway, I hit C-A-D, and reboot with the kern.flp disk. As soon as the > "baton" shows, I hit the space bar and type "0:ad(0,a)kernel" and FreeBSD > boots from the HD just fine. Not absolutely fine;) - for fine load you should say `0:ad(0,a)/boot/loader'; with `kernel' it boots incorrectly in some aspects. > Everything is mounted, all programs run, I can > log in as a normal user and root. Everything is there and looks/runs great. > If I understand correctly, /boot/boot0 and /boot/boot1 are the first files > "read". No. /boot/boot0 and /boot/mbr are variants of MBR (sector 0:0:1) contents: /boot/mbr silently finds active slice (DOS partition) and boots from it, /boot/boot0 is BootEasy - FreeBSD-specific boot manager. At beginning of FreeBSD slice (or "dangerously" ([/stand/sysinstall]) dedicated HDD) BTX is placed, which consists of /boot/boot1 and /boot/boot2. BTX loads /boot/loader unless another specified, and /boot/loader boots kernel. Instead of boot0 stage you have your own boot manager. Possibly in your case BTX loader is damaged. Recommended vay to fix it is `disklabel -B' command. When you boot your system successfully with help of floppy, run `disklabel -B ad0' as root. > Did I damage one of those files or perhaps a different partition > on my FreeBSD slice is being pointed to to boot? Nobody knows without seeing dump ;) Only try to fix it. > Can it be repaired? No, I don't have a back-up... no room to spare :( > BTW- /etc/fstab and ls -l /dev |grep ad0 show the same devices (if that > helps) /netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message