无法访问USB记忆棒,并且系统在关机时挂起:与旧硬件有关?


13

请注意帖子末尾的三个更新

原始问题

我使用该forcepae选件在旧版Acer Travelmate 4500上安装了Lubuntu 14.04.1,并根据/ubuntu//a/515909/288322调整了upowerd.py 。在运行更新管理器直到据说系统是最新的之后,我遇到两个问题:无法访问USB记忆棒,并且笔记本计算机在关机期间挂起。

该问题可能以某种方式与更新包“ common library libudev”“ / dev / and hotplug background process”有关:我一次选择了一个更新;当选择“公共库libudev”作为倒数第二个(我想选择“ / dev /和hotplug后台进程”作为倒数第二个)时,状态栏将显示更新Setting up udev (204-5ubuntu20.5)。它说在此之前的几行Adding diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev';这可能也很有趣。除此之外,通常是准备拆包,拆包,处理和设置“ libudev1:i386(204-5ubuntu20.5)”。我不得不杀死更新管理器,然后重新启动笔记本电脑。

现在,即重新开机后,我可以访问USB记忆棒和系统关机工作优秀(显示All processes ended within 1 seconds...,有关NetworkManager的消息[471],Deactivating swap并且Will now halt然后,关闭。到目前为止好,但无线不工作;没有eth1列出iwconfig。我重新启动,但是按描述继续运行(USB完美,关机完美,无无线)。在那个阶段,我在问题/ubuntu//中发布了描述。q / 521402/288322(即使我关闭了这个问题,也许这种描述可能会有所帮助。)

然后,我再次打开更新管理器,它会自动运行一些任务并显示消息,表明系统现在是最新的。没有更多可用的更新,即我尚未选择安装的“ / dev /和hotplug后台进程”必须已自动安装。USB和关机有效,无线无效。

然后,重新启动后,情况发生了变化:现在,我...

  • ...无法访问任何USB记忆棒;
  • ...系统挂起,Killing all remaining processes ... [fail]在NetworkManager上显示消息,Will now halt但从未关闭;
  • ...无线eth1工作正常。

关于关机期间的挂起,我在一个关于Lubuntu的问题中描述了一个稍早的阶段(仍然有效,但细节可能有所更改):关机或重新启动均无效。

关于USB记忆棒,我读取了USB识别但不可用的信息?。在这里,类似信息:

luke@humboldt:~$ uname -a
Linux humboldt 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:01 UTC 2014 i686 i686 i686 GNU/Linux

输入任何USB设备之前:

luke@humboldt:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

输入两个USB设备(一个记忆棒和一个外部硬盘,它们在另一台计算机上都可以正常工作)后:

luke@humboldt:~$ lsusb
Bus 001 Device 005: ID 8644:800b  
Bus 001 Device 006: ID 1058:0910 Western Digital Technologies, Inc. MyBook Essential External HDD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

但是,在PCManFM中无法访问任何USB设备,也未在/ media / luke下列出。

在两个USB设备仍然连接的情况下,fdisk显示:

luke@humboldt:~$ sudo fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 Köpfe, 63 Sektoren/Spur, 9729 Zylinder, zusammen 156301488 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Festplattenidentifikation: 0x000e9d19

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *        2048    19533297     9765625   83  Linux
/dev/sda2        19533822   156301311    68383745    5  Erweiterte
/dev/sda5       153718784   156301311     1291264   82  Linux Swap / Solaris
/dev/sda6        19533824   153718783    67092480   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge

lsblk显示与已连接的USB设备相同的内容:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  74,5G  0 disk 
├─sda1   8:1    0   9,3G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0   1,2G  0 part [SWAP]
└─sda6   8:6    0    64G  0 part 
sr0     11:0    1  1024M  0 rom 

GParted也仅显示相同的四个分区。而且Disk Utility也不显示USB存储器。

dmesg 显示:

[ 1076.648283] usb 1-4: new high-speed USB device number 5 using ehci-pci
[ 1076.780965] usb 1-4: New USB device found, idVendor=8644, idProduct=800b
[ 1076.780978] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1076.780987] usb 1-4: Product: USB Flash Disk                
[ 1076.780996] usb 1-4: Manufacturer: General                       
[ 1076.781005] usb 1-4: SerialNumber: 00000000000010D7
[ 1080.492276] usb 1-3: new high-speed USB device number 6 using ehci-pci
[ 1080.625435] usb 1-3: New USB device found, idVendor=1058, idProduct=0910
[ 1080.625447] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1080.625457] usb 1-3: Product: External HDD    
[ 1080.625465] usb 1-3: Manufacturer: Western Digital 
[ 1080.625474] usb 1-3: SerialNumber: 5743414E5933333530363735

我重新启动了笔记本电脑几次。问题仍然存在。使用Lubuntu 14.04.1实时CD时,可以直接访问所有设备。

这个问题可能与udev有关吗?因为在第一次更新失败后重新启动与再次重新运行更新管理器之间重新启动之间,我可以访问USB设备以及正确关闭系统。但是,wifi / eth1丢失了。我将整个系统日志放在https://www.dropbox.com/sh/b1ghdxsq1x1v7wv/AAD05PcvzIY33SpbcsXoK0QKa?dl=0上,以防万一。我还添加了kern.log,易/ history.log,易/ term.log,安装/系统日志,安装/调试和输出lspci -nndemidecode

还有评论说内核可能无法正确映射到sd *,请参阅USB识别但不可用?

预先感谢您的提示!

更新1

偶然地,我发现打开笔记本电脑之前已经连接了一个USB记忆棒。

现在,lsusb显示:

Bus 001 Device 002: ID 8644:800b  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

和'fdisk -l`:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 Köpfe, 63 Sektoren/Spur, 9729 Zylinder, zusammen 156301488 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Festplattenidentifikation: 0x000e9d19

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *        2048    19533297     9765625   83  Linux
/dev/sda2        19533822   156301311    68383745    5  Erweiterte
/dev/sda5       153718784   156301311     1291264   82  Linux Swap / Solaris
/dev/sda6        19533824   153718783    67092480   83  Linux

Partitionstabelleneinträge sind nicht in Platten-Reihenfolge

Platte /dev/sdb: 2003 MByte, 2003828736 Byte
62 Köpfe, 62 Sektoren/Spur, 1018 Zylinder, zusammen 3913728 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Festplattenidentifikation: 0x00005b5c

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1              62     3913191     1956565    b  W95 FAT32

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  74,5G  0 disk 
├─sda1   8:1    0   9,3G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0   1,2G  0 part [SWAP]
└─sda6   8:6    0    64G  0 part 
sdb      8:16   1   1,9G  0 disk 
└─sdb1   8:17   1   1,9G  0 part /media/luke/9369-1C8B
sr0     11:0    1  1024M  0 rom  

最后dmesg | grep usb

[    0.099144] usbcore: registered new interface driver usbfs
[    0.099163] usbcore: registered new interface driver hub
[    0.099198] usbcore: registered new device driver usb
[    1.048135] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.048140] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.048144] usb usb1: Product: EHCI Host Controller
[    1.048148] usb usb1: Manufacturer: Linux 3.13.0-35-generic ehci_hcd
[    1.048151] usb usb1: SerialNumber: 0000:00:1d.7
[    1.048889] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.048894] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.048897] usb usb2: Product: UHCI Host Controller
[    1.048901] usb usb2: Manufacturer: Linux 3.13.0-35-generic uhci_hcd
[    1.048905] usb usb2: SerialNumber: 0000:00:1d.0
[    1.049437] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    1.049441] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.049445] usb usb3: Product: UHCI Host Controller
[    1.049448] usb usb3: Manufacturer: Linux 3.13.0-35-generic uhci_hcd
[    1.049452] usb usb3: SerialNumber: 0000:00:1d.1
[    1.049969] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    1.049973] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.049977] usb usb4: Product: UHCI Host Controller
[    1.049981] usb usb4: Manufacturer: Linux 3.13.0-35-generic uhci_hcd
[    1.049984] usb usb4: SerialNumber: 0000:00:1d.2
[    1.416097] usb 1-6: new high-speed USB device number 2 using ehci-pci
[    1.560837] usb 1-6: New USB device found, idVendor=8644, idProduct=800b
[    1.560842] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.560846] usb 1-6: Product: USB Flash Disk                
[    1.560850] usb 1-6: Manufacturer: General                       
[    1.560853] usb 1-6: SerialNumber: 00000000000010D7
[    1.662608] usb-storage 1-6:1.0: USB Mass Storage device detected
[    1.662848] scsi2 : usb-storage 1-6:1.0
[    1.663257] usbcore: registered new interface driver usb-storage

但是,一旦我移除了USB记忆棒(通过单击PCManFM中的卸载图标并拔出记忆棒)并再次插入,就无法再使用它了。PCManFM中的条目仍然存在,但是单击它时会显示Error mounting /dev/sdb1 at /media/luke/9369-1C8B: Command-line 'mount -t "vfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush" "/dev/sdb1" "/media/luke/9369-1C8B"' exited with non-zero exit status 32: mount: special device /dev/sdb1 does not exist

dmesg | grep usb以下新行中显示:

[  724.977853] usb 1-6: USB disconnect, device number 2
[  729.652276] usb 1-6: new high-speed USB device number 3 using ehci-pci
[  729.784976] usb 1-6: New USB device found, idVendor=8644, idProduct=800b
[  729.784988] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  729.784998] usb 1-6: Product: USB Flash Disk                
[  729.785007] usb 1-6: Manufacturer: General                       
[  729.785016] usb 1-6: SerialNumber: 00000000000010D7
[  729.785593] usb-storage 1-6:1.0: USB Mass Storage device detected
[  729.785733] scsi3 : usb-storage 1-6:1.0

的输出lsusbfdisk -l并且lsblk仍在寻找与上述相同的(在段更新)。

如果现在我连接第二个USB记忆棒(即已连接两个),则可以使用第一个记忆棒的菜单项在PCManFM中访问该USB记忆棒。如果我然后插入第三个(即三个已连接),则我将无法访问它,因为PCManFM中仍然只有一个条目(第一个)通向第二个USB记忆棒。

现在(即用三根棍棒)lsblk显示:

sda      8:0    0  74,5G  0 disk 
├─sda1   8:1    0   9,3G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0   1,2G  0 part [SWAP]
└─sda6   8:6    0    64G  0 part /media/luke/61314bd4-8148-493a-9812-38a73af8bb8
sdb      8:16   1 983,8M  0 disk 
└─sdb1   8:17   1 983,8M  0 part /media/luke/9369-1C8B
sdc      8:32   1   1,9G  0 disk 
└─sdc1   8:33   1   1,9G  0 part 
sdd      8:48   1   1,9G  0 disk 
└─sdd1   8:49   1   1,9G  0 part 
sr0     11:0    1  1024M  0 rom 

感谢您的提示和帮助!

更新2

现在,我安装了Debian 7(Wheezy),在那里我得到了一些其他/更多信息/错误消息,以解决同一问题。在正常启动期间,该消息

'udevd[384]: timeout: killing '/sbin/modprobe -b acpi:ACPI0002:' [466]'

出现了一百次

udevadm settle - timeout of 120 seconds reached, the event queue contains:
/sys/devices/LNSYSTM:00/LNXSYBUS:00/ONP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00 (719)
/sys/devices/LNSYSTM:00/LNXSYBUS:00/ONP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00/power_supply/sbs-charger (972)
/sys/devices/LNSYSTM:00/LNXSYBUS:00/ONP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00/power_supply/sbs-charger (973)
/sys/devices/LNSYSTM:00/LNXSYBUS:00/ONP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00/power_supply/BTA0 (1105)
/sys/devices/LNSYSTM:00/LNXSYBUS:00/ONP0A03:00/device:09/PNP0C09:00/ACPI0001:00/ACPI0002:00/power_supply/BTA0 (1106)

此后,应继续进行启动。

此外,/ var / log / syslog充满了以下条目

'udevd[384]: timeout: killing '/sbin/modprobe -b acpi:ACPI0002:' [466]' 

并且每次启动还包含一次

Sep 27 10:36:37 humboldt kernel: [  960.684082] INFO: task kworker/0:3:481 blocked for more than 120 seconds.
Sep 27 10:36:37 humboldt kernel: [  960.684093] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Sep 27 10:36:37 humboldt kernel: [  960.684102] kworker/0:3     D f31b9265     0   481      2 0x00000000
Sep 27 10:36:37 humboldt kernel: [  960.684115]  f72ce810 00000046 c101de72 f31b9265 00000002 f72ce810 f72c3f50 f72c3f3c
Sep 27 10:36:37 humboldt kernel: [  960.684133]  c1285024 c1284eec c116cbb8 f72c3f0c f5c70518 fffee575 f72ce810 c139cc6c
Sep 27 10:36:37 humboldt kernel: [  960.684150]  f5f6005c f5f60064 c139cc2c c101b544 f72ce810 f5c70500 f72c3f63 f7186a44
Sep 27 10:36:37 humboldt kernel: [  960.684167] Call Trace:
Sep 27 10:36:37 humboldt kernel: [  960.684185]  [<c101de72>] ? try_to_wake_up+0x78/0x80
Sep 27 10:36:37 humboldt kernel: [  960.684200]  [<c1285024>] ? __mutex_unlock_slowpath+0x18/0x19
Sep 27 10:36:37 humboldt kernel: [  960.684211]  [<c1284eec>] ? mutex_unlock+0x9/0xa
Sep 27 10:36:37 humboldt kernel: [  960.684225]  [<c116cbb8>] ? acpi_ec_transaction+0x1df/0x202
Sep 27 10:36:37 humboldt kernel: [  960.684236]  [<c101b544>] ? set_next_entity+0x29/0x51
Sep 27 10:36:37 humboldt kernel: [  960.684248]  [<c1284f8c>] ? __mutex_lock_common.isra.7+0x76/0xae
Sep 27 10:36:37 humboldt kernel: [  960.684260]  [<c1284f14>] ? mutex_lock+0x13/0x15
Sep 27 10:36:37 humboldt kernel: [  960.684289]  [<f80fe1fc>] ? smbus_alarm+0x4a/0xa4 [sbshc]
Sep 27 10:36:37 humboldt kernel: [  960.684309]  [<c116c5ae>] ? acpi_ec_run+0x13/0x32
Sep 27 10:36:37 humboldt kernel: [  960.684319]  [<c11685b7>] ? acpi_os_execute_deferred+0x1a/0x23
Sep 27 10:36:37 humboldt kernel: [  960.684333]  [<c10331db>] ? process_one_work+0x113/0x1eb
Sep 27 10:36:37 humboldt kernel: [  960.684344]  [<c1033b1a>] ? worker_thread+0xa3/0x11a
Sep 27 10:36:37 humboldt kernel: [  960.684355]  [<c1033a77>] ? manage_workers.isra.34+0x1a8/0x1a8
Sep 27 10:36:37 humboldt kernel: [  960.684365]  [<c1035fba>] ? kthread+0x62/0x67
Sep 27 10:36:37 humboldt kernel: [  960.684376]  [<c1035f58>] ? flush_kthread_worker+0x73/0x73
Sep 27 10:36:37 humboldt kernel: [  960.684389]  [<c1289ac6>] ? kernel_thread_helper+0x6/0xd

好消息是,所有这些错误按摩-以及启动和关机过程中造成的错误的延迟-可避免BE列入黑名单的内核模块“SBS”(添加sbs.blacklist=yes... quiet splash在GRUB)这是关系到智能电池系统中使用我的笔记本电脑。通过此调整,在Debian上一切正常

