From owner-freebsd-geom@FreeBSD.ORG Sun Feb 2 07:29:33 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 131FB73A for ; Sun, 2 Feb 2014 07:29:33 +0000 (UTC) Received: from mail-pb0-x232.google.com (mail-pb0-x232.google.com [IPv6:2607:f8b0:400e:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DAD5E14A5 for ; Sun, 2 Feb 2014 07:29:32 +0000 (UTC) Received: by mail-pb0-f50.google.com with SMTP id rq2so5974460pbb.9 for ; Sat, 01 Feb 2014 23:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=mi61uITt4V/qjqCqN+tBbMhUcUySlLIWqC8qCmb8jCw=; b=nuOYID8I/inlK+IXMxUNGFW5A4qB0ivj8OdFZF0Nr6XMhhwszAJJ+yXCRMbHrg9UB+ e7QLEujxmbBow1+1TQ/D+ct9mEi0zOV6vrfdlrJywYd48MSjDEpbfoJN0D3xXkRhjgtc 3Xygv3zjHRp4ShQMwXM/bkZuPJlu1s1fBx+hbE4in2ImncfZV9AzFTYisG1jL8ihYa55 DvC6zPc02ryhKtDTM5FvP9r81/NaO/+JnGfKRkeFS90kpWSivoXfrpRAPLMxMraXn/Jb ipDELEt1N7VBk4HJPRmMeoiSFsZNMu4yhjo8NzFAkgDgj+vBfQwdCSJSfWDH3uN3bZ/1 1CpQ== MIME-Version: 1.0 X-Received: by 10.66.251.42 with SMTP id zh10mr30831106pac.84.1391326172514; Sat, 01 Feb 2014 23:29:32 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.67.30.1 with HTTP; Sat, 1 Feb 2014 23:29:32 -0800 (PST) In-Reply-To: <52EDEF19.3020500@yandex.ru> References: <52EDEF19.3020500@yandex.ru> Date: Sat, 1 Feb 2014 23:29:32 -0800 X-Google-Sender-Auth: shT_fT7jlQsnTweX9auTLFQ9vKs Message-ID: Subject: Re: Geom tasting exfat slices From: Kevin Oberman To: "Andrey V. Elsukov" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Geom ML X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2014 07:29:33 -0000 On Feb 1, 2014 11:10 PM, "Andrey V. Elsukov" wrote: > > On 01.02.2014 23:45, Kevin Oberman wrote: > > I have a slice that is formatted (by Windows) as exfat. I can mount it with > > the mount.exfat-fuse command and ti seems to work fine using FUSE and > > fusefs-exfat. But geom does not see it. There is no /dev/geom directory > > What do you expect to see in this directory? Sorry. I meant /dev/exfat. But it does not look like GEOM groks exFAT. > > created and "gpart show" returns: > > # gpart show ada0 > > => 63 1465149105 ada0 MBR (699G) > > 63 1985 - free - (993K) > > 2048 2457600 1 ntfs (1.2G) > > 2459648 958765056 2 ntfs (457G) > > 961224704 471040000 3 ebr (225G) > > 1432264704 32878592 4 ntfs (16G) > > 1465143296 5872 - free - (2.9M) > > The exfat slice is "961224704 471040000 3 ebr (225G)" > > In more detail, I get: > > 3. Name: ada0s3 > > Mediasize: 241172480000 (225G) > > Sectorsize: 512 > > Stripesize: 4096 > > Stripeoffset: 0 > > Mode: r0w0e0 > > rawtype: 15 > > length: 241172480000 > > offset: 492147048448 > > type: ebr > > index: 3 > > end: 1432264703 > > start: 961224704 > > More oddly, when I mount the FS, I need to mount ada0s5??? > > > > Any idea what the heck is going on? I'd really like to get it to automount > > with gnome-mount, but hald does not even seem to see it at all. I may need > > to format it differently. It shows up on Windows as a "Logical" partition, > > not "Primary". I don't understand this. > > http://en.wikipedia.org/wiki/Master_boot_record > > MBR provides an ability to create 4 partitions. Windows calls them > "Primary partitions". When you want to create more, you need to use EBR. > > http://en.wikipedia.org/wiki/Extended_boot_record > > EBR uses one entry in MBR, but can provide many "Logical partitions". > They all are inside this logical partition. Historically FreeBSD has > naming convention for these partitions - those indexes start from 5. > As you can see, your MBR used all 4 primary partitions. Those indexes > are from s1 to s4. One partition contains EBR. Name of logical > partitions inside of s3 partition starts from s5. You can see all > partitions using the command `gpart show -p ada0s3`. Yes, it does, but it thinks the slice is NTFS when it is actually exFAT. Should geom recognize exFAT? 1. Name: ada0s5 Mediasize: 241171431424 (225G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e0 rawtype: 7 length: 241171431424 offset: 1048576 type: ntfs index: 1 end: 471039999 start: 0 Actually, I only have 4 slices. 3 are NTFS and the other is exFAT. I have deleted the partition on Windows, but I seem to only be able to create an EBR partition, for some reason. Maybe something is still retaining a primary partition and maybe gpart can really delete it. I'd rather use GPT, but my ThinkPad won't boot from a GPT disk that is not EFT. If I can get t to be a Primary partition, perhaps GEOM will recognize it, but I'm not confident of that. Thanks so much for pointing out the obvious that I was missing. I'll play aroudn with it some more tomorrow and see what I can get it to do. > > -- > WBR, Andrey V. Elsukov