我刚刚安装了 Ubuntu 20.04。如果使用 SD 卡适配器,则无法访问任何 SD 卡。我尝试了多个适配器,并在其他计算机上进行了相同的测试。SD 卡或适配器在其他系统上运行良好,但在我的系统上却无法识别它。
如果我使用 USB 适配器,我就能访问 SD 卡。
这绝对不是硬件问题,因为如果我在计算机上打开 Windows 分区,我就能访问它。
这是可用磁盘列表的屏幕截图,其中 SD 卡已通过 SD 卡适配器插入:
这是一个简单的存储设备,如果我在 Windows 分区上打开它,它很容易打开,但在 Ubuntu 上。
一些论坛建议我重新安装 udisks2,我照做了,但问题并没有解决。
sudo apt-get install --reinstall udisks2
我该如何解决 ?
硬件信息:
HP-15 Pavillion 游戏处理器 Intel i5 第 9 代 8 GB RAM,512 GB SSD
编辑:正如评论中所建议的,我使用 GParted 来获取更详细的信息,这是启动 GParted 后的结果:
编辑2:我运行了命令lspci
,然后lspci -v | grep -iA15 sd
得到了以下输出:
lspci
:
00:00.0 Host bridge: Intel Corporation 8th Gen Core 4-core Processor Host Bridge/DRAM Registers [Coffee Lake H] (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #14 (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #15 (rev f0)
00:1f.0 ISA bridge: Intel Corporation HM470 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
04:00.0 Unassigned class [ff00]: Alcor Micro AU6625 PCI-E Flash card reader controller
对于lspci -v | grep -iA15 sd
:
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (prog-if 02 [NVM Express])
Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
Memory at b4400000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: nvme
Kernel modules: nvme
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
DeviceName: Realtek Gaming GBE Family Controller
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at 3000 [size=256]
Memory at b4304000 (64-bit, non-prefetchable) [size=4K]
Memory at b4300000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169
编辑 3:运行lspci -v | grep -iA15 'card reader'
,输出结果如下:
04:00.0 Unassigned class [ff00]: Alcor Micro AU6625 PCI-E Flash card reader controller
Subsystem: Hewlett-Packard Company AU6625 PCI-E Flash card reader controller
Flags: fast devsel, IRQ 18
Memory at b4200000 (64-bit, non-prefetchable) [virtual] [size=4K]
Capabilities: <access denied>
Kernel driver in use: alcor_pci
Kernel modules: alcor_pci
答案1
我是 Unix 新手,但我使用了上面列出的命令(lsusb、lsblk、DISKS),这些命令确认闪存卡确实被笔记本电脑看到。唯一的问题是 FILES 看不到它,即使它已格式化。DISKS 注意到闪存卡上没有分区,所以我让它创建一个(确定整个(16 GB)将是一个分区)。这解决了问题,FILES 现在可以访问它了。它就像任何驱动器或 USB 棒一样。