我希望,这可以帮助某人调整Lubuntu,使其也可以在其他旧笔记本电脑上工作。

谢谢!

更新3

现在,我使用该forcepae选项安装了Lubuntu 14.04.2 并根据/ubuntu//a/515909/288322调整upowerd.py 。好消息是,可以无问题地访问USB记忆棒

但是,关闭时问题仍然存在。它说:

wait-for-state stop/waiting
* Stopping rsync daemon rsync                                         [OK]
* Asking all remaining processes to terminate…                        [OK]
* Killing all remaining processes…                                    [fail]
nm-dispatcher.action: Caught signal 15, shutting down...
* Deactivating swap…                                                  [OK]
* Will now halt
[ 360.064265] INFO: task upowerd:1473 block for more than 120 seconds.
[ 360.064441]       Tainted: G S            3.16.0-34-generic #47"14.04.1-Ubuntu
[ 360.064620] "echo 0 > /proc/sys/kernel/hung_tasks_timeout_secs" disables this message.
[ 480.065143] INFO: task halt:2588 block for more than 120 seconds.
[ 480.065302]       Tainted: G S            3.16.0-34-generic #47"14.04.1-Ubuntu
[ 480.065481] "echo 0 > /proc/sys/kernel/hung_tasks_timeout_secs" disables this message.

这些消息然后一次又一次地重复。(是否将内核模块列入黑名单都没有区别sbs。)

感谢您的提示和帮助!



1
eth是以太网,不是无线,iwconfig应该显示无线设备而不是eth1的wlan0或wlan1等
mchid 2015年

输出显示您可以通过运行跳过120秒等待echo "0" | sudo tee /proc/sys/kernel/hung_task_timeout_secs
mchid 2015年

1
请注意,既然您的问题是在Debian 8而不是Ubuntu上,那么这个问题很可能是题外话。如果您说需要在Ubuntu / Lubuntu中修复此问题,请提交错误。
托马斯·沃德

1
我投票结束这个问题是因为离题,因为尽管它最初是关于Ubuntu的,但最终还是关于Debian的。它不太可能对将来的用户有所帮助,目前已成书面形式。
年长者怪杰

Answers:


1

由于您使用的是单核处理器,因此我相信您不应使用forcepae选项。

标准的Lubuntu安装使用非Pae内核,并且Pentimum M处理器支持pae,但是非Pae内核也是非SMP内核。在单个核心系统上拥有SMP内核会减慢您的速度,因此在此处出现“ Tainted:G S”错误时,在这里安装Lubuntu 14.04.1失败,upowered似乎挂起

G =所有模块均获得GPL许可(没什么大不了的)

S =发生在未经认证可安全运行多处理器的硬件上运行的SMP内核上

https://wiki.ubuntu.com/DebuggingKernelOops

如果没有多个处理器,则SMP内核中的其他代码只会使您慢下来

https://help.ubuntu.com/community/Kernel#SMP

最佳处理器上的pae内核的问题不是pae功能,这是一个事实,即单核处理器不应在SMP内核上运行。


感谢您的解释!据我了解,Lubuntu放弃了对非PAE处理器的支持。因此,我用forcepae选件安装了它。是否可以将Lubuntu与“非SMP选项”一起使用?
Rantanplan 2015年

@Rantanplan我相信非PAE 仍可用于Lubuntu,只是这样做forcepae,并使用i386或其他非基本AMD64选项。
mchid 2015年

根据 wiki.ubuntu.com/Lubuntu/AdvancedMethods#Processor_.28CPU.29看来,一个人需要拥有PAE。尝试不带forecepae选件的安装将产生错误消息:Kernel requires features not present on the CPU: PAE
Rantanplan

据:help.ubuntu.com/community/...安装非PAE的指令可以在这里找到:help.ubuntu.com/community/...
mchid
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.