From owner-freebsd-questions@FreeBSD.ORG Fri Mar 29 05:08:38 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6953953F for ; Fri, 29 Mar 2013 05:08:38 +0000 (UTC) (envelope-from zhao6014@gmail.com) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by mx1.freebsd.org (Postfix) with ESMTP id 0441DB83 for ; Fri, 29 Mar 2013 05:08:37 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id y10so154524wgg.26 for ; Thu, 28 Mar 2013 22:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=B7RQ/cgduChmLwcnqmBsYCjtbWYKaa0E4AnXrnJyeJk=; b=Iz87uJcJS/+9DzyL7RJmlNlBobsz0dTYHEap2VlYw69Wjk4EFPnwNKpLnuDZnCWCKZ LKR3kIVeYfrG7f4gnjy+Mr/KkF1/yPM7rvk1m+OrfJEn2lbdlhVdgmj9lbkAA7Vyz9Zl x0+9OJIs9ksknk/MB2lHyjXQ84zwTYGvGDdxcRIJuIwrIL59OpuVPtgg6GtoIj0Xi6Kw Z586lWfYCwI9jGJmAjGrwJ9lpkY2I8QItwBixWrAnkdPCnYoBH9e+0UH7nmpiWOxij2V 8Rj3+KLJ96eRPD/8sfVgsTBrc2vNH9GUKVRoiNZd1pSGHIaqjAJpAc9hN66sFiSsKedv I93w== X-Received: by 10.194.71.110 with SMTP id t14mr1415659wju.53.1364533711615; Thu, 28 Mar 2013 22:08:31 -0700 (PDT) MIME-Version: 1.0 Sender: zhao6014@gmail.com Received: by 10.194.153.98 with HTTP; Thu, 28 Mar 2013 22:08:11 -0700 (PDT) In-Reply-To: <26967.1364520556@server1.tristatelogic.com> References: <26967.1364520556@server1.tristatelogic.com> From: Jov Date: Fri, 29 Mar 2013 13:08:11 +0800 X-Google-Sender-Auth: a5II-BF0H7nOE5DRqEOm8jkZsEk Message-ID: Subject: Re: Where's the metadata? To: "Ronald F. Guilmette" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Mar 2013 05:08:38 -0000 use newfs_msdos /dev/da0 in FreeBSD,then format it to NTFS in windows. I used this command solve the same problem. 2013/3/29 Ronald F. Guilmette > > > So, um, I downloaded the memstick.img file for FreeBSD 9.1-RELEASE and > then I dd'ed that to my 16GB ADATA USB flash thingy. After that, it > worked just fine, and as expected. No problems. I could boot FreeBSD > from it. > > Now however, I need to use that USB stick for something else, and I > want to reformat the thing as a single NTFS file system using, one > of my Windows systems to do that (re-)format. > > The problem is that now, the Windows system seems to think that the > size of the thing is only something like 24.2 Megabytes... *not* the > actual size, which is vastly larger (16GB). > > So I take the thing back and plug it in again to my FreeBSD system > and I'm just about ready to simply dd a whole bunch of /dev/zero to > the thing... figuring that this will probably cure it of its current > drain bamage... but then at the last second I hesitate and decide to > actually try to _understand_ what's going on here, really, for a change. > > So now I'm reading the man page for glabel(8) and I figure that this > may help me to understand how the heck a 16GB USB flash thing magically > becomes a (much smaller) 24.4 MB flash thingy. And I immediately spot > the "dump" option. naturally, based on the name and the (rather terse) > description in the man page, and I figure that this has got to be be > useful. So I try it: > > # glabel dump da0 > Can't read metadata from da0: Invalid argument. > glabel: Not fully done. > # glabel dump /dev/da0 > Can't read metadata from /dev/da0: Invalid argument. > glabel: Not fully done. > > Now, I say to you all, WTF? Why don't this work? Why don't it show me > anything useful? > > Also, what exactly is this "fully done" gibberish? > > Is this like a souffle? If I come back in an hour, will it be "fully > done"? > > > Regards, > rfg > > > P.S. Yes, I _did_ plug the thing in firmly. It's there alright. > > # ls -l /dev/da* > crw-r----- 1 root operator 0, 169 Mar 28 15:59 /dev/da0 > crw-r----- 1 root operator 0, 170 Mar 28 15:59 /dev/da0a > > > P.P.S. So what _is_ the best tool for just simply taking some sort of > drive... like a USB flash drive, or any other kind of drive for that > matter... and returning it to it's actual size? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Jov blog: http:amutu.com/blog