Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-24-2014, 03:45 PM
|
#1
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
|
boot sometimes process gets stuck after loading initial ramdisk
My Laptop sometimes won't boot any linux distro. Let me try to summarize all information that seems relevant.
The Laptop (Asus N56V, see lscpi output at the end of this post) has an UEFI Bios without Secure Boot. I have several distros installed on it (Crunchbang 11, Aptosid, Mint 17, Slackware, openSUSE) and a Windows partition. I have a working UEFI Bootloader configuration from the Windows install (preinstalled) as well as for Aptosid and Crunchbang (installed by me).
The main boot loader I am using is the Crunchbang one, since Crunchbang is my main system. Im a using the grub-efi-amd64 package and grub recognizes all Linux distros just fine.
The same is true for the UEFI Bootloader installed from within the Aptosid System.
So far so good. No comes my problem. Sometimes, when I boot from the Crunchbang bootloader the screen will just go black after selecting the menu entry in the grub menu and stay like that forever. No booting. Strangely this is true for ALL distros in the grub menu. None of them will boot. The only thing I see before the screen goes black is a split second where it says "loading initial ramdisk". When this happens, it happens reproducibly. So resetting (either hard reset or Ctrl-alt-del) the computer a couple of times and trying different grub menu entries will always end up with the same result. However, when I try again the next day it might work again... or not.
If however I boot from the Aptosid UEFI boot loader ... no problem for any of the distros. Also the Windows boot loader will work fine.
After a failed boot attempt from the crunchbang boot loader and a subsequent boot from the aptosid boot loader into the crunchbang system there are no log files in /var/log from the previous (failed) attempt.
The only ideas I had to fix this where running
and, when that did not help
Code:
grub-install
update-grub
as root in Crunchbang. The second attempt fixed it yesterday, but the issue came back today.
I have no idea what else I could try to debug this, any help appreciated. I would really like to keep using the crunchbang bootloader as I don't want to have to boot into aptosid to run update-grub after every kernel update.
In case it's relevant see lscpi output below, do let me know if any information is missing.
Code:
root@asus-n56v:~$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 630M] (rev a1)
03:00.0 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
04:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 08)
|
|
|
06-25-2014, 04:47 PM
|
#2
|
Moderator
Registered: Mar 2008
Posts: 22,284
|
If you say it fails and then sometimes the next day it works then I'd suspect esd damage or some saved state in some or many gates.
Some device is being locked electronically.
Here is a test maybe. Remove battery and ac adapter, press power button a few times and then see if it boots.
|
|
1 members found this post helpful.
|
06-25-2014, 05:50 PM
|
#3
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
Hi Jefro, thanks for your answer.
Quote:
Originally Posted by jefro
If you say it fails and then sometimes the next day it works then I'd suspect esd damage or some saved state in some or many gates.
Some device is being locked electronically.
|
How would this fit together with the fact that the issue only occurs with the crunchbang bootloader, not the aptosid one?
Quote:
Originally Posted by jefro
Here is a test maybe. Remove battery and ac adapter, press power button a few times and then see if it boots.
|
Ok, will try that next time the issue occurs. (It did not today, after another grub-install I ran last night...)
|
|
|
06-26-2014, 10:10 AM
|
#4
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
is aptosid also using grub2?
compare their versions and config files, maybe you find the culprit.
generally "sometimes" is always hard to troubleshoot and people tend to shout hardware related.
apart from that, i know you'd like to know what's going on, but if it's not broken don't fix it, right? just use the aptosid bootloader. kernel updates aren't that frequent on debian stable (=crunchbang).
Last edited by ondoho; 06-26-2014 at 10:14 AM.
|
|
1 members found this post helpful.
|
06-26-2014, 03:51 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,284
|
I can't predict what gates can have a state held.
The fact that you can have it correct by waiting is the clue to esd.
|
|
1 members found this post helpful.
|
06-27-2014, 12:10 PM
|
#6
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
Quote:
Originally Posted by jefro
I can't predict what gates can have a state held.
The fact that you can have it correct by waiting is the clue to esd.
|
Ok, thanks for the additional info. Will report back next time when this occurs with the results of removing battery etc... For the moment it seems to behave itself. Apparently the second grub-install fixed something that the first did not...
|
|
|
06-30-2014, 02:25 PM
|
#7
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
Ok, so removing the battery and power cable and pressing the power button for a couple of times did not help. However, a grub-install and update-grub again fixed the issue immediately. Again the aptosid bootloader had no problems...
|
|
|
06-30-2014, 02:28 PM
|
#8
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
Quote:
Originally Posted by ondoho
is aptosid also using grub2?
compare their versions and config files, maybe you find the culprit.
generally "sometimes" is always hard to troubleshoot and people tend to shout hardware related.
apart from that, i know you'd like to know what's going on, but if it's not broken don't fix it, right? just use the aptosid bootloader. kernel updates aren't that frequent on debian stable (=crunchbang).
|
Hi ondoho, sorry for answering to your post late, I had overlooked it previously.
Good idea to compare grub versions / config files, I'll take a closer look.
Note I am using a self-compiled kernel on crunchbang and I recompile it for every patch, which is pretty often. So I definitely want to get the crunchbang bootloader working correctly again...
|
|
|
06-30-2014, 08:15 PM
|
#9
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by joe_2000
Note I am using a self-compiled kernel on crunchbang and I recompile it for every patch, which is pretty often. So I definitely want to get the crunchbang bootloader working correctly again...
|
it seems to me that editing a file on another partition is peanuts compared to compiling your own kernel...
|
|
|
07-01-2014, 02:14 PM
|
#10
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
Quote:
Originally Posted by ondoho
it seems to me that editing a file on another partition is peanuts compared to compiling your own kernel...
|
As far as I know I have to actually boot into the other system to update its grub loader. While that is certainly not difficult, it's still annoying to do.
In contrast, the kernel compilation process is fully automated by scripts I made for that purpose.
|
|
|
07-02-2014, 02:37 AM
|
#11
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by joe_2000
As far as I know I have to actually boot into the other system to update its grub loader.
|
not with grub.
as i said, you simply edit the grub.cfg on that partition.
and i guess that you have to do some check-up after the kernel compilation anyway, so...
but of course i can understand that you want to get that solved.
|
|
|
07-03-2014, 04:08 PM
|
#12
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
I am digging into the whole grub logic at the moment. The funny thing is that both grub installs are done with the same packages, and the created menu entries contain the same commands. So it seems to be something with the efi executable, not the grub.cfg. (which also fits with the finding that grub-install helped a couple of times)
Now, there is another reason why I can't stick with the Aptosid bootloader. I have another distro (Mint) on that laptop which isn't properly booted by the aptosid bootloader. It ends up in software rendering. The crunchbang bootloader boots it properly, if it boots at all. I use Mint for online TV, so I definitely need graphics working right in there.
I short, I really want to use the crunchbang bootloader.
Or, as an alternative, I might try to install yet another bootloader from within Mint. We'll see how that goes...
|
|
|
07-07-2014, 03:23 PM
|
#13
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
I found a solution to the first part of my problem. The update-grub command is just a shell script in /usr/sbin.
In Crunchbang I added a line that copies the resulting grub.cfg from /boot/grub/ to the same directory on the aptosid partition. Now the Aptosid grub menu is using the same config as the crunchbang one, and is updated when I run update-grub from within crunchbang.
Just to be on the safe side I also modified the update-grub script in the aptosid system to do nothing except writing a warning to stdout that it is disabled to protect the grub.cfg written by crunchbang.
So now I could use the Aptosid bootloader without ever having to boot Aptosid to update the menu after kernel updates.
The part I am still struggling with is that the Aptosid bootloader is unable to boot Mint properly. It only boots into recovery mode, with Hardware rendering not working. It doesn't even load the drivers to get the mouse working. I scanned the log files in /var/log for error messages but couldn't find anything. (Any ideas what I should look for appreciated).
One suspicion I have is that this might be an architecture issue. This is a 64bit machine, and the Mint install is a 32bit one. (I found some wine applications to be easier to get to work if you don't have to mess with multilib)
But then again the crunchbang boot loader doesn't have any issues with that.
I also tried installing an efi bootloader through the Mint install itself. I tried both packages gruf-efi-ia32 and grub-efi-amd64. The efi executable produced by the first one does nothing at all. When I select it in the efi menu nothing happens... The second (grub-efi-amd64) lets me boot Mint, but again only into recovery mode.
Very weird all this...
|
|
|
07-13-2014, 06:12 PM
|
#14
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by joe_2000
The part I am still struggling with is that the Aptosid bootloader is unable to boot Mint properly. It only boots into recovery mode, with Hardware rendering not working.
|
again i would guess that the solution lies within mint's own grub.cfg - it probably uses some kernel command line options that aptosid cannot reconstruct.
|
|
|
07-14-2014, 03:52 PM
|
#15
|
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,019
Original Poster
|
Quote:
Originally Posted by ondoho
again i would guess that the solution lies within mint's own grub.cfg - it probably uses some kernel command line options that aptosid cannot reconstruct.
|
The boot loader I installed from within Mint does not do it properly. The only one that does is the Crunchbang bootloader. And I copy pasted the grub.cfg it uses to the Aptosid /boot/grub/ directory. So it's identical:
Working Boot Option (Crunchbang Grub Config)
Code:
menuentry "Linux Mint 17 Cinnamon 32-bit, 3.13.0-24-generic (/dev/sda12) (on /dev/sda12)" --class gnu-linux --class gnu --class os {
insmod part_gpt
insmod ext2
set root='(hd0,gpt12)'
search --no-floppy --fs-uuid --set=root fed6cc73-77f6-43dc-bd18-cc4ae0f73102
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=fed6cc73-77f6-43dc-bd18-cc4ae0f73102 ro
initrd /boot/initrd.img-3.13.0-24-generic
}
Non-working Boot Option (Aptosid Grub Config)
Code:
menuentry "Linux Mint 17 Cinnamon 32-bit, 3.13.0-24-generic (/dev/sda12) (on /dev/sda12)" --class gnu-linux --class gnu --class os {
insmod part_gpt
insmod ext2
set root='(hd0,gpt12)'
search --no-floppy --fs-uuid --set=root fed6cc73-77f6-43dc-bd18-cc4ae0f73102
linux /boot/vmlinuz-3.13.0-24-generic root=UUID=fed6cc73-77f6-43dc-bd18-cc4ae0f73102 ro
initrd /boot/initrd.img-3.13.0-24-generic
}
|
|
|
All times are GMT -5. The time now is 08:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|