From owner-freebsd-questions@FreeBSD.ORG Mon Aug 24 15:50:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74719106568B for ; Mon, 24 Aug 2009 15:50:24 +0000 (UTC) (envelope-from af.gourmet@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1EF8FC19 for ; Mon, 24 Aug 2009 15:50:24 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8 Received: from [192.168.0.51] ([96.21.103.185]) by VL-MH-MR001.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KOW00IHV1BZY0M0@VL-MH-MR001.ip.videotron.ca> for freebsd-questions@freebsd.org; Mon, 24 Aug 2009 11:50:23 -0400 (EDT) Message-id: <4A92B6C4.8070309@videotron.ca> Date: Mon, 24 Aug 2009 11:50:28 -0400 From: PJ User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) To: freebsd-questions@freebsd.org References: <4A929241.5060406@videotron.ca> In-reply-to: <4A929241.5060406@videotron.ca> Subject: Re: moving a disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2009 15:50:24 -0000 PJ wrote: > I am trying to move a 7.2 installation to another computer where it is > to be the only OS acting as a server for the lan. > On bootup I get the message: > Using drive 0, partition 3. > And there it hangs. > I have tried to rewrite the mbr but that did absolutely nothing. > fik ad0 returns: > partitions 1,2,3 are > Parrtition 4 give the cylinder, heads, sectors, blocks stuff > > The disk did boot up on another box... > > What should I do? And what information do I need to supply or look for > to solve this. > I'd rathernot go through another installation even if this is farly > elementary. > Oh, yes... all my former problems were definitely software related as I > have checked and double, triple checked my HDDs and cannot find any > problems therewith. here is what I have found in looking at the disk when it's mounted on another FBSD system through an USB interface: it is mounted on /dev/ad0 fdisk ad0 ---> returns partitions 1,2,3 as ; partition 4 is marked for sysid 166 OpenBSD (this seems to be left over from an installation that was never completed) fdisk ad0s4 ---> returns same, except partition 4 is: sysid 165 (FreeBSD,NetBSD/386BSD) I also note that the other functioning FBSD 7.2 has partitions 2-4 as and partition 1 has the cylinder parameters. I get the impression that I should use the disklabel editor to change all that but am not familiar with it and am not sure how to use it. Here is what bsdlabel shows: # /dev/ad0s4: #this is the one that does not boot 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 63 4.2BSD 2048 16384 28552 b: 2097152 2097215 swap c: 12594897 63 unused 0 0 # "raw" part, don't edit d: 2097152 4194367 4.2BSD 2048 16384 28552 e: 2097152 6291519 4.2BSD 2048 16384 28552 f: 4204544 8388671 4.2BSD 2048 16384 28552 partition c: partition extens past end of unit disklabel: partition c doesn't start at 0! disklabel An incorrect partition c may cause problems for standard system utilities # /dev/ad4s1: #this one boots 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 4194304 0 4.2BSD 2048 16384 28552 b: 6291456 4194304 swap c: 156301425 0 unused 0 0 # "raw" part, don't edit d: 6291456 10485760 4.2BSD 2048 16384 28552 e: 4194304 16777216 4.2BSD 2048 16384 28552 f: 69206016 20971520 4.2BSD 2048 16384 28552 g: 66123889 90177536 4.2BSD 2048 16384 28552 Is there a way to fix this thingy?