rpm -Uvh rpmfusion-free-release-stable*rpm

rpm -Uvh rpmfusion-free-release-stable*rpm

我尝试在 Fedora 28 上访问 SD 卡,但没有成功。系统信息如下:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 28 (Twenty Eight)
Release:    28
Codename:   TwentyEight

我无法使用两个不同的读卡器访问不同的 SD 卡。尽管可以在 macOS 和 Windows 上访问,但它们都不会显示在 Nautilus 文件浏览器、桌面或其他明显的地方。

系统根据输出识别读卡器lsusb

$ lsusb -v
# some other USB devices
Bus 001 Device 005: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0        64
idVendor           0x058f Alcor Micro Corp.
idProduct          0x6362 Flash Card Reader/Writer
bcdDevice            1.29
iManufacturer           1 
iProduct                2 
iSerial                 3 
bNumConfigurations      1
Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
    (Bus Powered)
    MaxPower              250mA
    Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           2
    bInterfaceClass         8 Mass Storage
    bInterfaceSubClass      6 SCSI
    bInterfaceProtocol     80 Bulk-Only
    iInterface              0 
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

# some other USB devices

Bus 001 Device 006: ID 0dda:2027 Integrated Circuit Solution, Inc. USB 2.0 Card Reader
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0        64
idVendor           0x0dda Integrated Circuit Solution, Inc.
idProduct          0x2027 USB 2.0 Card Reader
bcdDevice            1.6e
iManufacturer           1 
iProduct                2 
iSerial                 3 
bNumConfigurations      1
Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 
    bmAttributes         0x80
    (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           2
    bInterfaceClass         8 Mass Storage
    bInterfaceSubClass      6 SCSI
    bInterfaceProtocol     80 Bulk-Only
    iInterface              5 
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

# some other USB devices

然后我在插入和拔出卡时查看了 udev 事件:

$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[701.434565] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)
UDEV  [714.263816] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)
KERNEL[748.477184] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)
UDEV  [761.338940] change   /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host4/target4:0:0/4:0:0:2/block/sde (block)

此外,我还查看了内核消息:

$ dmesg
[  603.846840] usb-storage 1-3:1.0: USB Mass Storage device detected
[  603.847749] scsi host4: usb-storage 1-3:1.0
[  605.703531] scsi 4:0:0:0: Direct-Access     Generic                CF 1.6E PQ: 0 ANSI: 0 CCS
[  605.704982] scsi 4:0:0:1: Direct-Access     Generic                MS 1.6E PQ: 0 ANSI: 0 CCS
[  606.509034] scsi 4:0:0:2: Direct-Access     Generic            MMC/SD 1.6E PQ: 0 ANSI: 0 CCS
[  606.510387] scsi 4:0:0:3: Direct-Access     Generic                SM 1.6E PQ: 0 ANSI: 0 CCS
[  606.511519] sd 4:0:0:0: Attached scsi generic sg4 type 0
[  606.511943] sd 4:0:0:1: Attached scsi generic sg5 type 0
[  606.512177] sd 4:0:0:2: Attached scsi generic sg6 type 0
[  606.512408] sd 4:0:0:3: Attached scsi generic sg7 type 0
[  608.924586] sd 4:0:0:1: [sdd] Attached SCSI removable disk
[  629.830776] sd 4:0:0:2: [sde] Attached SCSI removable disk
[  633.048754] sd 4:0:0:3: [sdf] Attached SCSI removable disk
[  639.490479] sd 4:0:0:0: [sdc] Attached SCSI removable disk

dmesg和的输出都udevadm monitor表明该卡应显示为sde。不过,fdisk -l并没有列出sde。除此之外,尝试手动安装设备会引发错误:

$ mount -t auto /dev/sde /mnt/
mount: /mnt: no medium found on /dev/sde.

我不确定所需的驱动程序模块是否已正确加载,因为输出mmc0中没有 -like 条目dmesg(正如我从基于 Debian 的系统中了解到的那样)。也不lsmod列出mmc0内核模块:

$ lsmod | grep mm
rtl8192c_common        61440  1 rtl8192cu
rtlwifi                98304  3 rtl8192c_common,rtl_usb,rtl8192cu

唯一mmc似乎可用但未加载的类似模​​块是mmc_blockmmc_core

$ modprobe mm  # listing suggestions using tab auto-completion
mma7660    mmc_block  mmc_core   mms114

我怎样才能解决这个问题或者至少缩小范围?

答案1

尝试mount这样做还为时过早。此消息表明检测到硬件:

[  629.830776] sd 4:0:0:2: [sde] Attached SCSI removable disk

但是除非设备上有可挂载的文件系统,否则您无法挂载该设备。使用lsblkblkid查看系统是否可以识别 SD 设备。

以下是输出的样子以供参考:

LSBLK
$ lsblk
NAME             MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                8:0    0 39.1G  0 disk
├─sda1             8:1    0  512M  0 part /boot
├─sda2             8:2    0  500M  0 part
└─sda3             8:3    0 38.1G  0 part
  ├─vg00-lv_root 253:0    0 36.1G  0 lvm  /
  └─vg00-lv_swap 253:1    0    2G  0 lvm  [SWAP]
黑子
$ blkid
/dev/sda1: UUID="0cae38ac-44ea-4a16-9157-a8cbbf50e91b" TYPE="ext4"
/dev/sda2: UUID="013c42ea-aa00-4713-926a-aca57c0bd552" TYPE="xfs"
/dev/sda3: UUID="sgVDOh-NI7x-l4sY-9fJv-uAlW-WfYY-YBoPBQ" TYPE="LVM2_member"
/dev/mapper/vg00-lv_root: UUID="fa4accee-2965-4bc6-85aa-3ed4d0d2ae86" TYPE="ext4"
/dev/mapper/vg00-lv_swap: UUID="998f50cb-a693-411c-aca3-33824ea5a204" TYPE="swap"

最后建议您可以尝试安装/重新安装udisks2.这在标题为 AU Q&A 中进行了描述:Ubuntu 16.04 未检测到 sd 读卡器,但我过去在 Fedora/CentOS 上也遇到过这个问题。

$ sudo yum reinstall udisks2

-or-

$ sudo dnf reinstall udisks2

答案2

总而言之两个都我测试过的读卡器有故障。不过,请参考这个答案如果您可以消除与硬件相关的问题。

答案3

安装指南 1) 从以下位置下载最新的 rpmfusion-free-release-stable rpm http://download1.rpmfusion.org/free/fedora/

2)安装rpmfusion-free-release-stable rpm:

rpm -Uvh rpmfusion-free-release-stable*rpm

3)安装fuse-exfat rpm包:

dnf安装fuse-exfat

https://fedora.pkgs.org/29/rpmfusion-free-x86_64/fuse-exfat-1.3.0-1.fc29.x86_64.rpm.html

[michaelmeyer@localhost ~]$ rpm -Uvh rpmfusion-free-release-stable.noarch.rpm 错误:打开 rpmfusion-free-release-stable.noarch.rpm 失败:没有这样的文件或目录

[michaelmeyer@localhost ~]$ sudo dnf install fusion-exfat

[sudo] michaelmeyer 的密码:Fedora Modular 30 - x86_64 43 kB/s | 19 kB 00:00
Fedora 模块化 30 - x86_64 - 更新速度 40 kB/s | 15 kB 00:00
Fedora 30 - x86_64 - 更新 36 kB/s | 14 kB 00:00
Fedora 30 - x86_64 95 kB/秒 | 19 kB 00:00
谷歌浏览器测试版 16 kB/s | 1.3 kB 00:00
谷歌浏览器 20 kB/s | 1.3 kB 00:00
RPM Fusion for Fedora 30 - 免费 - 更新 670 kB/s |
Fedora 30 的375 kB 00:00 RPM Fusion - 免费 725 kB/s | 735 kB 00:01

依赖关系已解决。

包架构版本存储库大小

安装:fuse-exfat x86_64 1.3.0-2.fc30 rpmfusion-free 43 k

交易概要

安装 1 个软件包

总下载大小:43 k 安装大小:103 k 这样可以吗 [y/N]:y 正在下载软件包:

保险丝-exfat-1.3.0-2.fc30.x86_64.rpm 213 kB/s | 43 KB 00:00

总计 127 kB/s | 43 kB 00:00
警告:/var/cache/dnf/rpmfusion-free-529fb32abebfafff/packages/fuse-exfat-1.3.0-2.fc30.x86_64.rpm:标头 V3 RSA/SHA1 签名,密钥 ID c0aeda6e:NOKEY Fedora 30 的 RPM Fusion - 免费 1.6 MB/s | 1.7 kB 00:00
导入 GPG 密钥 0xC0AEDA6E:用户 ID:“Fedora 的 RPM Fusion 免费存储库 (30)” 指纹:80C3 B2C6 E727 F3E0 92B4 73E0 3DF2 CE43 C0AE DA6E 来自:/etc/pki/rpm-gpg/RPM-GPG- KEY-rpmfusion-free-fedora-30 可以吗 [y/N]: y 密钥导入成功 运行事务检查 事务检查成功。运行事务测试 事务测试成功。运行事务 准备:1/1 安装:fuse-exfat-1.3.0-2.fc30.x86_64 1/1 运行 scriptlet:fuse-exfat-1.3.0-2.fc30.x86_64 1/1 验证:fuse-exfat- 1.3.0-2.fc30.x86_64 1/1

安装:fuse-exfat-1.3.0-2.fc30.x86_64

完全的! [michaelmeyer@localhost ~]$

相关内容