PDA

View Full Version : USB problem after installing Fedora 18



alake
23rd February 2013, 11:32 AM
I have executed DBelton's advice: yum --releasever=18 --disableplugin=presto distro-sync

After upgrading from Fedora 17 to 18 using FedUp, I'm having USB problems:

My USB keyboard and mouse work, but only if I use the hardware in place at the time of upgrading. My wife want's her keyboard back.

My machine cannot see either my external hard drive or my thumb drive. I executed "tail /var/log/messages" both before and after plugging in my external hard drive. There are no differences in the listings.

I have no /run/media directory, but am not sure whether I need one.

Where can I go from here? Thanks for your help.

glennzo
23rd February 2013, 12:05 PM
Maybe a silly question, but have you tried all of the hardware in different USB ports? I seem to think that I may be experiencing USB issues only with the front ports. It seems that only one of the 2 ports actually works properly. The rear ports don't seem to be problematic at all, at least not that I've noticed.

Currently, I have a USB keyboard and a wireless USB mouse plugged into the rear ports. These work without issue. Any hardware plugged into one of the front ports *might* work. If I plug the same hardware into the other front port it will *probably* work.

alake
23rd February 2013, 12:29 PM
Yes, I have tried all of my hardware (including my video camera) on all of my USB ports. None of them indicate that they are "seeing" anything.

In looking for a connection, I have been looking in /media, /mnt and /run. Where else may I look? Under Fedora 17, when I plugged something into a USB port, I got a pop-up window...

glennzo
23rd February 2013, 01:09 PM
I'm not sure what you can do. I started a thread here (http://forums.fedoraforum.org/showthread.php?t=288681) about a new digital camera that I got my wife for Christmas. The only access I have to the photos on the camera, it seems, is through something like Shotwell. I'm a command line guy so I was looking for access to the photos from the command line. Apparently the path is well hidden and complex to access, so it won't be easy ...

Like you, under Fedora 17 I got a notification when a device ws plugged in. That doesn't happen with Fedora 18.

Do you boot more than one OS? Does the mouse and keyboard behave under that/those OS's?

george_toolan
23rd February 2013, 01:20 PM
tail -f /var/log/messages

Now press the enter key a couple of times and plug in your usb device. No new messages?

Is the usb module loaded? Try to load it manually.


modprobe usb_storage

df -m will tell you where file systems are mounted.

Try to change the usb legacy support in your BIOS setup and see if it makes a difference.

_christian_
23rd February 2013, 01:24 PM
I've got a similar issue on one commuter. Like alake I did update with yum from F17 to F18. I've got a few other F18. Tay don't show this behaviour. But I couldn't find the difference so fare. But It's the only installation how was updated from F17. On the same computer is still a bootable F16 installation. There everything works fine.

The hardware: HP Compaq 8000 Elite SFF,
F16 and 18 are 64Bit.

An USB stick is shown in KDE after plug in. It it try to mount it in dolphin. This error message is shown:

An error occurred while accessing 'USB32GB', the system responded: The requested operation has failed: Error mounting /dev/sdb1 at /run/media/cris/USB32GB: Command-line `mount -t "vfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,sho rtname=mixed,dmask=0077,utf8=1,showexec,flush,flus h" "/dev/sdb1" "/run/media/cris/USB32GB"' exited with non-zero exit status 32: mount: /dev/sdb1 is already mounted or /run/media/cris/USB32GB busy

This Message is ********, as you will see.At the same time at tty:

[cris@ws.che.e056 ~]$ su -
Password:

[root@ws.che.e056 ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=1953656k,nr_inodes=488414 ,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620 ,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
/dev/sda11 on / type ext4 (rw,relatime,seclabel,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,m axproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
[root@ws.che.e056 ~]# blkid
/dev/sr0: UUID="2013-02-23-10-58-59-00" LABEL="slideshow" TYPE="iso9660"
/dev/sda1: LABEL="daten_lokal_ext" UUID="cb25d577-3374-45d2-8ff0-7446381e9c73" TYPE="ext4"
/dev/sda2: LABEL="kubuntu" UUID="af6ef6a5-93f2-49de-b6b7-93f828ee04d3" SEC_TYPE="ext2" TYPE="ext3" PTTYPE="dos"
/dev/sda5: LABEL="lehr" UUID="66a6f81f-d276-4004-b460-407e938293fd" TYPE="ext4"
/dev/sda6: LABEL="_SL-60-x86_64-Li" UUID="273f547c-3f2d-4990-a3cc-8591330ceae5" TYPE="ext4" PTTYPE="dos"
/dev/sda7: LABEL="fedora15" UUID="d0ebe09c-c2ba-4d1a-b5d2-3d9563109182" TYPE="ext4" PTTYPE="dos"
/dev/sda8: LABEL="_Fedora-16-x86_6" UUID="7353354f-8f7e-47c2-9245-e6aca1a6c6ed" TYPE="ext4" PTTYPE="dos"
/dev/sda9: LABEL="ntfs_exchange" UUID="124CCC014CCBDD9B" TYPE="ntfs"
/dev/sda11: LABEL="fedoa18" UUID="ce045b95-4344-465c-86aa-739eb5281285" TYPE="ext4" PTTYPE="dos"
/dev/sdb1: LABEL="USB32GB" UUID="F071-1C91" TYPE="vfat"
/dev/mapper/mpathh: PTTYPE="dos"
/dev/mapper/mpathhp1: LABEL="" UUID="F071-1C91" TYPE="vfat"
[root@ws.che.e056 ~]# mount /dev/mapper/mpathhp1 /mnt/floppy/
[root@ws.che.e056 ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=1953656k,nr_inodes=488414 ,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620 ,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
/dev/sda11 on / type ext4 (rw,relatime,seclabel,data=ordered)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=300,minproto=5,m axproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,seclabel)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mapper/mpathhp1 on /mnt/floppy type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437, iocharset=ascii,shortname=mixed,errors=remount-ro)
[root@ws.che.e056 ~]# cd /mnt/floppy/
[root@ws.che.e056 floppy]# dir
total 483M
-rwxr-xr-x. 1 root root 3.0K Feb 18 2012 all.packages686.list
-rwxr-xr-x. 1 root root 48K Feb 17 2012 all.packages.list
-rwxr-xr-x. 1 root root 2.8K Apr 9 2011 bashrc
-rwxr-xr-x. 1 root root 1.1K Feb 17 2012 del.list
drwxr-xr-x. 2 root root 160K Jan 27 2012 fonts
-rwxr-xr-x. 1 root root 1.6K Feb 18 2012 install686.list
drwxr-xr-x. 2 root root 32K Jan 27 2012 pingu
drwxr-xr-x. 2 root root 32K Feb 17 2012 sl6.0
-rwxr-xr-x. 1 root root 482M Feb 16 2012 SL-62-x86_64-2012-02-16-LiveMiniCD.iso
drwxr-xr-x. 25 root root 32K Feb 18 2012 cris
drwxr-xr-x. 2 root root 160K Jan 3 2012 ttf
[root@ws.che.e056 floppy]# umount /mnt/floppy/
[root@ws.che.e056 floppy]# cd /
[root@ws.che.e056 /]# umount /mnt/floppy/
[root@ws.che.e056 /]# Manual mounting seams to work.
It could be a problem of udev, because the device isn't mapped to /dev/sdb1. The other F18 systems does do that.

This was the less confusing case. The much more confusing case, I gonna post soon.

_christian_
23rd February 2013, 01:39 PM
By the way: see attached file.

_christian_
23rd February 2013, 01:52 PM
Now the really confusing case:
I connect a large external usb-disk. It keeps tow partitions. It doesn't look up in KDE at all. It tried to find the device with blkid:

[root@ws.che.e056 ~]# blkid
/dev/sda1: LABEL="daten_lokal_ext" UUID="cb25d577-3374-45d2-8ff0-7446381e9c73" TYPE="ext4"
/dev/sda2: LABEL="kubuntu" UUID="af6ef6a5-93f2-49de-b6b7-93f828ee04d3" SEC_TYPE="ext2" TYPE="ext3" PTTYPE="dos"
/dev/sda5: LABEL="lehr" UUID="66a6f81f-d276-4004-b460-407e938293fd" TYPE="ext4"
/dev/sda6: LABEL="_SL-60-x86_64-Li" UUID="273f547c-3f2d-4990-a3cc-8591330ceae5" TYPE="ext4" PTTYPE="dos"
/dev/sda7: LABEL="fedora15" UUID="d0ebe09c-c2ba-4d1a-b5d2-3d9563109182" TYPE="ext4" PTTYPE="dos"
/dev/sda8: LABEL="_Fedora-16-x86_6" UUID="7353354f-8f7e-47c2-9245-e6aca1a6c6ed" TYPE="ext4" PTTYPE="dos"
/dev/sda9: LABEL="ntfs_exchange" UUID="124CCC014CCBDD9B" TYPE="ntfs"
/dev/sda11: LABEL="fedoa18" UUID="ce045b95-4344-465c-86aa-739eb5281285" TYPE="ext4" PTTYPE="dos"
/dev/mapper/mpathd: PTTYPE="dos"
/dev/sdb: PTTYPE="dos"
Only the disk does look up. But there seams to be no partitions? It looks linke, blkid cant see the partitions. The disk does look up at /dev/sdb and /dev/mapper/mpathd.

The old school way is to use fdisk:

[root@ws.che.e056 ~]# fdisk -l

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000262f1

Device Boot Start End Blocks Id System
/dev/sda1 * 63 307194929 153597433+ 83 Linux
/dev/sda2 307195904 346257407 19530752 83 Linux
/dev/sda3 346257408 3907028991 1780385792 f W95 Ext'd (LBA)
/dev/sda5 346259456 388210687 20975616 83 Linux
/dev/sda6 388212736 429172735 20480000 83 Linux
/dev/sda7 429174784 470134783 20480000 83 Linux
/dev/sda8 470136832 511096831 20480000 83 Linux
/dev/sda9 511098880 552058879 20480000 7 HPFS/NTFS/exFAT
/dev/sda10 552060928 583518207 15728640 82 Linux swap / Solaris
/dev/sda11 583520256 624480255 20480000 83 Linux

Disk /dev/sdb: 3000.6 GB, 3000590401536 bytes, 732566016 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000346cb

Device Boot Start End Blocks Id System
/dev/sdb1 256 26214655 104857600 c W95 FAT32 (LBA)
/dev/sdb2 26214656 732566015 2825405440 83 Linux

Disk /dev/mapper/mpathd: 3000.6 GB, 3000590401536 bytes, 732566016 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000346cb

Device Boot Start End Blocks Id System
/dev/mapper/mpathd1 256 26214655 104857600 c W95 FAT32 (LBA)
/dev/mapper/mpathd2 26214656 732566015 2825405440 83 Linux

Disk /dev/mapper/mpathdp1: 13.4 GB, 13421772800 bytes, 3276800 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/mpathdp2: 361.7 GB, 361651896320 bytes, 88293920 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Now it can see the partitions as it should be. But why thy are mapped to /dev/mapper/mpathdp* ???

I can't mount non of this devices:

[root@ws.che.e056 ~]# mount /dev/mapper/mpathd2 /mnt/floppy/
mount: special device /dev/mapper/mpathd2 does not exist
[root@ws.che.e056 ~]# mount /dev/sdb2 /mnt/floppy/
mount: special device /dev/sdb2 does not exist
[root@ws.che.e056 ~]#


Any idea?

alake
23rd February 2013, 05:12 PM
I have a number of responses. I'll answer and comment:

I am running only one OS, Fedora 18.

I executed "modprobe usb-storage". /var/log/messages gave me the additional lines
Feb 23 17:46:50 erie kernel: [16540.818830] Initializing USB Mass Storage driver...
Feb 23 17:46:50 erie kernel: [16540.818865] usbcore: registered new interface driver usb-storage
Feb 23 17:46:50 erie kernel: [16540.818868] USB Mass Storage support registered.
df -m gave me
Filesystem 1M-blocks Used Available Use% Mounted on
devtmpfs 1633 0 1633 0% /dev
tmpfs 1642 1 1642 1% /dev/shm
tmpfs 1642 4 1639 1% /run
tmpfs 1642 0 1642 0% /sys/fs/cgroup
/dev/sda2 595181 394999 194137 68% /
tmpfs 1642 1 1642 1% /tmp
/dev/sda1 485 95 366 21% /boot
I see nothing there that indicates that USB is seen at all.
fdisk -l sees only this:
[root@erie ~]# fdisk -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe64775e8

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 1239386111 619180032 83 Linux
/dev/sda4 1239386112 1250263039 5438464 5 Extended
/dev/sda5 1239388160 1250263039 5437440 82 Linux swap / Solaris
There is no indication of a /dev/sdb at all

The things posted that I haven't commented on are things that I don't understand at all.
After I post this, I'll reboot and check out the USB legacy support in the BIOS. I'll comment if I see anything.