From owner-freebsd-questions@FreeBSD.ORG Fri Mar 29 04:53:47 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 D23CD40C for ; Fri, 29 Mar 2013 04:53:47 +0000 (UTC) (envelope-from zhao6014@gmail.com) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) by mx1.freebsd.org (Postfix) with ESMTP id 6D063B26 for ; Fri, 29 Mar 2013 04:53:47 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id o45so129856wer.36 for ; Thu, 28 Mar 2013 21:53:45 -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=OhmdLkT+zpF+DC1LUE4CHYdyxvIo2Vs70I//QevFdqc=; b=Wdc56pY9m7caBVOBBlwItoC2CKnumutEgaaFjbXxYMy8G9Uc+1o2tVuJhQvVEqkVdB PWZpPnnPDWop5AwOHzaI5XN3nto8H6EasMTZOnicji/fnXfIdIoMfOzhGtE2lUXJI+yx dclxSzHX/Apf7YXEispf/YVOF96a1KB1HNMHmx6GuPHR36VIPWGf4zIRtDXjfxawNLo6 g7v6PdneV7gnfv218M96Jr7xMHV5XCKYFoHTMVr5R0uJsjinKn4G/ucP7N9ujcwr/Hdh 7ZekCBLW55i282O/4B5QZfZ0cXFpgaSF/1s8PC1TzGHuxLPGkfK8SJQ+ebsRtdtU5J/y J7kw== X-Received: by 10.194.171.74 with SMTP id as10mr1582098wjc.0.1364532825048; Thu, 28 Mar 2013 21:53:45 -0700 (PDT) MIME-Version: 1.0 Sender: zhao6014@gmail.com Received: by 10.194.153.98 with HTTP; Thu, 28 Mar 2013 21:53:25 -0700 (PDT) In-Reply-To: <26967.1364520556@server1.tristatelogic.com> References: <26967.1364520556@server1.tristatelogic.com> From: Jov Date: Fri, 29 Mar 2013 12:53:25 +0800 X-Google-Sender-Auth: oZbdfkt2cqoiqGgd8wOocGDJEd8 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 04:53:47 -0000 use newfs_msdos 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