From owner-freebsd-stable Sun Dec 1 15:39:56 2002 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 27C3737B401 for ; Sun, 1 Dec 2002 15:39:54 -0800 (PST) Received: from mailhost.xciv.org (vantage.xciv.org [195.82.119.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27ABF43EAF for ; Sun, 1 Dec 2002 15:39:53 -0800 (PST) (envelope-from paul@xciv.org) Received: from pc-80-192-220-210-nm.blueyonder.co.uk ([80.192.220.210] helo=gw.home.xciv.org) by mailhost.xciv.org with esmtp id 18Idgg-0005To-00; Sun, 01 Dec 2002 23:39:46 +0000 Received: from tuscan.xciv.org ([172.27.5.20]) by gw.home.xciv.org with esmtp (Exim 3.33 #1) id 18IddZ-0000eg-00; Sun, 01 Dec 2002 23:36:33 +0000 Received: (from paul@localhost) by tuscan.xciv.org (8.11.6/8.11.6/XCIVnbsdncV1) id gB1KFjA00919; Sun, 1 Dec 2002 20:15:45 GMT Date: Sun, 1 Dec 2002 20:15:45 GMT Message-Id: <200212012015.gB1KFjA00919@tuscan.xciv.org> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Organization: iso.org.dod.internet References: <5.2.0.9.0.20021201124119.04f16660@192.168.0.12> In-Reply-To: <5.2.0.9.0.20021201124119.04f16660@192.168.0.12> From: paul@xciv.org (Paul Civati) Subject: Re: CF Geometry issues X-Original-Newsgroups: xciv.lists.freebsd.stable To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <5.2.0.9.0.20021201124119.04f16660@192.168.0.12>, mike@sentex.net (Mike Tancsa) writes: > I am trying to format a CF disk > > port 2 addr 2: power 100 mA, config 1, eUSB CompactFlash Adapter(0x000a), > da0: Removable Direct Access SCSI-2 device > > I can fdisk and disklabel it no problem, but I can never seem to make it > bootable. I have done this, although I'm using my CF card as a direct IDE device without going through an adapter. ad1: 125MB [1000/16/16] at ata0-slave PIO1 > reading through the archives it seems a lot of people run into this issue, > but I have not found the solution. People talk of "faking" the geometry, > but I am not sure other than through trial and error how to find the > "right" geometry in order to allow me to boot from it. The end goal being > popping the CF into a Soekris box. It's a while since I did it, but I made some notes: # fdisk -BI ad3 # disklabel -w -B ad3s1 auto # disklabel -e ad3s1 [ duplicate (c:) and adjust letter/fstype ] # newfs /dev/ad3s1a fdisk ad1 ******* Working on device /dev/ad1 ******* parameters extracted from in-core disklabel are: cylinders=1000 heads=16 sectors/track=16 (256 blks/cyl) parameters to be used for BIOS calculations are: cylinders=1000 heads=16 sectors/track=16 (256 blks/cyl) 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,(FreeBSD/NetBSD/386BSD) start 16, size 255984 (124 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 999/ head 15/ sector 16 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: -Paul- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message