原始问题

原始问题

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

原始问题

我在一台较旧的 Acer Travelmate 4500 上安装了 Lubuntu 14.04.1,使用了forcepae选项并根据以下内容调整了 upowerd.pyhttps://askubuntu.com/a/515909/288322运行更新管理器直到系统提示已更新后,我遇到了两个问题:无法访问 USB 记忆棒并且笔记本电脑在关机时挂起。

该问题可能与更新包有关“通用库 libudev”“/dev/ 和热插拔后台进程”:我一次选择一个更新;当选择“通用库 libudev”作为倒数第二个时(我想选择“/dev/ 和热插拔后台进程”作为最后一个),状态栏显示 时更新挂起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 完美,关机完美,没有无线)。在那个阶段,我在问题中发布了一个描述https://askubuntu.com/q/521402/288322(尽管我关闭了这个问题,但也许这个描述可能会有所帮助。)

然后,我再次打开更新管理器,它自动运行一些任务并显示系统现在已更新的消息。没有更多可用更新,也就是说,我尚未选择安装的“/dev/ 和热插拔后台进程”肯定已经自动安装了。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 也只显示相同的四个分区。而且磁盘实用程序不显示 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 live-CD 时,所有设备均可直接访问。

这个问题是否与udev?因为在第一次更新失败后重新启动和再次运行更新管理器之间,我可以访问 USB 设备并正确关闭系统。但是,wifi/eth1 丢失了。我把整个系统日志放在https://www.dropbox.com/sh/b1ghdxsq1x1v7wv/AAD05PcvzIY33SpbcsXoK0QKa?dl=0以防万一那可能会有所帮助。我还添加了 kern.log、apt/history.log、apt/term.log、installer/syslog、installer/debug 以及 的lspci -nn输出demidecode

还有一条评论说内核可能无法正确映射到 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 棒(即连接了两个),则可以使用第一个 USB 棒的菜单项在 PCManFM 中访问该 USB 棒。如果我现在插入第三个 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

好消息是,所有这些错误消息 - 以及启动和关闭期间错误造成的延迟 - 都可以通过列入黑名单来避免内核模块‘sbs’(在 Grub 中添加sbs.blacklist=yes... quiet splash与我的笔记本电脑中使用的智能电池系统有关。通过此调整,一切工作正常在 Debian 上。

我希望这可以帮助某人适应鲁本图为了使它也能在其他旧笔记本电脑上运行。

谢谢!

更新 3

现在,我使用该forcepae选项安装了 Lubuntu 14.04.2,并根据以下内容调整 upowerd.pyhttps://askubuntu.com/a/515909/288322。好消息是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

由于您使用的是单核处理器,我认为您不应该使用 forcepae 选项。

标准 Lubuntu 安装使用非 pae 内核,奔腾 M 处理器支持 pae,但是非 pae 内核也是非 SMP 内核。在单核系统上使用 SMP 内核会降低您的速度,因此您会在此处看到“Tainted: G S”错误安装 Lubuntu 14.04.1 失败,upowerd 似乎挂起

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

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

https://wiki.ubuntu.com/DebuggingKernelOops

如果你没有多个处理器,SMP 内核中的附加代码只会减慢你的速度

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

pentimu m 处理器上的 pae 内核的问题不在于 pae 功能,而在于单核处理器不应该在 SMP 内核上运行。

相关内容