출처 : http://www.linuxquestions.org/questions/linux-newbie-8/mount-usb-drive-from-command-line-672346/
1. usb를 꽂는다
2. dmesg를 이용해서 sda: sda1과 같은 메시지 확인하기
dave@dave-laptop:~$ dmesg|tail [ 396.133702] sd 5:0:0:0: [sdb] Assuming drive cache: write through [ 396.133708] sdb: sdb1 [ 396.135373] sd 5:0:0:0: [sdb] Attached SCSI removable disk [ 396.135479] sd 5:0:0:0: Attached scsi generic sg2 type 0 [ 2384.114940] usb 7-1: USB disconnect, address 4 [ 4065.246717] usb 7-1: new high speed USB device using ehci_hcd and address 5 [ 4065.309711] usb 7-1: configuration #1 chosen from 1 choice [ 4065.310192] scsi6 : SCSI emulation for USB Mass Storage devices [ 4065.312712] usb-storage: device found at 5 [ 4065.312720] usb-storage: waiting for device to settle before scanning dave@dave-laptop:~$ dmesg|tail [ 4066.925675] sd 6:0:0:0: [sdb] Write Protect is off [ 4066.925683] sd 6:0:0:0: [sdb] Mode Sense: 45 00 00 08 [ 4066.925688] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 4066.928273] sd 6:0:0:0: [sdb] 3940479 512-byte hardware sectors (2018 MB) [ 4066.929043] sd 6:0:0:0: [sdb] Write Protect is off [ 4066.929050] sd 6:0:0:0: [sdb] Mode Sense: 45 00 00 08 [ 4066.929055] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 4066.929063] sdb: sdb1 [ 4066.930879] sd 6:0:0:0: [sdb] Attached SCSI removable disk [ 4066.930963] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 4066.929063] sdb: sdb1
3. 다음 코드 따라하기
dave@dave-laptop:~$ cd /mnt/ dave@dave-laptop:/mnt$ ls dave@dave-laptop:/mnt$ sudo mkdir usb [sudo] password for dave: dave@dave-laptop:/mnt$ ls usb/ dave@dave-laptop:/mnt$ sudo mount -t vfat /dev/sdb1 /mnt/usb/ dave@dave-laptop:/mnt$ cd usb dave@dave-laptop:/mnt/usb$ ls chem_4_kids.sh PDF Lists Groups IT Room Layout.xls Junior Cert Science
'Computers > Raspberry-pi' 카테고리의 다른 글
블루투스 관련 명령어(?) (0) | 2013.06.24 |
---|---|
hcitool scan : time out ! (0) | 2013.06.24 |
bluetooth dongle ... rfcomm (0) | 2013.06.24 |
raspbian sdcard 용량 맞추기 (0) | 2013.06.24 |