From owner-freebsd-questions@FreeBSD.ORG Thu Nov 24 19:55:41 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 28175106566C for ; Thu, 24 Nov 2011 19:55:41 +0000 (UTC) (envelope-from traveling08@cox.net) Received: from fed1rmfepi108.cox.net (fed1rmfepi108.cox.net [68.230.241.139]) by mx1.freebsd.org (Postfix) with ESMTP id 018998FC15 for ; Thu, 24 Nov 2011 19:55:40 +0000 (UTC) Received: from fed1rmimpo305.cox.net ([68.230.241.173]) by fed1rmfepo202.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20111124193944.ONGH3766.fed1rmfepo202.cox.net@fed1rmimpo305.cox.net>; Thu, 24 Nov 2011 14:39:44 -0500 Received: from dell64 ([72.220.91.219]) by fed1rmimpo305.cox.net with bizsmtp id 17fj1i00K4jy6EY037fjgK; Thu, 24 Nov 2011 14:39:43 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A02020A.4ECE9D7F.00E8,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=Mm7wCnmhIH1F3xzFnZSx5GfOfjmr4St7hCElUMct5Xs= c=1 sm=1 a=d5xdBJzwzI4A:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=olICo1sKaMXbpqbYUd6B5g==:17 a=NRF7K_vUAAAA:8 a=IqJs70w8Yx4aI0t9JBYA:9 a=9oat72NV1hRUfpTRZmgA:7 a=CjuIK1q_8ugA:10 a=MFc6XYY7ANoA:10 a=olICo1sKaMXbpqbYUd6B5g==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Date: Thu, 24 Nov 2011 11:39:38 -0800 From: Robert To: "Julian H. Stacey" Message-ID: <20111124113938.2d99eec2@dell64> In-Reply-To: <201111241116.pAOBGH4i098240@fire.js.berklix.net> References: <201111241116.pAOBGH4i098240@fire.js.berklix.net> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org 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: Thu, 24 Nov 2011 19:55:41 -0000 On Thu, 24 Nov 2011 12:16:17 +0100 "Julian H. Stacey" wrote: > Hi, > Please keep this on list. > Hi Julian, I noticed soon after my response that I must have hit reply instead of all so I resent my information to questions@. This morning I didn't see my email to questions@ so I checked the archives and my response is there. No idea why it did not get sent out to the masses. Anyway, I am still having this problem so I will paste my response below. Julian and Warren thanks for the responses. On Wed, 23 Nov 2011 22:08:00 +0100 "Julian H. Stacey" wrote: > 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: > > > 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 [robert@dell64] ~> sudo bsdlabel -B -w -r /dev/da1 Password: [robert@dell64] ~> > echo unplug, reinsert Not sure if you actually wanted me to unplug and reinsert the CF card...so I did both [robert@dell64] ~> echo unplug, reinsert unplug, reinsert and physically unplugged and reinserted the CF card > newfs /dev/da1a ^ ??? [robert@dell64] ~> sudo newfs /dev/da1a newfs: /dev/da1a: could not find special device [robert@dell64] ~> sudo newfs /dev/da1 /dev/da1: 29.5MB (60480 sectors) block size 16384, fragment size 2048 using 4 cylinder groups of 7.39MB, 473 blks, 960 inodes. super-block backups (for fsck -b #) at: 160, 15296, 30432, 45568 cg 0: bad magic number [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: No change from before. > > 2 Base of _my_ man fdisk > " When running multi user, you cannot write unless you first run > this: sysctl kern.geom.debugflags=16 I had failed to mention in the original post that I had seen something in my searches about problems since 7.1. I had tried booting from an old 6.2 disk and attempted all of this under "fixit" with no luck. And also tried in single user mode. Warren, [robert@dell64] ~> sudo gpart destroy -F da1 gpart: geom 'da1': Invalid argument [robert@dell64] ~> sudo gpart create -s GPT da1 da1 created [robert@dell64] ~> sudo gpart bootcode -b /boot/pmbr da1 bootcode written to da1 [robert@dell64] ~> sudo gpart destroy -F da1 da1 destroyed [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: I see the flashing lights like it is writing to the CF card but nothing changes. More suggestions welcome. These are quite expensive CF cards. Thanks again Robert