From owner-freebsd-questions@freebsd.org Sat Aug 10 23:01:03 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 51FA5A82CF for ; Sat, 10 Aug 2019 23:01:03 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 465czL0nlLz4Jvx for ; Sat, 10 Aug 2019 23:01:01 +0000 (UTC) (envelope-from clay.daniels.jr@gmail.com) Received: by mail-vs1-xe2a.google.com with SMTP id c7so60752vse.11 for ; Sat, 10 Aug 2019 16:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uxXZR6tzaBgVzce93vTPtl+j7VoJSuG2oXu76aMqrjo=; b=DpRDZUZQe/Rm30JqwzVbRrSTDY96EaSdTea5ynnQjfbjS94t5+0fDUd/0hmI/e3SV3 SDCwtnlMUdEI6a+fFIJ8jr4ZRnJlGZqJWLILU3JGJO/KPwMJS6aNm0lhqP1AK5XZfvB2 ohMW+trWcWN4mZzV8QZSqjmbSBfuY22f7a+ZBZpmYaoetFqROHD0Wnh2HfwBLgAgd5Zf pcLS3x0QbicidC0yElsv/gTEBWbkI1qmoO3/myNxyUvL6NSImmpT7OUhx8uw/WcGM8uw BCxaKX+lEhpfJaVETx5b6hjHvxcO69DENxxTIxXHjVxRldkhEaTIFBKRv17SJUTc9HyO Dd4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uxXZR6tzaBgVzce93vTPtl+j7VoJSuG2oXu76aMqrjo=; b=tNMF4c+1GeyQwAnnDRAymcxR3mM/vNwOWvp7Y78zdYc1bLaclfh2iSiXFrAsYLC7qs 6Q0xokzKXumxqxnOOpV3wf6d6nVkKLyHw3SNXdcLitiu8QH1A2BxJpsTNFoFMA9+AvSg XUA66vjtIP4Zy4SsuLrwBPKOVcIX2Xg3Ezeoc1NLytzVICegsNXVl6FC++ItVkTzgvIM 0K8DKkhbfqatfE0+v/7kxzXv5rXBby+CYf2RIwKKCcrvyExJMpm3svJ04tE8KwkG+YvS PMZNyV5iv5WWUdaqR3YsGye5ktgidX51z9MKQvHvQfMDCK0NIhVSYQEkpxOb+ewwQESe 9GYA== X-Gm-Message-State: APjAAAUk+dWwBoTtemiI+PV9crLDl7xRgYq1PmpfgtDjU//KqkmYz6Hh 1gqIM81J/pyyjx7BqbggollJWmmN/mwA1Dxsyg== X-Google-Smtp-Source: APXvYqzvKO4R49YLUTOZmW7cqeWik9g6ykl5qFWeBI8n8ufFXfjupH9i90QEbazT9RXSLAzwzeBYkOC6rhLhXUpoaig= X-Received: by 2002:a67:8c02:: with SMTP id o2mr16449721vsd.167.1565478060620; Sat, 10 Aug 2019 16:01:00 -0700 (PDT) MIME-Version: 1.0 References: <20190810083139.GA3606@c720-r342378> <0ce32b01-8fd1-211b-5ef4-43ffa2b843cc@gmail.com> In-Reply-To: <0ce32b01-8fd1-211b-5ef4-43ffa2b843cc@gmail.com> From: "Clay Daniels Jr." Date: Sat, 10 Aug 2019 18:00:46 -0500 Message-ID: Subject: Re: USB stick for msdosfs To: MJ Cc: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: 465czL0nlLz4Jvx X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DpRDZUZQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of claydanielsjr@gmail.com designates 2607:f8b0:4864:20::e2a as permitted sender) smtp.mailfrom=claydanielsjr@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.996,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.73), ipnet: 2607:f8b0::/32(-2.98), asn: 15169(-2.40), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_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)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.e.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]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2019 23:01:03 -0000 Good info there. Just remember that the "\" backslash character is an escape character. *fat16* A partition that contains a FAT16 filesystem. The scheme-specific type is "!6" for MBR. *fat32* A partition that contains a FAT32 filesystem. The scheme-specific type is "!11" for MBR. *fat32lba* A partition that contains a FAT32 (LBA) filesys- tem. The scheme-specific type is "!12" for MBR. On Sat, Aug 10, 2019 at 3:59 AM MJ wrote: > Hi, > The -t sets you partition type, the \!12 is the value. This, according > to gpart manual says it's a Fat32 LBA (whatever use that is). I think > it's a partition type used by Windows 95/98. > > The gpart man also lists a "plain" Fat32 with a type of !11, so try that > instead then newfs_msdos -F32 > > Why it's unwilling to format it? Perhaps it doesn't understand LBA > (Logical Block Addressing)? Frankly, LBA is useless for a tiny 1GB disk, > just use Fat32 (or even Fat16 given you've only got 1GB disk) > > > On 10/08/2019 6:31 pm, Matthias Apitz wrote: > > > > Hello, > > > > I have a 1G (1 "marketing GB") USB stick and use normaly this procedure > > which I have stored in y small set of how-to docs: > > > > > > # gpart destroy -F da0 > > # gpart create -s mbr da0 > > # gpart add -t \!12 da0 > > # newfs_msdos -F32 /dev/da0s1 > > > > What does the '-t \!12' mean? And why in the case here newfs_msdos(8) > > is unwilling to format the partition: > > > > # gpart destroy -F da0 > > da0 destroyed > > # gpart create -s mbr da0 > > da0 created > > # gpart add -t \!12 da0 > > da0s1 added > > # newfs_msdos -F32 /dev/da0s1 > > newfs_msdos: 61408 clusters too few clusters for FAT32, need 65525 > > # gpart list da0 > > Geom name: da0 > > modified: false > > state: OK > > fwheads: 64 > > fwsectors: 32 > > last: 1966079 > > first: 32 > > entries: 4 > > scheme: MBR > > Providers: > > 1. Name: da0s1 > > Mediasize: 1006616576 (960M) > > Sectorsize: 512 > > Stripesize: 0 > > Stripeoffset: 16384 > > Mode: r0w0e0 > > efimedia: HD(1,MBR,00000000,0x20,0x1dffe0) > > rawtype: 12 > > length: 1006616576 > > offset: 16384 > > type: fat32lba > > index: 1 > > end: 1966079 > > start: 32 > > Consumers: > > 1. Name: da0 > > Mediasize: 1006632960 (960M) > > Sectorsize: 512 > > Mode: r0w0e0 > > > > It works with -F16: > > > > # newfs_msdos -F16 /dev/da0s1 > > /dev/da0s1: 1965504 sectors in 61422 FAT16 clusters (16384 bytes/cluster) > > BytesPerSec=512 SecPerClust=32 ResSectors=1 FATs=2 RootDirEnts=512 > Media=0xf0 FATsecs=240 SecPerTrack=32 Heads=64 HiddenSecs=0 > HugeSectors=1966048 > > > > Why not with -F32? Thanks > > > > matthias > > > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >