几天前我在 SD 卡上刻录 xbian 时没有遇到问题,今天我尝试在一张新卡上再次执行此操作,但 Ubuntu 拒绝检测我是否已插入它。我认为新卡可能有故障,我检查了旧卡,我的电脑也无法检测到它。
当我插入卡时什么也没有发生,没有新消息输入dmesg
,也没有新设备输入/dev/
,就像什么都没有发生一样。
我保持我的系统(16.04)为最新版本,并且当前运行的是内核 4.4.0-43-generic
我的笔记本电脑是戴尔 Lattitude E7440,内置 O2 Micro SD 卡读卡器。
这可能与我遇到的冻结问题有关,也可能无关docker
。互联网上有人建议运行:
sudo dmsetup mknodes
这个工具肯定与存储设备有关,虽然它有帮助,但docker
它可能损坏 SD 卡读卡器。
现在进行一些诊断:
$ uname -a
Linux e7440 4.4.0-43-generic #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
,
$ lspci
...
03:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
SD 卡位于插槽中。
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465,8G 0 disk
├─sda1 8:1 0 7,6G 0 part [SWAP]
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 38,1G 0 part /
└─sda6 8:6 0 420G 0 part /home
,
$ grep -iE "sdhci|mmc" /var/log/syslog
Oct 16 20:04:02 e7440 kernel: [ 0.110590] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
Oct 16 20:04:02 e7440 kernel: [ 0.110592] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
Oct 16 20:04:02 e7440 kernel: [ 0.814775] sdhci: Secure Digital Host Controller Interface driver
Oct 16 20:04:02 e7440 kernel: [ 0.814778] sdhci: Copyright(c) Pierre Ossman
Oct 16 20:04:02 e7440 kernel: [ 0.829377] sdhci-pci 0000:03:00.0: SDHCI controller found [1217:8520] (rev 1)
Oct 16 20:04:02 e7440 kernel: [ 0.831379] mmc0: Unknown controller version (3). You may experience problems.
Oct 16 20:04:02 e7440 kernel: [ 0.831393] sdhci-pci 0000:03:00.0: No vmmc regulator found
Oct 16 20:04:02 e7440 kernel: [ 0.831395] sdhci-pci 0000:03:00.0: No vqmmc regulator found
Oct 16 20:04:02 e7440 kernel: [ 0.837937] mmc0: SDHCI controller on PCI [0000:03:00.0] using ADMA
Oct 16 20:07:46 e7440 kernel: [ 0.111881] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
Oct 16 20:07:46 e7440 kernel: [ 0.111884] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
Oct 16 20:07:46 e7440 kernel: [ 0.815203] sdhci: Secure Digital Host Controller Interface driver
Oct 16 20:07:46 e7440 kernel: [ 0.815204] sdhci: Copyright(c) Pierre Ossman
Oct 16 20:07:46 e7440 kernel: [ 0.830301] sdhci-pci 0000:03:00.0: SDHCI controller found [1217:8520] (rev 1)
Oct 16 20:07:46 e7440 kernel: [ 0.832340] mmc0: Unknown controller version (3). You may experience problems.
Oct 16 20:07:46 e7440 kernel: [ 0.832354] sdhci-pci 0000:03:00.0: No vmmc regulator found
Oct 16 20:07:46 e7440 kernel: [ 0.832356] sdhci-pci 0000:03:00.0: No vqmmc regulator found
Oct 16 20:07:46 e7440 kernel: [ 0.838082] mmc0: SDHCI controller on PCI [0000:03:00.0] using ADMA
Oct 16 20:09:53 e7440 kernel: [ 132.501886] mmc0: Card removed during transfer!
Oct 16 20:09:53 e7440 kernel: [ 132.501889] mmc0: Resetting controller.
Oct 16 20:17:01 e7440 kernel: [ 0.111302] PCI: MMCONFIG for domain 0000 [bus 00-3f] at [mem 0xf8000000-0xfbffffff] (base 0xf8000000)
Oct 16 20:17:01 e7440 kernel: [ 0.111305] PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
Oct 16 20:17:01 e7440 kernel: [ 0.827957] sdhci: Secure Digital Host Controller Interface driver
Oct 16 20:17:01 e7440 kernel: [ 0.827959] sdhci: Copyright(c) Pierre Ossman
Oct 16 20:17:01 e7440 kernel: [ 0.844377] sdhci-pci 0000:03:00.0: SDHCI controller found [1217:8520] (rev 1)
Oct 16 20:17:01 e7440 kernel: [ 0.846390] mmc0: Unknown controller version (3). You may experience problems.
Oct 16 20:17:01 e7440 kernel: [ 0.846405] sdhci-pci 0000:03:00.0: No vmmc regulator found
Oct 16 20:17:01 e7440 kernel: [ 0.846407] sdhci-pci 0000:03:00.0: No vqmmc regulator found
Oct 16 20:17:01 e7440 kernel: [ 0.849356] mmc0: SDHCI controller on PCI [0000:03:00.0] using ADMA
mmc0: Unknown controller version (3). You may experience problems.
即使阅读器正在工作时也会显示。
$ sudo dmsetup ls
No devices found
和
$ ls -l /dev | wc -l
插入卡之前和之后报告的值相同。