From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 15:33:59 2008 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 8891E1065698 for ; Mon, 6 Oct 2008 15:33:59 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id 2A5EC8FC17 for ; Mon, 6 Oct 2008 15:33:58 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA08.westchester.pa.mail.comcast.net with comcast id PQpK1a0021HzFnQ58TZy5a; Mon, 06 Oct 2008 15:33:58 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA14.westchester.pa.mail.comcast.net with comcast id PTZx1a00T2P6wsM3aTZyom; Mon, 06 Oct 2008 15:33:58 +0000 X-Authority-Analysis: v=1.0 c=1 a=Kr3t3Te1lQgA:10 a=GofcrYdnE60A:10 a=QycZ5dHgAAAA:8 a=hXLVT8om4mffLrw8vWMA:9 a=m0TbsS5f_44sQWWBaAUA:7 a=m1NTx9oVh_POPFxVRV3U2Pf4hn4A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 7674BC9419; Mon, 6 Oct 2008 08:33:57 -0700 (PDT) Date: Mon, 6 Oct 2008 08:33:57 -0700 From: Jeremy Chadwick To: Don O'Neil Message-ID: <20081006153357.GA24159@icarus.home.lan> References: <20081005013016.GA71103@icarus.home.lan> <498C8B62AC3C4663A58D134BFE231685@mickey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <498C8B62AC3C4663A58D134BFE231685@mickey> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Can't add new 1TB disk in FreeBSD 6.1 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, 06 Oct 2008 15:33:59 -0000 On Mon, Oct 06, 2008 at 08:03:46AM -0700, Don O'Neil wrote: > > I just swapped out an old 500G disk with a 1TB one and I'm trying to > > label it and mount it... > > > > If I run bsdlabel -w ad4, I get: > > > > bsdlabel: Geom not found > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > > didn't help. > > > > Can anyone help me get this new disk installed without having to boot > > off a recovery CD? The server is 500 miles away from me and I don't > > have direct console access. > > Can you provide output from dmesg, as well as "geom disk list"? > > OK... I tried: > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > dd: /dev/ad4: Operation not permitted Did you "sysctl kern.geom.debugflags=16" before doing this? What's happening here is that GEOM isn't letting you overwrite the MBR on the disk. Setting kern.geom.debugflags=16 should permit that to happen. > # fdisk /dev/ad4 > ******* Working on device /dev/ad4 ******* > parameters extracted from in-core disklabel are: > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > fdisk: invalid fdisk partition table found This line right here looks very bad. I would recommend running sade(8) and properly configuring this disk. > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 1953525105 (953869 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 612/ head 15/ sector 63 This portion looks okay, although I guess the addressing mode chosen is different on your system. Most of my systems show the end CHS as 1023/254/63. > Geometry output: > > Geom name: ad4 > Providers: > 1. Name: ad4 > Mediasize: 1000204886016 (932G) > Sectorsize: 512 > Mode: r0w0e0 > fwsectors: 63 > fwheads: 16 This looks okay. > Nothing exciting coming from dmesg. Thanks for providing the output like I requested. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |