Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2019 10:57:37 +0000
From:      erictaylor@webmarketingvendors.com
To:        freebsd-questions@freebsd.org
Subject:   Re : freebsd.org : Google Indexing Issues.
Message-ID:  <00000000000098ab7a0584e91225@google.com>

next in thread | raw e-mail | index | archive | help
SGkgZnJlZWJzZC5vcmcsDQoNCg0KSSBub3RpY2VkIHNvbWV0aGluZyBpbnRlcmVzdGluZyB3aGls
ZSBnb2luZyB0aHJvdWdoIHlvdXIgd2Vic2l0ZSwgIA0KZnJlZWJzZC5vcmcgLg0KDQoNCkl0J3Mg
YXBwYXJlbnQgdGhhdCB5b3UgaGF2ZSB1c2VkIEFkd29yZHMgbWFya2V0aW5nIHRvIHByb21vdGUg
eW91ciBidXNpbmVzcyAgDQppbiB0aGUgcGFzdDsgaG93ZXZlciB5b3VyIHdlYnNpdGUgZG9lcyBz
ZWUgc29tZSBvcmdhbmljIHNlYXJjaCB0cmFmZmljIGhlcmUgIA0KYW5kIHRoZXJlLiBOb3csIEkg
YmVsaWV2ZSBJIGNhbiBoZWxwIGluY3JlYXNlIHRoYXQgcG9ydGlvbiBvZiBvcmdhbmljICANCnRy
YWZmaWMgc2lnbmlmaWNhbnRseSwgYXQgZnJlZWJzZC5vcmcgLg0KDQoNCkkgYmVsaWV2ZSB5b3Ug
d291bGQgbGlrZSB0byBjb21lIHRvcCBvbiBzZWFyY2hlcyBmb3Iga2V5d29yZHMgcmVsYXRlZCB0
bzogIA0KZnJlZWJzZC5vcmcgLi4gSSBmb3VuZCBhIG51bWJlciBvZiBTRU8gaXNzdWVzIHN1Y2gg
YXMgYnJva2VuIGxpbmtzLCBwYWdlICANCnNwZWVkIGlzc3VlLCBIVE1MIHZhbGlkYXRpb24gZXJy
b3JzLCBhbmQgaW1hZ2VzIHdpdGggbm8gQUxUIHRleHQgb24geW91ciAgDQp3ZWJzaXRlLCB0aGF0
J3Mgc3RvcHBpbmcgeW91IGZyb20gZ2V0dGluZyB0aGF0IH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tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLQ0KDQpOb3RlOiBLaW5kbHkgcGxlYXNlIGVtYWlsIHdpdGggdGhlIHN1YmplY3QgbGlu
ZSAiSW50ZXJlc3RlZCIgb3IgYWxsb3cgbWUgdG8gIA0Kc2VudCAiTm8gT2JsaWdhdGlvbiBBdWRp
dCBSZXBvcnQiLg0KDQo=
From owner-freebsd-questions@freebsd.org  Mon Mar 25 11:54:24 2019
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 006E5155DBF6
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Mon, 25 Mar 2019 11:54:24 +0000 (UTC)
 (envelope-from redlamb19@gmail.com)
Received: from mail-it1-x136.google.com (mail-it1-x136.google.com
 [IPv6:2607:f8b0:4864:20::136])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id D35BA8EF25
 for <freebsd-questions@freebsd.org>; Mon, 25 Mar 2019 11:54:22 +0000 (UTC)
 (envelope-from redlamb19@gmail.com)
Received: by mail-it1-x136.google.com with SMTP id w18so13393721itj.4
 for <freebsd-questions@freebsd.org>; Mon, 25 Mar 2019 04:54:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:cc:references:from:message-id:date:user-agent
 :mime-version:in-reply-to:content-language:content-transfer-encoding;
 bh=fZJZlS1KKuYhxgSLTEBfekZgRS8yq4Zf6dagElr6nj8=;
 b=T0JE2L0ZNuLfj53iuNIoslGb1FPN7YQ5GPCmp+SnmlWUb8kRboT38wKuJWPU26gbfk
 7k+lTXuf3IOckQYRKJBPpxgV6916bwyB5NQ1tqKVqRuH0mU8SgUoLvk5mugWHTfsWhe3
 5def1usqF4dABii4U5iG04arMqFkaPnQPGEF470M+ia0ZBDvUG+QZ6zrL+hHtfzWTErt
 BSD08/W2TrtaIIwuJgC5OPn+W2f/dTBaeopVb4V1BokjWkQaF4Hn6jI9j3ApFgbLW6uO
 aiPnXm5DrIoXz/PC7sOWwyEcTak4K4tlEKu6j5VUawstAHn98WHGFYAY+SOa06tDNgB7
 BUQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:cc:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=fZJZlS1KKuYhxgSLTEBfekZgRS8yq4Zf6dagElr6nj8=;
 b=ESjej3I43UKjo1F/I4RgT4zjEabTzJhD+CQHh8nHQZYSDcCcAEykMnJRMCQ/XrGTXn
 FrFZdTd68xEw+JmV01Y0INJ7YPLsEt6dDqOWxxF6uM630b+a5z0PRH+O8fy/PaT9D0pD
 R5Nk0zMHpHY7hUVCN/4k4MgKftv04wNZiL4vjmZLItpkSyivCEnJqBYN+b0xzOVT/FOl
 qAlBRmK25dTxxa7VAin7b37KH8pxZmBw6dkJ8ujQOjGbygaozUFFhrkQwqYwK+7EiOCa
 bZKVz4IVMYJr9UIiOdhrxjHSIA6nGd50nU/LcLDSyWKD8Pc5AM0mjnLvNhbPNop60cWA
 eDPQ==
X-Gm-Message-State: APjAAAVpUaf12guv2JeK6Mqz28J61D80iDOPqg9Ogx/vBXxGKV5Y8u57
 p1hZ4evQdUMt0ibbEOyw74Cg497nYW0=
X-Google-Smtp-Source: APXvYqys1HKM3hh/MEtDyFHonJI68uBGiYGkadtCUur9RXh6qrBllOg8b2kQu4vpKQZAEhb8p0hsnw==
X-Received: by 2002:a24:14c7:: with SMTP id 190mr8570706itg.30.1553514861812; 
 Mon, 25 Mar 2019 04:54:21 -0700 (PDT)
Received: from Shrapnel.mn.redlamb.net
 (50-244-208-113-static.hfc.comcastbusiness.net. [50.244.208.113])
 by smtp.gmail.com with ESMTPSA id 133sm4896542itl.13.2019.03.25.04.54.21
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 25 Mar 2019 04:54:21 -0700 (PDT)
Subject: Re: Unable to mount FAT16 partition (Invalid Argument)
To: Polytropon <freebsd@edvax.de>
Cc: freebsd-questions@freebsd.org
References: <3fbf4d30-e286-fe43-3476-d2f4626b2407@gmail.com>
 <20190325103435.39d39bd4.freebsd@edvax.de>
From: Peter Erickson <redlamb19@gmail.com>
Message-ID: <49bb381b-8e90-2cd4-6cdd-7bbb51b50516@gmail.com>
Date: Mon, 25 Mar 2019 06:54:20 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0)
 Gecko/20100101 Thunderbird/60.6.0
MIME-Version: 1.0
In-Reply-To: <20190325103435.39d39bd4.freebsd@edvax.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: D35BA8EF25
X-Spamd-Bar: ------
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=gmail.com header.s=20161025 header.b=T0JE2L0Z;
 dmarc=pass (policy=none) header.from=gmail.com;
 spf=pass (mx1.freebsd.org: domain of redlamb19@gmail.com designates
 2607:f8b0:4864:20::136 as permitted sender) smtp.mailfrom=redlamb19@gmail.com
X-Spamd-Result: default: False [-6.52 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[];
 TO_DN_SOME(0.00)[];
 R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36];
 FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3];
 DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2];
 DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
 MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com];
 NEURAL_HAM_SHORT(-0.99)[-0.988,0]; FROM_EQ_ENVFROM(0.00)[];
 RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+];
 FREEMAIL_ENVFROM(0.00)[gmail.com];
 ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
 MID_RHS_MATCH_FROM(0.00)[];
 DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0];
 ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0];
 R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[];
 NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain];
 PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org];
 TO_MATCH_ENVRCPT_SOME(0.00)[];
 RCVD_IN_DNSWL_NONE(0.00)[6.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org
 : 127.0.5.0]; 
 IP_SCORE(-2.52)[ip: (-7.55), ipnet: 2607:f8b0::/32(-2.86), asn: 15169(-2.14),
 country: US(-0.07)]
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Mar 2019 11:54:24 -0000

Thanks for the response. I thought the same thing so I tried testing it. 
It appears that mount/mount_msdosfs has no issues mounting a FAT16 
filesystem on a GPT partition. Unfortunately, I'm not sure how good of a 
test it is since the only way I knew to create a FAT16 partition was to 
use FreeBSD.

# dd if=/dev/zero of=msdos_test.dd bs=1M count=300
300+0 records in
300+0 records out
314572800 bytes transferred in 0.487578 secs (645173955 bytes/sec)
# mdconfig -f msdos_test.dd
md0
# gpart create -s GPT md0
md0 created
# gpart add -t ms-basic-data md0
md0p1 added
# newfs_msdos -F 16 /dev/md0p1
newfs_msdos: trim 7 sectors to adjust to a multiple of 9
/dev/md0p1: 614112 sectors in 19191 FAT16 clusters (16384 bytes/cluster)
BytesPerSec=512 SecPerClust=32 ResSectors=1 FATs=2 RootDirEnts=512 
Media=0xf0 FATsecs=75 SecPerTrack=9 Heads=128 HiddenSecs=0 
HugeSectors=614313
# file -s /dev/md0p1
/dev/md0p1: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "BSD4.4  ", 
sectors/cluster 32, root entries 512, sectors/FAT 75, sectors/track 9, 
heads 128, sectors 614313 (volumes > 32 MB), serial number 0xe250e15, 
unlabeled, FAT (16 bit)
# mount -t msdosfs /dev/md0p1 /mnt
# df
Filesystem   1K-blocks    Used    Avail Capacity  Mounted on
/dev/ada0s1a  28434140 6778000 19381412    26%    /
devfs                1       1        0   100%    /dev
/dev/md0p1      307088      32   307056     0%    /mnt

On 3/25/19 4:34 AM, Polytropon wrote:
> On Sun, 24 Mar 2019 20:42:30 -0500, Peter Erickson wrote:
>> # mount -t msdosfs /dev/ada1p5 /mnt
>> mount_msdosfs: /dev/ada1p5: Invalid argument
> 
> I have no idea if this applies, but I can imagine that FAT and GPT
> don't work well together. GPT is "too new", and even on "Windows"
> where GPT can be used, NTFS is used instead of FAT16. A FAT filesystem
> is usually created on a DOS primary partition (a slice). A GPT
> partition is something else...
> 
> Sidenote: For testing, always use -o ro or -r to make sure no
> writes are allowed (or tried). Sometimes this allows you to mount
> even damaged file systems. Try one of these:
> 
> 	# mount -t msdosfs -r /dev/ada1p5 /mnt
> 
> 	# mount_msdosfs -o ro /dev/ada1p5 /mnt
> 
> The use of "mount -t msdosfs" and "mount_msdosfs" should be equivalent.
> See "man mount_msdosfs" for details.
> 
> 
> 
>> FWIW, knoppix has no issues mounting the partition, but I'd really be
>> interested in getting this to work on FreeBSD.
>>
>> knoppix # mount | grep /dev/sdb5
>> /dev/sdb5 on /mnt type vfat
>> (rw,relatime,fmask=0022,dmask=0022,codepage=850,iocharset=utf8,shortname=mixed,errors=remount-ro)
>>
>> Based on the info from knoppix, I tried to mount the partition under
>> FreeBSD using mount_msdosfs directly and specifying the locale
>> (en_US.UTF-8) and codepage (CP850) , but the result was the same -
>> "Invalid argument."
> 
> Locale and codepage shouldn't have an effect on the basic mount
> operation. Both are fairly standard and should be covered by the
> defaults anyway.
> 
> 
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00000000000098ab7a0584e91225>