これは日々の作業を通して学んだことや毎日の生活で気づいたことをを記録しておく備忘録である。
HTML ファイル生成日時: 2024/12/21 11:44:57.596 (台灣標準時)
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