Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #203899

Re: Formatting a 32G or 16G SD card?

From Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups linux.debian.user
Subject Re: Formatting a 32G or 16G SD card?
Date 2019-01-03 21:10 +0100
Message-ID <xchtw-7Xa-9@gated-at.bofh.it> (permalink)
References <xc6eJ-1df-9@gated-at.bofh.it> <xc8zU-2z7-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Le 03/01/2019 à 11:35, Jonathan Dowland a écrit :
> On Thu, Jan 03, 2019 at 12:07:21AM -0800, John Conover wrote:
>> I'm want to format a "standard" 16G/32G SD card to OEM format.

What is "OEM format" ?

>> Could someone please verify that the following will do this:
>>
>>    mkdosfs -I /dev/sdX
>>    fdisk /dev/sdX n,p,1,default,default,w
>>    mkfs.vfat /dev/sdX1
>>
>> It seems to work, but could someone please verify that its correct?
> 
> The "mkdosfs" seems to be superfluous, to me.

It does not seem to, it is. It may also cause a lot of confusion if 
enough of the FAT boot sector is left untouched by the partition table.

Also, note that mkdosfs is the same as mkfs.vfat.

> As far as I can see, that
> will put a FAT16 filesystem directly onto the device.

No, the FAT type is chosen from the device size unless explicitly 
specified. 16 or 32 GB will select FAT32.

> You then write a MBR-type filesystem

Nonsense. You mean a partition table or disk label.

> and then a FAT32 filesystem into the sole partition.

Because the FAT type is chosen from the device size. Not because the 
command is invoked as mkfs.vfat. VFAT has nothing to do with FAT32, it 
just adds support for long file names on top of any FAT type and is only 
a mount-time feature.

> That said the documentation for mkdosfs "-I" is pretty unclear so
> perhaps it's doing something that you intend and I have missed.

-I forces mkdosfs to accept a whole unpartitioned device.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Formatting a 32G or 16G SD card? conover@rahul.net (John Conover) - 2019-01-03 09:10 +0100
  Re: Formatting a 32G or 16G SD card? Jonathan Dowland <jmtd@debian.org> - 2019-01-03 11:40 +0100
    Re: Formatting a 32G or 16G SD card? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-03 21:10 +0100
      Re: Formatting a 32G or 16G SD card? Jonathan Dowland <jmtd@debian.org> - 2019-01-04 11:00 +0100
        Re: Formatting a 32G or 16G SD card? Curt <curty@free.fr> - 2019-01-04 14:40 +0100
          Re: Formatting a 32G or 16G SD card? Jonathan Dowland <jmtd@debian.org> - 2019-01-04 17:30 +0100
            Re: Formatting a 32G or 16G SD card? Curt <curty@free.fr> - 2019-01-04 17:40 +0100
              Re: Formatting a 32G or 16G SD card? rhkramer@gmail.com - 2019-01-05 05:00 +0100
            Re: Formatting a 32G or 16G SD card? <tomas@tuxteam.de> - 2019-01-04 17:40 +0100
              Re: Formatting a 32G or 16G SD card? "Thomas Schmitt" <scdbackup@gmx.net> - 2019-01-04 18:50 +0100
            Re: Formatting a 32G or 16G SD card? Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-01-04 20:10 +0100
              Re: Formatting a 32G or 16G SD card? <tomas@tuxteam.de> - 2019-01-05 10:30 +0100
                Re: Formatting a 32G or 16G SD card? Joe <joe@jretrading.com> - 2019-01-05 10:40 +0100
                Re: Formatting a 32G or 16G SD card? <tomas@tuxteam.de> - 2019-01-05 12:00 +0100
              Re: Formatting a 32G or 16G SD card? Jonathan Dowland <jmtd@debian.org> - 2019-01-07 13:30 +0100
          typos (was: Re: Formatting a 32G or 16G SD card?) rhkramer@gmail.com - 2019-01-05 04:20 +0100
          Re: Formatting a 32G or 16G SD card? rhkramer@gmail.com - 2019-01-05 04:20 +0100
          Re: Formatting a 32G or 16G SD card? rhkramer@gmail.com - 2019-01-05 04:40 +0100
            Re: Formatting a 32G or 16G SD card? Curt <curty@free.fr> - 2019-01-05 10:10 +0100

csiph-web