LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro
User Name
Password
Manjaro This forum is for the discussion of Manjaro Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 04-29-2016, 10:17 PM   #1
vienswuer
Member
 
Registered: May 2014
Posts: 47

Rep: Reputation: Disabled
fixing kernel panic


After updating Manjaro, I wasn't able to boot into it again. I got the error message '/boot/vmlinuz-310-x86_64 not found' which I understand is a Kernel panic.
So, I started Sabayon instead, which is installed in a separate partition, and chrooted into Manjaro. Firstly, I made a 'pacman -Syyu'. And then tried to install a new kernel following Manjaro's wiki (https://wiki.manjaro.org/index.php/M...ng_New_Kernels). So: 'sudo mhwd-kernel -i linux313'. But terminal returns this error message: 'error: no targets specified (use -h for help)' I couldn't troubleshoot that since not much info about that particular error appears within forums. I'm listening.

PD Updating went just fine.
 
Old 04-30-2016, 12:18 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I would start here and troubleshoot:-
https://wiki.archlinux.org/index.php/Kernel_Panics

Was there a patch to the kernel or an upgrade?

The kernel is in /usr/src/ check and see if it's still there.

I'm not sure what file in Manjaro your initrd would be but in Slackware it's in lilo.conf.
I'm guessing it's a grub.d file.
You might have to create a new initrd <or> Initial Ram Disk. Try the Arch WiKi first.

Quote:
error: no targets specified
Where you in the directory with the new kernel that you downloaded or were you just re-compiling the kernel you already had?

Was this the whole error message?
Code:
no targets specified and no makefile found
-::-You might want to post the output in the terminal when this error occurs so we can take a look at what is going on.-::-
 
Old 04-30-2016, 01:48 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
File not found is certainly not a kernel panic. Probably a simple grub configuration issue - mkconfig would be my first step to fixing it. Building a new kernel from source seems a bit extreme - but given that mhwd-kernel is touted as "Manjaros own" wouldn't their fora be better to pursue failures like this ?.
 
1 members found this post helpful.
Old 04-30-2016, 06:17 AM   #4
vienswuer
Member
 
Registered: May 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
[QUOTE=Ztcoracat;5538539]I would start here and troubleshoot:-
https://wiki.archlinux.org/index.php/Kernel_Panics

The kernel is in /usr/src/ check and see if it's still there.

Was this the whole error message?
Code:
no targets specified and no makefile found
Yes, that was the whole error message. And the kernel is in that directory. Now checking the initrd you mentioned.
 
Old 04-30-2016, 08:31 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by syg00 View Post
File not found is certainly not a kernel panic. Probably a simple grub configuration issue - mkconfig would be my first step to fixing it. Building a new kernel from source seems a bit extreme - but given that mhwd-kernel is touted as "Manjaros own" wouldn't their fora be better to pursue failures like this ?.
How would we know if it's a grub config issue?
Would the grub.d or the grub.cfg be compromised?

I agree with you, a new kernel is not only extreme but most likely not needed.
 
Old 04-30-2016, 08:42 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Quote:
Originally Posted by Ztcoracat View Post
How would we know if it's a grub config issue?
Would the grub.d or the grub.cfg be compromised?
Probably neither. I am guessing grub.cfg includes a kernel that has been deleted by the update. mkconfig is a quick and easy fix in that case.
 
Old 04-30-2016, 08:47 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
syg00:

I've never used the mkconfig command. I've updated Grub before-
I'll read the man page for it-

Maybe these links will help?

https://www.gnu.org/software/grub/ma...dmkconfig.html
https://wiki.archlinux.org/index.php/GRUB
 
Old 04-30-2016, 08:49 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by syg00 View Post
Probably neither. I am guessing grub.cfg includes a kernel that has been deleted by the update. mkconfig is a quick and easy fix in that case.
Got it-
A kernel that has been deleted from the grub.cfg file makes sense.

In that case OP would just have to edit the grub.cfg file and put the image back (menu entry) in the file and than run mkconfig? (make sure I understand while I'm learning form you)

Last edited by Ztcoracat; 04-30-2016 at 08:53 PM.
 
Old 04-30-2016, 09:06 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
mkconfig is what builds grub.cfg - no need to risk finger-checks.
 
1 members found this post helpful.
Old 04-30-2016, 09:07 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Yes, that was the whole error message
In that case either the make file was missing, you were in the wrong directory or the tar.bz was corrupt.It doesn't look like you need a new kernel as syg00 said that's a bit extreame.

I'm waiting for him to answer me on the mkconfig and the grub.cfg file.

In the meantime if you want to take a look at the grub.cfg file it should be in /boot/grub2/grub.cfg.
Here's what my menu entry looks like for Korora that is based on Fedora.
Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Korora (4.4.8-300.fc23.x86_64) 23 (Coral)' --class korora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.2.5-300.fc23.x86_64-advanced-a25329de-271d-453a-8d62-4d40c0f9c4ae' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
The entry for Sabayon and Manjaro should be similar to my menuentry.
 
Old 04-30-2016, 09:13 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by syg00 View Post
mkconfig is what builds grub.cfg - no need to risk finger-checks.
Finger checks? Do clarify:-
 
Old 05-01-2016, 12:25 AM   #12
vienswuer
Member
 
Registered: May 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
In that case either the make file was missing, you were in the wrong directory or the tar.bz was corrupt.It doesn't look like you need a new kernel as syg00 said that's a bit extreame.

I'm waiting for him to answer me on the mkconfig and the grub.cfg file.

In the meantime if you want to take a look at the grub.cfg file it should be in /boot/grub2/grub.cfg.
Here's what my menu entry looks like for Korora that is based on Fedora.
Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Korora (4.4.8-300.fc23.x86_64) 23 (Coral)' --class korora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.2.5-300.fc23.x86_64-advanced-a25329de-271d-453a-8d62-4d40c0f9c4ae' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
The entry for Sabayon and Manjaro should be similar to my menuentry.
Yup, my grub.cfg looks the same for Manjaro entrie
 
Old 05-02-2016, 12:54 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
After reading about the kernel online I learned that if the kernel doesn't have the driver for your rootfs or a driver for your SATA bus and etc. your kernel will panic; if it boots and can't access the necessary disks, partitions and or files.

-::-This wouldn't be the first time that I've heard of an update breaking drivers.-::-

Have you tried what is recommended in the Arch Wiki for kernel panic?

I hope you have performed a recent back up.-

http://linux.die.net/man/2/chroot

Last edited by Ztcoracat; 05-02-2016 at 01:49 PM.
 
Old 05-02-2016, 01:22 PM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,366

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
This
Quote:
I got the error message '/boot/vmlinuz-310-x86_64 not found
indicates the kernel that grub is trying to load doesn't exist as syg00 has suggested.
Quote:
So, I started Sabayon instead, which is installed in a separate partition, and chrooted into Manjaro.
Did you try running grub-mkconfig after chrooting into Manjaro to see if that will fix the problem?

Last edited by colorpurple21859; 05-02-2016 at 01:24 PM.
 
1 members found this post helpful.
Old 05-11-2016, 11:59 AM   #15
vienswuer
Member
 
Registered: May 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
This indicates the kernel that grub is trying to load doesn't exist as syg00 has suggested. Did you try running grub-mkconfig after chrooting into Manjaro to see if that will fix the problem?
It didn't solve the problem.
 
  


Reply

Tags
kernel panic



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining cause of Linux kernel panic "Kernel panic - not syncing: Fatal exception" gladman002 Linux - Kernel 1 09-07-2015 08:04 PM
Logging a Kernel Panic Event - Problem writing the log in panic situation lucasct Linux - Embedded & Single-board computer 5 09-08-2011 01:44 PM
Fixing the kernel configuration MahendraL Linux - Newbie 1 07-03-2009 01:11 AM
fixing kernel errors entropyguy Linux - Newbie 0 10-13-2004 06:01 PM
mandrake 9.1 fixing tweaking kernel JUDOLIZARD Linux - Newbie 4 12-15-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Manjaro

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration