jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-aarch64
wildtrees has quit [Quit: Leaving]
ris has quit [Ping timeout: 245 seconds]
orivej has quit [Ping timeout: 246 seconds]
<samueldr> when mkfs.fat tells you the partition is too small for a FAT32 (with -F 32), and that it might not work everywhere
<samueldr> it knows what it's doing
<samueldr> it does not work everywhere
<samueldr> a raspberry pi 3b will not work with those
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
<sphalerite> samueldr: huh. I recently tried to make an ESP and got that error
<sphalerite> fixed it with magic I didn't understand from the internet — passing -s 2
makefu has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
orivej has quit [Ping timeout: 245 seconds]
zupo has joined #nixos-aarch64
makefu has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grw has quit [Ping timeout: 246 seconds]
makefu has quit [Ping timeout: 268 seconds]
makefu has joined #nixos-aarch64
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
zupo has quit [Ping timeout: 268 seconds]
zupo has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
alex_giusi_tiri has joined #nixos-aarch64
<clever> -s SECTORS-PER-CLUSTER
<clever> Specify the number of disk sectors per cluster. Must be a power of 2, i.e. 1, 2, 4, 8, ... 128.
<clever> sphalerite: each sector on-disk is 512 bytes, fat32 operates in chunks of 1 cluster, and the fat (file allocation table) is just a single giant array, containing a 32bit int for every single cluster in the fs
<clever> so making clusters bigger, makes the fat smaller, at the cost of more overhead for small files
<clever> fat16 would also halve the size of the fat, since it only has 16bit ints, instead of 32bit ints
<sphalerite> clever: is it always 512-byte sectors?
<sphalerite> clever: I was thinking that it was maybe usign the disk's real sector size, and that was causing the problem
<clever> sphalerite: -s lets you put multiple sectors into a cluster
<clever> and the fs operates on clusters, not sectors
grw has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryantrinkle has joined #nixos-aarch64
njd has joined #nixos-aarch64
<sphalerite> clever: yes, but that doesn't answer my question
orivej has quit [Ping timeout: 244 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 245 seconds]
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
<clever> sphalerite: what is the default value of -s?
<sphalerite> idk
<clever> sphalerite: run minfo on an fs, from the mtools package?
<sphalerite> clever: it gives me a usage message
<sphalerite> sudo minfo /dev/nvme0n1p1
<samueldr> 512
<sphalerite> -> Mtools version 4.0.23, dated December 9th, 2018 /// Usage: minfo [-v] drive
<samueldr> static unsigned sector_size = 512;
<samueldr> it's only otherwise set by the option
<clever> samueldr: -s is the number of sectors per cluster, so it would be a multiple of that 512
<clever> sphalerite: yeah, i cant get it to work either, weird
<samueldr> -S
orivej has joined #nixos-aarch64
<sphalerite> fsck.fat -vn shows the numbers for an existing filesystem
<sphalerite> yeah the difference is "4096 bytes per logical sector" on the one where it didn't work without -s 2
<samueldr> and for -s it seems to be 2, when unset, though it's a bit weird because the comments only talk about atari format at that line
<samueldr> hm yeah, forget about that 2, it's in a big if for atari format
<clever> -s 2, would be 1024 byte clusters
jtojnar has quit [Ping timeout: 245 seconds]
jtojnar has joined #nixos-aarch64
alex_giusi_tiri has quit [Quit: Leaving.]
zupo has joined #nixos-aarch64
wildtrees has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
<sphalerite> clever: except on this disk, where it's 8192-byte clusters.
<clever> sphalerite: that sounds like -s16
<sphalerite> clever: no, because the sectors are 4096 bytes.
<clever> oh
<sphalerite> as I mentioned above
<clever> ahh
<sphalerite> sphalerite | yeah the difference is "4096 bytes per logical sector" on the one where it didn't work without -s 2
<samueldr> fun with fat
<clever> misead that as clusters
<clever> wasnt thinking of 4k disks
ris has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 268 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 246 seconds]
t184256 has left #nixos-aarch64 ["Disconnected: Replaced by new connection"]
t184256 has joined #nixos-aarch64
_ris has joined #nixos-aarch64
orivej has joined #nixos-aarch64
ris has quit [Ping timeout: 246 seconds]
ryantrinkle has joined #nixos-aarch64
wildtrees has quit [Quit: Leaving]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-aarch64