Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]kernel panic not syncing vfs unable to mount root fs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sat Jul 11, 2015 8:08 am    Post subject: [solved]kernel panic not syncing vfs unable to mount root fs Reply with quote

hi,

I have installed Gentoo on my Toshiba with the genkernel tool, this works fine.
Now I want to use the menuconfig so I can fine tune the settings, I tried changing a lot of settings but it always says: kernel panic ....

Is there a website to learn more about the settings of menuconfig? For the moment I tried the online help of the tool itself.

In my genkernel generated system I have...

lspci -vvv | wgetpaste
https://bpaste.net/show/0b55afcf2de1

lspci | wgetpaste
https://bpaste.net/show/aea35b3eda7b

dmesg | wgetpaste
https://bpaste.net/show/6b9f85b0564f




on the target os
-------------------

/etc/fstab
/dev/sda2 /boot ext4 defaults,noatime 0 2
/dev/sda3 none swap sw 0 0
/dev/sda4 / ext4 noatime 0 1
/dev/cdrom /mnt/cdrom auto noauto,user 0 0

after chrooting to target on working system
dmesg lspci seems this gives the result for the working system not for the chroot... please help!


Last edited by skorefish on Tue Jul 21, 2015 8:18 am; edited 1 time in total
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Jul 11, 2015 8:59 am    Post subject: Reply with quote

Hi,

from your running kernel you can use

Code:
zcat /proc/config.gz


to see the config

and something like, untested of course:

Code:
zcat /proc/config.gz >> kernel_config


should generate you a file named kernel_config in your current directory.

Assuming you have the config.gz allowance set in your kernel in the first place.

this is a good starting point to go on.

edit:

Code:
cd /usr/src/linux
localhost linux # make menuconfig


pressing the key "?" gives an explanation

you can also parse the config itself

grep INTEL /usr/src/linux/.config


careful as those settings are usually all in UPPER CASE, not lower case

it sometimes helps me to get a hint that way to find unset things ...

there was also a homepage in the past where you could post the lspci listening and got a list of modules but i never saved the link.
also watch the portage output, some ebuilds remind you of unset parameters. e.g. google-chrome wants some kernel parameters set and tells you that at the start of emerge. just watch the output of emerge regularly and you will get a kernel config.
Back to top
View user's profile Send private message
mrbassie
Guru
Guru


Joined: 31 May 2013
Posts: 535

PostPosted: Sat Jul 11, 2015 9:29 am    Post subject: Reply with quote

tw04l124 wrote:

there was also a homepage in the past where you could post the lspci listening and got a list of modules but i never saved the link.


http://kmuto.jp/debian/hcl/
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sat Jul 11, 2015 10:30 am    Post subject: Reply with quote

hi tw04l124 && mrbassie

I opened the kernel_config file in vi and did a :%s/=m/=y/g so all modules are loaded from kernel.
I'm compiling now ...

Thx for the tips !!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sat Jul 11, 2015 11:50 am    Post subject: Reply with quote

skorefish,

Never, ever use $EDITOR on the kernel .config file. You will just get an illegal .config. If you are lucky, the build will fail.
If not, it may fail in very difficult to diagnose ways.

This is caused by some options in menuconfig changing about 6 flags in .config
Worse, many flags are not user configurable.

Throw away your .config

The kernel make has some special targets for the sort of thing you want to do.
kernel-sses.org is worth a read too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sat Jul 11, 2015 11:59 am    Post subject: Reply with quote

Neddy

Quote:
Never, ever use $EDITOR on the kernel .config file. You will just get an illegal .config. If you are lucky, the build will fail.
If not, it may fail in very difficult to diagnose ways.


Is it bad to edit it and then load it back in menuconfig to check?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sat Jul 11, 2015 2:08 pm    Post subject: Reply with quote

skorefish,

Yes - you cannot check it because you cannot fix the hidden symbols that are forced on/off by the visible menuconfig symbols.
The link in my previous post should have read kernel-seeds.org

Throw the .config away. It cannot reliably be fixed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sat Jul 11, 2015 7:31 pm    Post subject: Reply with quote

Ok, I understand ... I 'll try the other (better) way 8)

very interesting ... http://kernel-seeds.org

I think i'm going to use make allnoconfig so I can start with a clean .config ...
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sun Jul 12, 2015 9:24 am    Post subject: Reply with quote

skorefish wrote:
Ok, I understand ... I 'll try the other (better) way 8)

very interesting ... http://kernel-seeds.org

I think i'm going to use make allnoconfig so I can start with a clean .config ...


Copyright © Bear Upstairs Studio. Original page: 09-12-2008. Page last updated: 11-28-2013. All rights reserved.

yes pappy had pages long here in the past with his seeds, sadly no updaes on his homepage ...

e.g. : https://forums.gentoo.org/viewtopic-t-942572-highlight-kernel+seed.html

last page, quote neddy

Quote:
xsilentmurmurx,

kernel-seeds was taken over by funtoo a year or two ago. I don't know how or if its being maintained.
However a look at the seeds links shows http://kernel-seeds.org:8080/seeds/64_bit/ and http://kernel-seeds.org:8080/seeds/32_bit/

That 8080 is a non standard port for http. It may be blocked by your firewall.

There is a mirror at kernel-seeds.grytpype-thynne.org/ which is just as Pappy left it but I'm dropping that server before 9 March, so that mirror will go away.

-- edit --

It works if you change the 8080 to 80 or just delete it but thats not the page you are supposed to see.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Jul 12, 2015 10:57 am    Post subject: Reply with quote

My mirror is still alive too.

I did drop that server and got more RAM/CPU/HDD for less money but moved everything to a KVM on the new hardware.
The pages taking you through menuconfig are still goog though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
skorefish
Apprentice
Apprentice


Joined: 21 Jun 2015
Posts: 281

PostPosted: Sun Jul 12, 2015 4:07 pm    Post subject: [solved]kernel panic not syncing vfs unable to mount root fs Reply with quote

8) make help shows a lot off great possibilities!!

Now it works without using the bad editor trick :lol:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Sun Jul 12, 2015 6:02 pm    Post subject: Reply with quote

skorefish,

You are getting the hang of it :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum