From owner-freebsd-questions@FreeBSD.ORG Fri Nov 25 17:51:06 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 29AC51065670 for ; Fri, 25 Nov 2011 17:51:06 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id D6DA18FC0C for ; Fri, 25 Nov 2011 17:51:05 +0000 (UTC) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.52]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 22B35A70AD1 for ; Fri, 25 Nov 2011 12:51:05 -0500 (EST) Received: (qmail 25073 invoked from network); 25 Nov 2011 17:51:04 -0000 Received: by simscan 1.4.0 ppid: 28029, pid: 32511, t: 0.1810s scanners: clamav: 0.88.2/m:52/d:13513 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 25 Nov 2011 17:51:04 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 7F83B5645E; Fri, 25 Nov 2011 12:50:58 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 70CA339841; Fri, 25 Nov 2011 12:50:57 -0500 (EST) From: Lowell Gilbert To: Robert References: <20111123123347.4f439c9c@dell64> Date: Fri, 25 Nov 2011 12:50:57 -0500 In-Reply-To: <20111123123347.4f439c9c@dell64> (Robert's message of "Wed, 23 Nov 2011 12:33:47 -0800") Message-ID: <44bos06qgu.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2011 17:51:06 -0000 Robert writes: > 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 an 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. If you zero it out and fdisk still sees a partition table, the write probably didn't really happen. [Modulo some possible issues with the kernel caching the disk parameters.] fdisk is sometimes a bit quiet about its errors, but dd isn't...