From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 19:46:17 2003 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 C3EFB37B401 for ; Thu, 3 Jul 2003 19:46:17 -0700 (PDT) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 62AC743FDD for ; Thu, 3 Jul 2003 19:46:16 -0700 (PDT) (envelope-from lahaye@users.sourceforge.net) Received: (snipe 13634 invoked by alias); 4 Jul 2003 02:55:42 -0000 Received: from lahaye@users.sourceforge.net with Spamsniper2.0 (Processed in 0.013886 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 4 Jul 2003 02:55:42 -0000 X-RCPTTO: freebsd-questions@FreeBSD.ORG,toomas.aas@raad.tartu.ee, Received: from users.sourceforge.net ([147.46.44.183]) by sis1.snu.ac.kr (8.12.9/8.12.9) with ESMTP id h642hsmx048392; Fri, 4 Jul 2003 11:43:55 +0900 Message-ID: <3F04EA8F.6010801@users.sourceforge.net> Date: Fri, 04 Jul 2003 11:46:39 +0900 From: Rob Lahaye Organization: Seoul National University - South Korea User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030702 X-Accept-Language: en-us, ko-kr MIME-Version: 1.0 To: Toomas Aas , freebsd-questions@FreeBSD.ORG References: <44y8zhc9j5.fsf@be-well.ilk.org> <200307031155.h63BtFI27901@lv.raad.tartu.ee> In-Reply-To: <200307031155.h63BtFI27901@lv.raad.tartu.ee> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: boot hangs after install 4.8 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: Fri, 04 Jul 2003 02:46:18 -0000 Toomas Aas wrote: >>From: Rob Lahaye > > >>>>I have just installed FreeBSD 4.8 on a PC. Only FreeBSD, no other OS. >>>>The installation goes all well; I exit at the end and the PC boots. >>>>Immediately after the BIOS stuff, I get the first FreeBSD prompt: >>>> >>>> >>>> F1 FreeBSD >>>> >>>> Default: F1 > > > Snip... > > >>FDISK Partition Editor (with "A = Use Entire Disk"): >> DISK Geometry: 21858 cyls/34 heads/54 sectors = 40131288 sectors (19595MB) >> Offset Size(ST) End Name PType Desc Subtype Flags >> 0 54 53 - 6 unused 0 >> 54 40131234 40131287 ad0s1 3 freebsd 165 C > > > I suspect you need to set ad0s1 slice bootable (using S key in fdisk screen). > Flags should be CA, not simply C. I did following: 1) Installed RedHat 8.0. I created a brand new partition table with ext2 file system etc. All this went well and no problems with booting from harddisk after installation. Then I knew that there was no fundamental problem with booting from my harddisk. 2) Next again installed FreeBSD, following your 'set bootable' advice above. So I erased the Linux Partition table, and replace that by "A = Use Entire Disk" for FreeBSD: DISK Geometry: 2654 cyls/240 heads/63 sectors = 40128480 sectors (19593MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 6 unused 0 63 40128417 40128479 ad0s1 3 freebsd 165 CA 40128480 4023 40132502 - 6 unused 0 Most remarkable here: the DISK Geometry is now different from my previous FreeBSD installations! It has now changed from " 21858 cyls/34 heads/54 sectors = 40131288 sectors (19595MB)" to " 2654 cyls/240 heads/63 sectors = 40128480 sectors (19593MB)" And you won't believe it: now everything works! ----------- My explanation: the previous disk geometry was not correct (although Mandrake Linux was running more or less OK on this PC). Anyway, FreeBSD could not boot because of the wrong disk geometry. By installing RedHat Linux 8.0, somehow the disk geometry automagically got adjusted to the correct values. The next FreeBSD installation thus went on without a hitch.....Does all that make sense? Question: how do I know a disk geometry won't work, or won't work for booting the system? Can I tell FreeBSD to also do this 'automagical' resetting of the disk geometry, similar to what RedHat install has done? Thanks Toomas for guiding me along this path!! Regards, Rob.