Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
First kernel panic on new kernel.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mhsquire
n00b
n00b


Joined: 20 Apr 2014
Posts: 6

PostPosted: Sat May 03, 2014 7:35 pm    Post subject: First kernel panic on new kernel. Reply with quote

Hi I have only a little experience with kernel panics, but I would appreciate some help.
I am trying to install PaX in my kernel.

Here is the panic: http://www.filedropper.com/newdoc5

I am currently booting from the minimal installation cd, and here is my .config file for the kernel that I created.

http://www.filedropper.com/kernel-config-diglett

This is the stable version of the kernel without PaX
http://www.filedropper.com/kernel-stable-diglett


Does anyone have a good tutorial on attacking kernel panic issues?[/url]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat May 03, 2014 9:31 pm    Post subject: Reply with quote

mhsquire,

The key here is the
kernel panic:
unknown-block(0,0)
and
kernel panic:
here are the available partitions:


The former tells that the kernel cannot read your hard drive at all.
This is confirmed by the empty list of block devices under the latter message.

The failing kernel config is only a part of the data we need to fix it.
We also need to know your hardware, that is shown by lspci.

If you wand a pax system, use a hardened stage3 and the hardened-sources kernel.
_________________
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
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sat May 03, 2014 9:34 pm    Post subject: Reply with quote

the panic shown usually means that the kernel does not include drivers for the hard drives. boot the livecd/usb run
Code:
lspci -k | wgetpaste
parted -l
post the urls returned.
is bios set to ahci mode?
Any secrets? raid, lvm, luks, virtual machine, initramfs, etc
_________________
Defund the FCC.
Back to top
View user's profile Send private message
mhsquire
n00b
n00b


Joined: 20 Apr 2014
Posts: 6

PostPosted: Sun May 04, 2014 12:22 am    Post subject: Reply with quote

lspci -k | wgetpaste

http://bpaste.net/show/257171/
Code:

diglett linux # parted -l
Model: ATA TOSHIBA MK2018GA (scsi)
Disk /dev/sda: 20.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  3146kB  2097kB  primary                  boot
 2      3146kB  137MB   134MB   primary  ext2
 3      137MB   674MB   537MB   primary  linux-swap(v1)
 4      674MB   20.0GB  19.3GB  primary  ext4


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Error: Invalid partition table - recursive partition on /dev/sr0.
Ignore/Cancel? cancel                                                     
Model: MATSHITA DVD-ROM SR-8177 (scsi)
Disk /dev/sr0: 259MB
Sector size (logical/physical): 2048B/2048B
Partition Table: unknown
Disk Flags:


Also my dark secret is that to get a stable kernel the first time I installed gentoo I used genkernel with the --initramfs option. I then used the .config from that 'successful' build to modify the hardened build.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Sun May 04, 2014 1:32 am    Post subject: Reply with quote

enabling <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support provides the Kernel driver in use: ata_piix
the current config has CONFIG_ATA_PIIX=m

is hard drive controller in bios set to ahci mode? if it has that mode it is better to use it instead of ide mode.

kernel making :
http://swift.siphos.be/linux_sea/
http://www.kernel-seeds.org down at the moment

Edit: chipset was documented in 2002, ahci unlikely
_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun May 04, 2014 11:40 am    Post subject: Reply with quote

mhsquire,

To add a few words of explaination to what DONAHUE said,
Kernel options marked as <*> are built into the kernel binary which is loaded by grub.
Kernel options marked as <M> are placed in /lib/modules/`uname -r`/ which is on the root filesystem

Your <M> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA means that your kernel needs to mount the root filesystem to load the module needed to mount the root filesystem.
Thus you have a circular dependency.

There is a way out, thats to have an initrd. An initrd is a temporary root filesysem that contaisns all the bits needed to mount the real root filesystem.
Its only really needed if you need to use userspace tools to even see the root filesystem in the first place.
Just now, an initrd is a complication you don't need.
_________________
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 Kernel & Hardware 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