From owner-freebsd-stable@FreeBSD.ORG Tue Feb 21 11:19:28 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9022316A420 for ; Tue, 21 Feb 2006 11:19:28 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from outbound-mail-17.bluehost.com (outbound-mail-17.bluehost.com [70.98.111.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 253FA43D48 for ; Tue, 21 Feb 2006 11:19:28 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: (qmail 22861 invoked by uid 0); 21 Feb 2006 11:03:11 -0000 Received: from unknown (HELO box85.bluehost.com) (70.103.189.85) by mailproxy1.bluehost.com with SMTP; 21 Feb 2006 11:03:11 -0000 Received: from 201-42-207-160.dsl.telesp.net.br ([201.42.207.160] helo=[192.168.1.102]) by box85.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52) id 1FBVHn-0004Cw-2T; Tue, 21 Feb 2006 04:02:27 -0700 Message-ID: <43FAF33F.6080502@tirloni.org> Date: Tue, 21 Feb 2006 08:02:23 -0300 From: "Giovanni P. Tirloni" User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20060219235911.012b24b7.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20060219235911.012b24b7.torfinn.ingolfsen@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box85.bluehost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tirloni.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-stable@freebsd.org Subject: Re: Difference in slice numbering FreeBSD 4.x vs. 6.x? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 11:19:28 -0000 Torfinn Ingolfsen wrote: > Hi, > > Yes, this is a strange question; is the slice numbering in FreeBSD 4.x > different from that in FreeBSD 6.x? > I'm talking about for fdisk(8), boot(8) and loader(8). > Background: I have this old laptop (a HP OmniBook 5500CT). I replaced > the tiny (1.2GB) hard drive in it with a 20GB hard drive. > I installed FreeBSD 4.11-RELEASE on it, using fdisk to partition the > disk in two. 4.11-R installed on slice1, ie. root on /dev/ad0s1a. > All was well. > > Now, the story: > Then I decided to install FreeBSD 6.0-RELEASE on the second half of the > disk, but it didn't work out of the box. To make a long story short, it > turned out that the PCCard controller / slots wasn't detected properly, > and as this laptop doesn't have a cd-rom drive, I just took out the hard > drive, mounted a 2.5-to-3.5 inchadapter on it and put it into another > machine. This machine had a cd-rom, and it installed FreeBSD 6.0-R on > the second slice without a problem. > I even testedt that it would boot both slices (4.11-R or 6.0-R) on that > machine, it did. On this machine, 4.11-R was on slice 1, and 6.0-R on > slice 2. > > Now, I took the hard drive out and put it into the laptop again. > Mahor problem - it wouldn't boot at all. A not-so-quick boot with the > floppies (3 floppies for boot, plus the fixit floppy) later, I ran fdisk > on ad0. > Much to my surprise, the twor FreeBSD installations had now moved to > slice 3 and slice 4. > 4.11-RELEASE on slice 3 and 6.0-RELEASE on slice 4. > > I am utterly amazed by this. What has happened? I've moved hard disks around many times and this has never happened. Can you send us `fdisk /dev/ad0` from 4.11 and 6.0 so we can spot anything not normal ? Does it still boot in the machine after we've booted in the laptop ? -- Giovanni P. Tirloni http://blog.tirloni.org