Notebook

これは日々の作業を通して学んだことや毎日の生活で気づいたことをを記録しておく備忘録である。

HTML ファイル生成日時: 2024/11/21 17:40:55.112 (台灣標準時)

NetBSD で micro-SD カードを FAT32 でフォーマットする方法

micro-SD カードを FAT32 でフォーマットするでござる。 fdisk でパーティ ションを決めて、その後で newfs_msdos で FAT32 ファイルシステムを作れば よいようでござる。


# fdisk -u /dev/rsd0d
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 30436, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 62333952, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1953525168

Partitions aligned to 16065 sector boundaries, offset 63

Do you want to change our idea of what BIOS thinks? [n] 

Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 63, size 62333889 (30436 MB, Cyls 0-3880/27/51), Active
        PBR is not bootable: All bytes are identical (0x00)
1: 
2: 
3: 
Bootselector disabled.
First active partition: 0
Drive serial number: 0 (0x00000000)
Which partition do you want to change?: [none] 0
The data for partition 0 is:
Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 63, size 62333889 (30436 MB, Cyls 0-3880/27/51), Active
        PBR is not bootable: All bytes are identical (0x00)
sysid: [0..255 default: 12] 0

Partition table:
0: 
1: 
2: 
3: 
Bootselector disabled.
No active partition.
Drive serial number: 0 (0x00000000)
Which partition do you want to change?: [none] 0
The data for partition 0 is:

sysid: [0..255 default: 169] 12
start: [0..3880cyl default: 63, 0cyl, 0MB] 
size: [0..3880cyl default: 62333889, 3880cyl, 30436MB] 
bootmenu: [] (space to clear)

Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 63, size 62333889 (30436 MB, Cyls 0-3880/27/51)
        PBR is not bootable: All bytes are identical (0x00)
1: 
2: 
3: 
Bootselector disabled.
No active partition.
Drive serial number: 0 (0x00000000)
Which partition do you want to change?: [none] 

We haven't written the MBR back to disk yet.  This is your last chance.
Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
    start 63, size 62333889 (30436 MB, Cyls 0-3880/27/51)
        PBR is not bootable: All bytes are identical (0x00)
1: 
2: 
3: 
Bootselector disabled.
No active partition.
Drive serial number: 0 (0x00000000)
Should we write new partition table? [n] y
# fdisk -i /dev/rsd0d
Update the bootcode from /usr/mdec/mbr? [n] y

We haven't written the MBR back to disk yet.  This is your last chance.
Should we write new partition table? [n] y
# disklabel /dev/rsd0d
# /dev/rsd0d:
type: SCSI
disk: SD/MMC          
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 30436
total sectors: 62333952
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

5 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 d:  62333952         0     unused      0     0        # (Cyl.      0 -  30436*)
 e:  62333889        63      MSDOS                     # (Cyl.      0*-  30436*)
disklabel: boot block size 0
disklabel: super block size 0
# newfs_msdos -F 32 /dev/rsd0e 
/dev/rsd0e: 62303424 sectors in 1946982 FAT32 clusters (16384 bytes/cluster)
MBR type: 11
bps=512 spc=32 res=32 nft=2 mid=0xf0 spt=32 hds=64 hid=0 bsec=62333889 bspf=15211 rdcl=2 infs=1 bkbs=2



Frequently accessed files

  1. Computer___Python/20220518_0.html
  2. Computer___Network/20230726_00.html
  3. Misc___Taiwan/20240207_00.html
  4. Computer___Network/20230516_00.html
  5. Computer___FreeBSD/20220621_0.html
  6. Computer___Python/20220715_0.html
  7. Computer___Network/20230508_00.html
  8. Food___Taiwan/20220429_0.html
  9. Computer___NetBSD/20220817_3.html
  10. Computer___Python/20220410_0.html
  11. Computer___Network/20240416_00.html
  12. Computer___Network/20240130_00.html
  13. Computer___Debian/20210223_1.html
  14. Computer___NetBSD/20230119_00.html
  15. Computer___Python/20210124_0.html
  16. Computer___Python/20221013_0.html
  17. Computer___NetBSD/20220818_1.html
  18. Computer___NetBSD/20220428_0.html
  19. Science___Math/20220420_0.html
  20. Computer___NetBSD/20240101_02.html
  21. Computer___NetBSD/20220808_0.html
  22. Computer___TeX/20230503_00.html
  23. Computer___NetBSD/20230515_00.html
  24. Science___Astronomy/20220503_0.html
  25. Computer___NetBSD/20210127_0.html
  26. Computer___Python/20240101_00.html
  27. Computer___Network/20220413_1.html
  28. Computer___Python/20220816_1.html
  29. Computer___NetBSD/20210204_0.html
  30. Travel___Taiwan/20220809_2.html


HTML file generated by Kinoshita Daisuke.