From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 21:08:38 2011 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 7147C1065675 for ; Wed, 23 Nov 2011 21:08:38 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id D44C38FC14 for ; Wed, 23 Nov 2011 21:08:37 +0000 (UTC) Received: from mart.js.berklix.net (p57BCF8C3.dip.t-dialin.net [87.188.248.195]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id pANL8OXc074400; Wed, 23 Nov 2011 21:08:24 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id pANL8CPS047349; Wed, 23 Nov 2011 22:08:12 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id pANL80g3041149; Wed, 23 Nov 2011 21:08:06 GMT (envelope-from jhs@fire.js.berklix.net) Message-Id: <201111232108.pANL80g3041149@fire.js.berklix.net> To: Robert From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Wed, 23 Nov 2011 12:33:47 PST." <20111123123347.4f439c9c@dell64> Date: Wed, 23 Nov 2011 22:08:00 +0100 Sender: jhs@berklix.com Cc: "freebsd-questions@freebsd.org" Subject: Re: Invalid fdisk partition table found 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: Wed, 23 Nov 2011 21:08:38 -0000 Robert wrote: > Greetings > > [robert@dell64] ~> uname -a > FreeBSD dell64.shasta204.local 8.2-STABLE FreeBSD 8.2-STABLE #34: Fri > Nov 18 06:43:01 PST 2011 > root@dell64.shasta204.local:/usr/obj/usr/src/sys/GENERIC amd64 > > I have two Lexar Professional 600X 16GB compact flash cards that are > unusable. fdisk shows: > > [robert@dell64] ~> fdisk /dev/da1 > ******* Working on device /dev/da1 ******* > parameters extracted from in-core disklabel are: > cylinders=29 heads=64 sectors/track=32 (2048 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=29 heads=64 sectors/track=32 (2048 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 32, size 59360 (28 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 28/ head 63/ sector 32 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > > It shows only 28 MB instead of 16GB. I have tried to change the type > from 165 (FreeBSD) to msdosfs types 6 11 or 12 using fdisk -u and fdisk > -i and also "sade". I do not get and error but when finished it still > shows the same data. > > I have tried to zero it out using " dd if=/dev/zero of=/dev/da1 bs=1m > and nothing changes. I have tried different block sizes and counts to > no avail. > > Is there any way I can restore these CF cards to 16GB? Any help or > suggestions will be greatly appreciated. @ suggestions: 1 Try bsdlabel -B -w -r /dev/da1 echo unplug, reinsert newfs /dev/da1a 2 Base of _my_ man fdisk " When running multi user, you cannot write unless you first run this: sysctl kern.geom.debugflags=16 " It looks like I never got round to sending in a send-pr for that, so feel free looks like its been that way at ;east since 7.1.see http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fdisk/ Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below not above, cumulative like a play script, & indent with "> ". Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.