From owner-freebsd-geom@FreeBSD.ORG Sun Feb 2 07:10:35 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 E411B501 for ; Sun, 2 Feb 2014 07:10:34 +0000 (UTC) Received: from forward5l.mail.yandex.net (forward5l.mail.yandex.net [IPv6:2a02:6b8:0:1819::5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 76E81134C for ; Sun, 2 Feb 2014 07:10:34 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward5l.mail.yandex.net (Yandex) with ESMTP id 67CEAC40CAD; Sun, 2 Feb 2014 11:10:31 +0400 (MSK) Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 1A7701900230; Sun, 2 Feb 2014 11:10:31 +0400 (MSK) Received: from 84.201.164.106-vpn.dhcp.yndx.net (84.201.164.106-vpn.dhcp.yndx.net [84.201.164.106]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id SqIsP1KUzX-AUHmjrCJ; Sun, 2 Feb 2014 11:10:30 +0400 (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (Client certificate not present) X-Yandex-Uniq: 2516b92c-b094-4dbd-a542-5b2046bafb7a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1391325030; bh=/H1+Ka++bqdORZAm97ver/TB5pCPXKE1qMROTAm8IFU=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=E4IyIDtXbPnGUJiAcz8Q1XNFNvqCiMl1XsQjlYOVeut4Spdux4Qmk20I8dQELEadg mScM4sWjnBFEQBbfIcBYp0lFJfqKHFINZB9XdIhRlwGeMob2NHv7c16jrSthH+5IJY 1Ui9D43fmnNiw1SaVjhRXjXMCQw3O1zKl681I/MY= Authentication-Results: smtp17.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <52EDEF19.3020500@yandex.ru> Date: Sun, 02 Feb 2014 11:09:13 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Kevin Oberman , FreeBSD Geom ML Subject: Re: Geom tasting exfat slices References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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:10:35 -0000 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? > 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`. -- WBR, Andrey V. Elsukov