我通过电缆将中国手机连接到笔记本电脑。在电话中我选择了该选项mass storage
。然后它会在电话上显示“完成”消息。但正如我所期望的那样,我能够看到移动设备的内容(存储卡、内置磁盘),但它并没有发生。
我查了一下df -h
,但没有显示我的手机。当我单击 Ubuntu 启动器的“文件”菜单来查看计算机的设备时,它没有显示。
就像我之前在 Windows 7 上连接时一样,它曾经完美地反映过。但我的 Ubuntu13.04 可能有什么问题呢?
@terdon 请在下面找到输出
ravbholua@ravbholua-Aspire-5315:~$ dmesg | tail -n 40
[ 687.926249] Buffer I/O error on device sdb, logical block 1
[ 687.926252] Buffer I/O error on device sdb, logical block 1
[ 687.926256] Buffer I/O error on device sdb, logical block 1
[ 687.926272] Buffer I/O error on device sdb, logical block 495615
[ 687.926279] Buffer I/O error on device sdb, logical block 0
[ 687.926283] Buffer I/O error on device sdb, logical block 0
[ 696.056096] usb 7-1: USB disconnect, device number 5
[ 1694.288050] usb 7-1: new full-speed USB device number 6 using uhci_hcd
[ 1694.471086] usb 7-1: New USB device found, idVendor=0e8d, idProduct=0002
[ 1694.471093] usb 7-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 1694.471096] usb 7-1: Product: MT6225
[ 1694.471099] usb 7-1: Manufacturer: MediaTek Inc
[ 1694.471101] usb 7-1: SerialNumber: 533807205600090
[ 1694.476542] scsi6 : usb-storage 7-1:1.0
[ 1695.480108] scsi 6:0:0:0: Direct-Access MEDIATEK FLASH DISK 6225 PQ: 0 ANSI: 0 CCS
[ 1695.483121] scsi 6:0:0:1: Direct-Access MEDIATEK FLASH DISK 6225 PQ: 0 ANSI: 0 CCS
[ 1695.487030] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 1695.487241] sd 6:0:0:1: Attached scsi generic sg3 type 0
[ 1695.497177] sd 6:0:0:0: [sdb] 3964928 512-byte logical blocks: (2.03 GB/1.89 GiB)
[ 1695.502101] sd 6:0:0:0: [sdb] Write Protect is off
[ 1695.502108] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 1695.505093] sd 6:0:0:1: [sdc] 1000 512-byte logical blocks: (512 kB/500 KiB)
[ 1695.508140] sd 6:0:0:0: [sdb] No Caching mode page found
[ 1695.508145] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1695.511104] sd 6:0:0:1: [sdc] Write Protect is off
[ 1695.511111] sd 6:0:0:1: [sdc] Mode Sense: 03 00 00 00
[ 1695.516140] sd 6:0:0:1: [sdc] No Caching mode page found
[ 1695.516146] sd 6:0:0:1: [sdc] Assuming drive cache: write through
[ 1695.538535] sd 6:0:0:0: [sdb] No Caching mode page found
[ 1695.538542] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1695.548183] sdb: sdb1
[ 1695.551261] sd 6:0:0:1: [sdc] No Caching mode page found
[ 1695.551270] sd 6:0:0:1: [sdc] Assuming drive cache: write through
[ 1695.560464] sdc: sdc1
[ 1695.586091] sd 6:0:0:0: [sdb] No Caching mode page found
[ 1695.586099] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1695.586103] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 1695.592133] sd 6:0:0:1: [sdc] No Caching mode page found
[ 1695.592141] sd 6:0:0:1: [sdc] Assuming drive cache: write through
[ 1695.592146] sd 6:0:0:1: [sdc] Attached SCSI removable disk
ravbholua@ravbholua-Aspire-5315:~$
编辑
@slm,我创建了 2 个设备文件/dev/sdb
,/dev/sdc
如下所示。但有一个惊喜!在没有将手机连接到笔记本电脑的情况下,我创建了这些文件,并通过运行来确认它ls
。但是连接我的手机后,那些文件就消失了!为什么会这样,现在该如何进行?
ravbholua@ravbholua-Aspire-5315:~$ sudo mknod /dev/sdb b 8 0
ravbholua@ravbholua-Aspire-5315:~$ cd /dev
ravbholua@ravbholua-Aspire-5315:/dev$ ls sd*
sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sdb
ravbholua@ravbholua-Aspire-5315:/dev$ sudo mknod /dev/sdc b 8 0
ravbholua@ravbholua-Aspire-5315:/dev$ !-2
ls sd*
sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sdb sdc
ravbholua@ravbholua-Aspire-5315:/dev$ ll $_
brw-r--r-- 1 root root 8, 0 Nov 1 20:33 sdc
ravbholua@ravbholua-Aspire-5315:/dev$ ll sda
brw-rw---- 1 root disk 8, 0 Nov 1 20:09 sda
(the below is after connecting mobile)
ravbholua@ravbholua-Aspire-5315:/dev$ ls sd*
sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8
ravbholua@ravbholua-Aspire-5315:/dev$ ls sdb
ls: cannot access sdb: No such file or directory
ravbholua@ravbholua-Aspire-5315:/dev$ ls sdc
ls: cannot access sdc: No such file or directory
ravbholua@ravbholua-Aspire-5315:/dev$
编辑
@slm 现在设备文件sdb
和sdc
是可见的。我现在所做的是在连接设备后创建文件。但仍然无法找到我的移动设备。您可以从下面的代码中看到我无法挂载文件 sdb。但你知道一件事,当我运行 cat /dev/sdb 时,它确实以不可读的格式输出,我确实通过 ctrl-c 退出了。这是不是说明它在读我的手机盘啊!
ravbholua@ravbholua-Aspire-5315:/dev$ sudo mount /dev/sdb /mnt
mount: /dev/sdb already mounted or /mnt busy
ravbholua@ravbholua-Aspire-5315:/dev$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 9.9G 5.8G 3.6G 62% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 489M 4.0K 489M 1% /dev
tmpfs 100M 920K 99M 1% /run
none 5.0M 4.0K 5.0M 1% /run/lock
none 497M 672K 496M 1% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sda5 284M 129M 141M 48% /boot
/dev/sda8 9.5G 7.6G 1.5G 85% /home
ravbholua@ravbholua-Aspire-5315:/dev$ sudo umount /mnt
umount: /mnt: not mounted
ravbholua@ravbholua-Aspire-5315:/dev$ ls sd*
sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sdb sdc
ravbholua@ravbholua-Aspire-5315:/dev$ sudo umount /dev/sdb
umount: /dev/sdb: not mounted
ravbholua@ravbholua-Aspire-5315:/dev$ cd /
ravbholua@ravbholua-Aspire-5315:/$ sudo mount /dev/sdb /mnt
mount: /dev/sdb already mounted or /mnt busy
ravbholua@ravbholua-Aspire-5315:/$
答案1
看起来该设备上有 2 个存储设备:
[ 1695.497177] sd 6:0:0:0: [sdb] 3964928 512-byte logical blocks: (2.03 GB/1.89 GiB)
[ 1695.505093] sd 6:0:0:1: [sdc] 1000 512-byte logical blocks: (512 kB/500 KiB)
您尝试安装该设备/dev/sdb
吗?
$ sudo mount /dev/sdb /mnt