USB
メモリの認識 †
A-DATA USBメモリ C801 16GBがとても安かったので購入をした.
購入のままではUbuntuに挿しても認識しなかったので,設定のメモです.
購入時のログメッセージ †
購入ままでUSBポートに挿したときの/var/log/message内容です.
kernel: [200661.267009] usb 1-5: new high speed USB device using ehci_hcd and address 7 kernel: [200661.748336] usb 1-5: configuration #1 chosen from 1 choice kernel: [200661.748554] scsi9 : SCSI emulation for USB Mass Storage devices kernel: [200666.741046] scsi 9:0:0:0: Direct-Access USB 2.0 USB Flash Drive 0.00 PQ: 0 ANSI: 2 kernel: [200666.742990] sd 9:0:0:0: [sdd] 31588352 512-byte hardware sectors (16173 MB) kernel: [200666.743649] sd 9:0:0:0: [sdd] Write Protect is off kernel: [200666.745770] sd 9:0:0:0: [sdd] 31588352 512-byte hardware sectors (16173 MB) kernel: [200666.746393] sd 9:0:0:0: [sdd] Write Protect is off kernel: [200666.746407] sdd: sdd1 kernel: [200666.950823] sd 9:0:0:0: [sdd] Attached SCSI removable disk kernel: [200666.950881] sd 9:0:0:0: Attached scsi generic sg3 type 0 kernel: [200777.761556] VFS: Can't find a valid FAT filesystem on dev sdd. kernel: [200787.717581] FAT: Did not find valid FSINFO signature.
とりあえずこのままでもマウントをすることは可能でした.
$ sudo mount -t vfat /dev/sdd1 /media/disk
フォーマット †
ログの内容からFAT関連でおかしいようなので,フォーマットしてみる.
- マウントを解除する
$ sudo umount /media/disk
- デバイスをフォーマット
$ sudo mkfs.vfat /dev/sdd1
USBメモリを抜き挿ししてみると,今度は自動的に認識をするようになった.
kernel: [201843.129693] usb 1-5: USB disconnect, address 7 kernel: [201846.076412] usb 1-5: new high speed USB device using ehci_hcd and address 8 kernel: [201846.555679] usb 1-5: configuration #1 chosen from 1 choice kernel: [201846.555907] scsi10 : SCSI emulation for USB Mass Storage devices kernel: [201851.549762] scsi 10:0:0:0: Direct-Access USB 2.0 USB Flash Drive 0.00 PQ: 0 ANSI: 2 kernel: [201851.551240] sd 10:0:0:0: [sdd] 31588352 512-byte hardware sectors (16173 MB) kernel: [201851.551865] sd 10:0:0:0: [sdd] Write Protect is off kernel: [201851.554110] sd 10:0:0:0: [sdd] 31588352 512-byte hardware sectors (16173 MB) kernel: [201851.554733] sd 10:0:0:0: [sdd] Write Protect is off kernel: [201851.554748] sdd: sdd1 kernel: [201851.669540] sd 10:0:0:0: [sdd] Attached SCSI removable disk kernel: [201851.669599] sd 10:0:0:0: Attached scsi generic sg3 type 0