From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 02:34:05 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 611201065670 for ; Sun, 27 Nov 2011 02:34:05 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 38AA58FC0A for ; Sun, 27 Nov 2011 02:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt; s=DKIM-NAME-SERVICES; d=a1poweruser.com; h=From:To:Cc:Subject:Message-ID:X-Sender:X-Envelope-From; l=500; bh=4Itz+qsSnhYXf5UOUWBusMOXtmBYwAEaajqSnar1JsA=; b=JwkumcL2cS/nYw8BWIqhEbkepcrf/FGgomHEeBJuWQDkPrOZz2lZHtePVU2HcHsrT8alN8B2860usOyc97QcD5fXrtDb6Llv2BQVg064PjIU+yew3lSH1WAlNaLfzWyR2pCcASsmq1GZ6LXCY4mrRafuf7hmeNdmk4dsrWpkehw= Received: from [192.168.1.105] ([120.29.65.225]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 26 Nov 2011 18:24:01 -0800 Message-ID: <4ED19F2A.2010700@a1poweruser.com> Date: Sun, 27 Nov 2011 10:23:38 +0800 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Warren Block References: <201111241116.pAOBGH4i098240@fire.js.berklix.net> <20111124113938.2d99eec2@dell64> <20111125095457.477e9501@dell64> <20111126135557.56f4ea06@dell64> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Nov 2011 02:24:01.0874 (UTC) FILETIME=[A07B9320:01CCACAB] X-Sender: fbsd8@a1poweruser.com X-Envelope-From: fbsd8*a1poweruser.com Cc: "Julian H. Stacey" , questions@freebsd.org, Robert Subject: Re: Invalid fdisk partition table found (fwd) 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: Sun, 27 Nov 2011 02:34:05 -0000 Warren Block wrote: > On Sat, 26 Nov 2011, Robert wrote: > >> Some difference today. Not sure at what point this happened but one of >> my CF cards now reads: >> >> [robert@dell64] ~> fdisk /dev/da1 >> ******* Working on device /dev/da1 ******* >> parameters extracted from in-core disklabel are: >> cylinders=2057 heads=255 sectors/track=63 (16065 blks/cyl) >> >> Figures below won't work with BIOS for partitions not in cyl 1 >> parameters to be used for BIOS calculations are: >> cylinders=2057 heads=255 sectors/track=63 (16065 blks/cyl) >> >> fdisk: invalid fdisk partition table found >> 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 33045642 (16135 Meg), flag 80 (active) >> beg: cyl 0/ head 1/ sector 1; >> end: cyl 8/ head 254/ sector 63 >> The data for partition 2 is: >> >> The data for partition 3 is: >> >> The data for partition 4 is: >> >> >> Now showing 16GB but still not right. >> > ... >> I also did this in single user with the same results. Ideally, I would >> like to change these cards to FAT32 but I cannot get there with fdisk >> and am not sure how to get there with gpart or if I can. > > Creating an MS-DOS layout with gpart(8), where the disk is da0: > > # gpart destroy -F da0 > da0 destroyed > # gpart create -s mbr da0 > da0 created > # gpart add -t "\!11" da0 > da0s1 added > > 11 is 0x0b, the FAT32 partition type. There might be a more mnemonic > string for it, this is the first time I've ever used gpart for FAT32. > The exclamation is for gpart/GPT, and the backslash is to keep the shell > from messing with it. > > # gpart show da0 > => 63 15662997 da0 MBR (7.5G) > 63 15662997 1 fat32 (7.5G) > > # ls /dev/da0* > /dev/da0 /dev/da0s1 > # newfs_msdos -F32 /dev/da0s1 > > fdisk(8) may be easier, just set the partition type to 11. > The correct partition type is 12 not 11.