Ubuntu

Ubuntu 14.04.1、14.10 基本發行版需要 30 分鐘以上才能進入啟動畫面

  • May 14, 2016

更新:我找到了一個臨時的解決方法,但我仍然想找到一個更永久的解決方案。

解決方法:

  • 我在卸下筆記型電腦電池的情況下開始啟動過程。如果我這樣做,它會在正常的時間內啟動到加密密碼提示(我不是指使用者登錄螢幕)——大約 5 秒(相對於 30 分鐘以上)。
  • 接下來,我必須在輸入加密密碼解鎖分區之前重新連接電池,否則它將無法啟動其餘的方式。(它將進入命令提示符,我將不得不重新啟動。)

因此,目前,除了每次啟動筆記型電腦時都必須忍受上述情況之外,它工作得很好。

我的筆記型電腦大約有 6-7 年的歷史,電池也是如此。電池僅可容納大約 2% 的“充滿電”。那麼,也許電池在初始啟動過程中導致錯誤?


Update2: 我能找到的唯一與這個問題有關的是這個論壇主題: http ://www.tomsguide.com/forum/49975-35-typing-keyboard-slow

使用者正在執行 windows,但它仍然非常相似。在使用 Linux 的作業系統中,壞電池的表現似乎有所不同。


原帖:

我將非常冗長並提供我所知道的所有資訊,如果我需要提供其他任何資訊,請告訴我。

過去兩天我一直在Google上搜尋,但我找不到任何與此類問題完全相同的幫助論壇文章,更不用說補救措施了。


症狀/問題:

  • 引導過程將需要正常的時間才能進入 grub 菜單。
  • 然後,一旦選擇了 Linux 發行版(任何發行版,請參閱下面我嘗試過的所有發行版的文本),它會載入一個黑屏,除了閃爍的下劃線游標外,它是空白的。
  • 它在上面的螢幕上停留了 30 多分鐘,完全沒有變化。在這個螢幕上,任何時候都不會列印任何資訊。
  • 接下來,它突然顯示發行版啟動畫面,從這一點開始,一切都正常執行。

簡短的硬體描述:

  • 底部提供更詳細的資訊
  • 網關筆記型電腦
  • M系列
  • 型號:M-7327u
  • 處理器:英特爾奔騰
  • 記憶體:3GB
  • 1 個硬碟 250 GB

發行版:

都顯示相同的啟動問題

  • 我嘗試從 USB 啟動到實時會話的發行版:
  • 魯邦圖 14.04.1 amd64
  • xubuntu 14.04.1 amd64
  • ubuntu 伴侶 14.04.1 amd64
  • ubuntu 伴侶 14.10 amd64
  • Linux Mint 17.1 amd64
  • Elementary OS Luna amd64 - 我用來設置原始(預發行)安裝的相同版本/iso
  • Gparted - 現場直播
  • 我安裝的發行版(全部 64 位):
  • ubuntu 伴侶 14.04.1
  • Linux Mint 17.1

歷史(問題開始之前):

我安裝了 Windows 7 和 Elementary OS Luna Duel。在過去的 3 個月裡,這一切都很好。我決定刪除 Windows 並從基本作業系統切換到更易於定制的發行版。

此外,在我安裝新發行版的前幾天,elementary 在暫停後開始需要很長時間才能恢復。雖然我沒有任何問題啟動。啟動大約需要 1 分鐘或更短的時間。


到目前為止我嘗試過的 - 事件序列:

注意:每次我嘗試從此時啟動到 linux 發行版時,啟動都會顯示上述症狀。

  1. 首先,我嘗試在側窗 7 上安裝 ubuntu-mate 14.04.1。啟動到實時會話大約需要 30 分鐘,但我還是安裝了。安裝按預期進行,並且在正常時間。引導到新安裝需要 30 多分鐘。我嘗試重新啟動以查看這是否只是初始啟動的問題,不。第二次啟動也花了 30 多分鐘。
  2. 接下來,我從這個論壇(http://bit.ly/1yhcSEM)嘗試了這些技巧,但都沒有幫助:
  • 移除所有 USB 設備
  • 在 BIOS 中禁用 USB 遺留(我沒有嘗試更新我的 BIOS,考慮到目前版本與原始基本安裝配合得很好,我認為不值得冒險。)
  1. 接下來,我嘗試啟動以下發行版的實時會話,都顯示相同的啟動問題:我嘗試的發行版(全部 64 位)從 USB 啟動到實時會話:
  • 魯邦圖 14.04.1
  • 會員 14.04.1
  • ubuntu 伴侶 14.04.1
  • Ubuntu 伴侶 14.10
  • Linux Mint 17.1
  • Elementary OS Luna - 我用來設置原始(預發行)安裝的相同版本/iso。
  1. 接下來,我想我會完全從頭開始,所以,從現場會話(從 USB 啟動)我用以下命令將硬碟歸零:
$ sudo dd if=/dev/zero of=/dev/sda bs=512

然後使用 gparted 我給了它一個新的 msdos 分區表(預設) 5. 接下來,我通過從 USB 引導的實時會話安裝了 Linux Mint 17.1。實時會話有同樣的啟動問題,耗時 30 多分鐘。

安裝過程很順利,花費了正常的時間。不到30分鐘。重新啟動後,重新啟動到新安裝時顯示相同的問題。我嘗試重新啟動,這次在 bios 菜單中關閉了 USB legacy。同樣的啟動問題。 6. 接下來,我從 USB 啟動 gparted live os。起初它正常啟動,並且在合理的時間內啟動,但是在設置了初始設置(鍵盤資訊、語言等)之後,當它實際啟動到作業系統時,它也遇到了同樣的問題。

在現場執行 gparted 時,我嘗試了以下操作:

從終端我嘗試在所有分區上使用 fsck $ sudo fsck /dev/sda 但它似乎沒有做任何事情。它給出了以下輸出:來自 util-linux 2.25.1 的 fsck

7-接下來,我嘗試使用引導圖。最終導致 bootchart gui 生成圖像的數據過多。其中一個日誌文件是 68MB。如果有人可以推荐一種我可以共享 bootchart tarball 或解壓縮文本文件的方法,我會分享它們。但是,它們太大了,我無法想像有人會想看透它們。


擴展資訊:

$ head -n1 /etc/issue

Linux Mint 17.1 Rebecca \n \l

$ df -h

Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/mint--vg-root  226G  4.6G  210G   3% /
none                       4.0K     0  4.0K   0% /sys/fs/cgroup
udev                       1.5G  4.0K  1.5G   1% /dev
tmpfs                      294M  1.3M  293M   1% /run
none                       5.0M     0  5.0M   0% /run/lock
none                       1.5G  740K  1.5G   1% /run/shm
none                       100M   16K  100M   1% /run/user
/dev/sda1                  236M   46M  178M  21% /boot
/home/username/.Private    226G  4.6G  210G   3% /home/username

$ hwinfo

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 15
Stepping:              13
CPU MHz:               1000.000
BogoMIPS:              4322.50
L1d cache:             32K
L1i cache:             32K
L2 cache:              1024Kremidy
NUMA node0 CPU(s):     0,1

$ lsusb -tv

/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
   |__ Port 3: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
   |__ Port 3: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M

$ lspci -tv

-[0000:00]-+-00.0  Intel Corporation Mobile 4 Series Chipset Memory Controller Hub
          +-02.0  Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
          +-02.1  Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
          +-1a.0  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4
          +-1a.1  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5
          +-1a.2  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6
          +-1a.7  Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2
          +-1b.0  Intel Corporation 82801I (ICH9 Family) HD Audio Controller
          +-1c.0-[02-03]----00.0  Qualcomm Atheros AR928X Wireless Network Adapter (PCI-Express)
          +-1c.2-[04-05]--
          +-1c.5-[06]----00.0  Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller
          +-1d.0  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1
          +-1d.1  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2
          +-1d.2  Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3
          +-1d.7  Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1
          +-1e.0-[07]--+-09.0  O2 Micro, Inc. Integrated MS/xD Controller
          |            \-09.2  O2 Micro, Inc. Integrated MMC/SD Controller
          +-1f.0  Intel Corporation ICH9M LPC Interface Controller
          +-1f.2  Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode]
          \-1f.3  Intel Corporation 82801I (ICH9 Family) SMBus Controller

$ sudo fdisk -l 

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x0005ffe2

  Device Boot      Start      phoenix securecore se   End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   488396799   243947521    5  Extended
/dev/sda5          501760   488396799   243947520   83  Linux

Disk /dev/mapper/sdb5_crypt: 249.8 GB, 249800163328 bytes
255 heads, 63 sectors/track, 30369 cylinders, total 487890944 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: 0x00000000

Disk /dev/mapper/sdb5_crypt doesn't contain a valid partition table

Disk /dev/mapper/mint--vg-root: 246.6 GB, 246646046720 bytes
255 heads, 63 sectors/track, 29986 cylinders, total 481730560 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: 0x00000000

Disk /dev/mapper/mint--vg-root doesn't contain a valid partition table

Disk /dev/mapper/mint--vg-swap_1: 3149 MB, 3149922304 bytes
255 heads, 63 sectors/track, 382 cylinders, total 6152192 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: 0x00000000

Disk /dev/mapper/mint--vg-swap_1 doesn't contain a valid partition table

$ sudo smartctl -a /dev/sda

smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-37-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Travelstar 5K320
Device Model:     Hitachi HTS543225L9A300
Serial Number:    090106FB2D06LJCBBH8C
LU WWN Device Id: 5 000cca 565c52b39
Firmware Version: FBEOC40C
User Capacity:    250,059,350,016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 3f
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Thu Dec  4 03:29:55 2014 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                   was never started.
                   Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                   without error or no self-test has ever 
                   been run.
Total time to complete Offline 
data collection:        (  645) seconds.
Offline data collection
capabilities:            (0x5b) SMART execute Offline immediate.
                   Auto Offline data collection on/off support.
                   Suspend Offline collection upon new
                   command.
                   Offline surface scan supported.
                   Self-test supported.
                   No Conveyance Self-test supported.
                   Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                   power-saving mode.
                   Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                   General Purpose Logging supported.
Short self-test routine 
recommended polling time:    (   2) minutes.
Extended self-test routine
recommended polling time:    ( 102) minutes.
SCT capabilities:          (0x003d) SCT Status supported.
                   SCT Error Recovery Control supported.
                   SCT Feature Control supported.
                   SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
 2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
 3 Spin_Up_Time            0x0007   253   253   033    Pre-fail  Always       -       0
 4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       2508
 5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
 7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
 8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
 9 Power_On_Hours          0x0012   081   081   000    Old_age   Always       -       8368
10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       2505
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       33
193 Load_Cycle_Count        0x0012   091   091   000    Old_age   Always       -       91605
194 Temperature_Celsius     0x0002   166   166   000    Old_age   Always       -       33 (Min/Max 7/50)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 4
   CR = Command Register [HEX]
   FR = Features Register [HEX]
   SC = Sector Count Register [HEX]
   SN = Sector Number Register [HEX]
   CL = Cylinder Low Register [HEX]
   CH = Cylinder High Register [HEX]
   DH = Device/Head Register [HEX]
   DC = Device Command Register [HEX]
   ER = Error register [HEX]
   ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 4 occurred at disk power-on lifetime: 3 hours (0 days + 3 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 10 51 01 41 84 1c e0  Error: IDNF at LBA = 0x001c8441 = 1868865

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 24 03 01 41 84 1c e0 00      00:06:44.400  READ SECTOR(S) EXT
 25 03 01 41 84 1c e0 00      00:06:44.000  READ DMA EXT
 ef 03 46 ff ff 00 e0 00      00:01:01.200  SET FEATURES [Set transfer mode]
 ef 03 0c ff ff 00 e0 00      00:01:01.200  SET FEATURES [Set transfer mode]
 c6 ff 10 ff ff 00 e0 00      00:01:01.200  SET MULTIPLE MODE

Error 3 occurred at disk power-on lifetime: 3 hours (0 days + 3 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 10 51 01 41 84 1c e0  Error: IDNF 1 sectors at LBA = 0x001c8441 = 1868865

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 25 03 01 41 84 1c e0 00      00:06:44.000  READ DMA EXT
 ef 03 46 ff ff 00 e0 00      00:01:01.200  SET FEATURES [Set transfer mode]
 ef 03 0c ff ff 00 e0 00      00:01:01.200  SET FEATURES [Set transfer mode]
 c6 ff 10 ff ff 00 e0 00      00:01:01.200  SET MULTIPLE MODE
 10 ff 50 2f e2 05 e0 00      00:01:01.100  RECALIBRATE [OBS-4]

Error 2 occurred at disk power-on lifetime: 3 hours (0 days + 3 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 10 51 01 41 84 1c e0  Error: IDNF at LBA = 0x001c8441 = 1868865

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 24 ff 01 41 84 1c e0 00      00:01:01.000  READ SECTOR(S) EXT
 25 ff 01 41 84 1c e0 00      00:01:00.900  READ DMA EXT
 25 ff 08 00 08 a0 e0 00      00:01:00.900  READ DMA EXT
 25 ff 08 28 34 37 e0 00      00:01:00.900  READ DMA EXT
 25 ff 51 d7 33 37 e0 00      00:01:00.800  READ DMA EXT

Error 1 occurred at disk power-on lifetime: 3 hours (0 days + 3 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 10 51 01 41 84 1c e0  Error: IDNF 1 sectors at LBA = 0x001c8441 = 1868865

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 25 ff 01 41 84 1c e0 00      00:01:00.900  READ DMA EXT
 25 ff 08 00 08 a0 e0 00      00:01:00.900  READ DMA EXT
 25 ff 08 28 34 37 e0 00      00:01:00.900  READ DMA EXT
 25 ff 51 d7 33 37 e0 00      00:01:00.800  READ DMA EXT
 25 ff 57 80 33 37 e0 00      00:01:00.800  READ DMA EXT

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
   1        0        0  Not_testing
   2        0        0  Not_testing
   3        0        0  Not_testing
   4        0        0  Not_testing
   5        0        0  Not_testing
Selective self-test flags (0x0):
 After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

根據實驗和一些資訊,我能夠收集到:如果您遇到上述症狀,並且您使用的舊筆記型電腦的電池接近耗盡,那麼基本上您的電池已經達到了對您的系統實際上有毒的程度。

我在 update1 中發布的解決方法可能對您有用。但是,如果你有硬幣,你應該繼續更換電池。或者,如果你真的很潮,就買一台新的筆記型電腦,用舊的筆記型電腦作為學習/測試伺服器,直到它最終死掉。

有關參考/文件,請參閱文章。

引用自:https://unix.stackexchange.com/questions/171395