Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save scottwalters/bd6010938a60fc17084cead02c701c11 to your computer and use it in GitHub Desktop.

Select an option

Save scottwalters/bd6010938a60fc17084cead02c701c11 to your computer and use it in GitHub Desktop.

Revisions

  1. scottwalters created this gist Apr 23, 2019.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    root@fluffy:/tmp# newfs_msdos -S 8192 -F 32 /dev/rsd3i
    /dev/rsd3i: 1953286704 sectors in 244160838 FAT32 clusters (65536 bytes/cluster)
    bps=8192 spc=8 res=4 nft=2 mid=0xf8 spt=63 hds=255 hid=16 bsec=1953525152 bspf=119220 rdcl=2 infs=1 bkbs=2
    root@fluffy:/tmp# mount_msdos /dev/sd3i /mnt/flash
    root@fluffy:/tmp# newfs_msdos -S $((8192*2)) -F 32 /dev/rsd3i'
    /dev/rsd3i: 1953405920 sectors in 244175740 FAT32 clusters (131072 bytes/cluster)
    bps=16384 spc=8 res=4 nft=2 mid=0xf8 spt=63 hds=255 hid=16 bsec=1953525152 bspf=59614 rdcl=2 infs=1 bkbs=2
    root@fluffy:/tmp# mount_msdos /dev/sd3i /mnt/flash
    mount_msdos: /dev/sd3i on /mnt/flash: not an MSDOS filesystem