#author("2019-09-26T13:41:04+09:00","default:honma","honma") #author("2019-10-02T09:18:43+09:00","default:honma","honma") * USBメモリの初期化 [#rb8d1ca1] LinuxでUSBメモリを初期化する ** パーティショニング [#c5a56c0b] $ sudo gdisk /dev/sdb GPT fdisk (gdisk) version 0.8.8 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): o ... 新しい(GPT)パーティションテーブルを作成する This option deletes all partitions and creates a new protective MBR. Proceed? (Y/N): y Command (? for help): n ... 新しいパーティションを追加する Partition number (1-128, default 1): First sector (34-15618014, default = 2048) or {+-}size{KMGTP}: Last sector (2048-15618014, default = 15618014) or {+-}size{KMGTP}: Current type is 'Linux filesystem' Hex code or GUID (L to show codes, Enter = 8300): Changed type of partition to 'Linux filesystem' Command (? for help): w ... 書き込み Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING PARTITIONS!! Do you want to proceed? (Y/N): y ... もちろんyes OK; writing new GUID partition table (GPT) to /dev/sdb. The operation has completed successfully. ** フォーマット [#b52d8164] # sudo mkfs.vfat -v -c -F 32 /dev/sdb1 mkfs.fat 3.0.26 (2014-03-07) /dev/sdb1 has 246 heads and 62 sectors per track, hidden sectors 0x0800; logical sector size is 512, using 0xf8 media descriptor, with 15615967 sectors; drive number 0x80; filesystem has 2 32-bit FATs and 8 sectors per cluster. FAT size is 15221 sectors, and provides 1948186 clusters. There are 32 reserved sectors. Volume ID is f7750ba1, no volume label. Searching for bad blocks 173408... 343776... 512080... 続く ~ #htmlinsert(amazon_pc.html);