当前位置: 技术问答>linux和unix
USB挂载时提示“No Such Device”
来源: 互联网 发布时间:2016-09-30
本文导语: usb 1-1: new high speed USB device using ehci_hcd and address 2 usb 1-1: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 2 usb-storage: waiting for device to settle before scann...
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access ZTE USB 2.0 5.00 PQ: 0 ANSI: 2
SCSI device sda: 1021952 512-byte hdwr sectors (523 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 1021952 512-byte hdwr sectors (523 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
#
#
# ls -l /dev/sda1
brw-r--r-- 1 0 0 8, 1 Apr 23 2010 /dev/sda1
# mount -t vfat dev/sda1 /mnt
mount: Mounting /dev/sda1 on /mnt failed: No such device
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access ZTE USB 2.0 5.00 PQ: 0 ANSI: 2
SCSI device sda: 1021952 512-byte hdwr sectors (523 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 1021952 512-byte hdwr sectors (523 MB)
sda: Write Protect is off
sda: Mode Sense: 0b 00 00 08
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
#
#
# ls -l /dev/sda1
brw-r--r-- 1 0 0 8, 1 Apr 23 2010 /dev/sda1
# mount -t vfat dev/sda1 /mnt
mount: Mounting /dev/sda1 on /mnt failed: No such device
|
现用 fdisk -l 来查看硬盘信息。
|
df 命令读的是 /etc/mtab 文件, 没有多大意义的。
要想确定 sda1 是否正是存在, fdisk 是比较快捷的办法。
如果你的系统上没有 fdisk , 那么你可以用 busybox 编译一个 fdisk 。
要想确定 sda1 是否正是存在, fdisk 是比较快捷的办法。
如果你的系统上没有 fdisk , 那么你可以用 busybox 编译一个 fdisk 。
|
mount -t vfat /dev/sda1 /mnt
|
另外还有一个办法可以迅速 确定 sda1 是否存在:
ls /sys/block/sda/
ls /sys/block/sda/