Jump to content

Help! Kernel Panic! [solved]


Guest moStudio
 Share

Recommended Posts

Guest moStudio

Hi

I install Mandriva 2008 One with Microsoft Windows XP

but after reboot the Mandriva can't boot it gives me this message when I try to boot in safe mode :

----

 

Creating root device

No resume device specified

Trying userspace resume from suspend.conf file

No resume device in suspend.conf

echo: cannot open /sys/power/suspend2/do_resume for write:2

echo: cannot open /sys/power/tuxonice/do_resume for write:2

Mount: error 6 mounting ext3 flage defaults

well, retrying read_only without any flag

Mount: error 6 mounting ext3

switching to new root

ERROR opening /dev/console !!!! :2

unmounting old /proc

unmounting old /sys

switch root :mount faild :22

initrd finished

Kernel Panic - not syncing : attempted to Kill init !

 

-------

 

and then the ccroll lock and the num lock in the keybord blinking all the time and nothing happen ! I must restart the PC or turn off from the case !

 

and this what I have in my PC

 

CPU : P4 2.6 Ghz

Ram: 1GB

VGA : Nvidia GeForce 4400 Ti 128MB

HDD : 80GB IDE , 250 + 320 SATA

250 is the main HDD

250 SATA (

23GB C: (NTFS)

 

3.2GB / (ext3)

1GB Swap

1.2GB /Home (ext3)

 

30 GB D: (NTFS)

173 GB E: (NTFS)

)

 

320 SATA (

149GB I: (NTFS)

149GB J: (NTFS)

)

 

80 IDE (

74GB H: (NTFS compresed )

)

 

Bood Loader in 250 SATA

 

 

I don't know where is the wrong !! the live CD works very well

 

and I tryed installing it with APCI and without the same in every time

 

Please help I want install both Linux Mandriva 2008 and XP

 

 

thanks for help

Edited by moStudio
Link to comment
Share on other sites

It seems that you have changed the BIOS boot sequence (or even worse the disk placement) after installing Linux- so now the primary loader (likely grub) has wrong info about the root partition.

The solution is booting from the Mandriva CD, chrooting to your existing installation and reinstalling grub to the first HD (/dev/sda).

I don't have any Mandy 2008 installed on a real machine right now (just a VMWare virtual box), but IDE harddisks should be found under /dev/sdx, not /dev/hdx as before.

Edited by scarecrow
Link to comment
Share on other sites

I don't have any Mandy 2008 installed on a real machine right now (just a VMWare virtual box), but IDE harddisks should be found under /dev/sdx, not /dev/hdx as before.

 

Not true. In mdv 2008 my ide drive is still designated hdx.

 

moStudio, boot up in livecd mode and post the following files here:

 

/boot/grub/memu.lst and /etc/fstab

 

menu.lst is the configuration file for the bootloader, grub and fstab will tell everyone how linux sees your hard drive configuration.

Link to comment
Share on other sites

Guest moStudio

I don't know what happened !

 

the Live CD won't boot too !!

 

I will your advices and I will tell you what happen with me when I can boot from the live CD again

 

thanks all

Link to comment
Share on other sites

Valikhan, I believe you are mistaken. On my mdv2008 the ide hard drive is still dealt wiht as /dev/hde which is the normal designation for that drive. Take a look at this output for fdisk -l /dev/hde:

 

Disk /dev/hde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44914491

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/hde1   *		   1		1766	14185363+   7  HPFS/NTFS
/dev/hde2			1767		8286	52371900	f  W95 Ext'd (LBA)
/dev/hde5			1767		3006	 9960268+   b  W95 FAT32
/dev/hde6			3007		5675	21438711	b  W95 FAT32
/dev/hde7			5676		8286	20972826   83  Linux

 

and for hdparm /dev/hde:

 

/dev/hde:
multcount	 = 16 (on)
IO_support	=  0 (default 16-bit)
unmaskirq	 =  0 (off)
using_dma	 =  1 (on)
keepsettings  =  0 (off)
readonly	  =  0 (off)
readahead	 = 256 (on)
geometry	  = 65535/16/63, sectors = 156301488, start = 0

 

That drive is definitely using the standard ide protocol instead of the scsi protocol which is what you get in the newer kernels that designate ide drives as sdx. Oddly, however, both my optical drives, one ide and one sata, are designated with the newer srx notation and dma cannot be set on either one which indicates that the scsi protocol is being used by these devices. This may be due to the fact that the hard drive is on a Promise ide controller card which had to be added as the motherboard only has one ide port. Be curious to see if anyone with an ide hard drive, as opposed to an optical drive, has the device file for the drive as hdx.

 

Also, moStudio, you can use any live cd to access your current mandriva installation. However, just to clarify my earlier post, you need to navigate to the mount point of your mandriva root partition then navigate to mandriva's fstab and menu.lst so the full path to the files I want you to post would be:

 

<mandriva mount point>/etc/fstab and

 

<mandiva mount point>/boot/grub/menu.lst

Link to comment
Share on other sites

Guest moStudio

hi this the files

<mandiva mount point>/boot/grub/menu.lst

 

timeout 10

color black/cyan yellow/cyan

gfxmenu (hd0,4)/boot/gfxmenu

default 3

 

title linux

kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/sda5 noapic nolapic resume=/dev/sda8 splash=silent acpi=ht vga=788

initrd (hd0,4)/boot/initrd.img

 

title linux-nonfb

kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=/dev/sda5 noapic nolapic resume=/dev/sda8 acpi=ht

initrd (hd0,4)/boot/initrd.img

 

title failsafe

kernel (hd0,4)/boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/sda5 failsafe

initrd (hd0,4)/boot/initrd.img

 

title windows1

root (hd0,0)

makeactive

chainloader +1

 

 

<mandriva mount point>/etc/fstab

 

/dev/sda5 / ext3 relatime 1 1

/dev/sda9 /home ext3 relatime 1 2

none /proc proc defaults 0 0

/dev/sda8 swap swap defaults 0 0

 

 

I hope this helps !

Link to comment
Share on other sites

You have several hard drives and that can sometimes confuse the bootloader, grub. It appears that linux is installed on the 250 GB drive and from the "windows1" you may have more than one version of windows installed on your computer. Is the 250GB drive listed first in the boot order for the hard drives in your bios setup?

 

To check on how grub sees the hard drives at boot time do the following:

 

1. Reboot the system and as soon as you see the grub boot selection screen hit the Esc key. A little warning window will come up advising you are leaving the graphic mode and going to a text mode selection screen. Just hit the Enter key to continue and you will find your self in a primitive ncurses version of your boot selection screen;

 

2. Hit the "c" key and you will find yourself at a grub prompt that looks like this - "grub>". From here you can run some commands to see how grub is detecting your hard drive setup at boot time;

 

3. In particular, I want to confirm that grub sees the drive that you installed mandriva on as (hd0,4). To do that run the following at the grub prompt:

 

grub> find /sbin/init

 

It should return the value (hd0,4). If it doesn't note what the return value is, eg (hd1,4). It will be in the form of (hdx,4). When your done, just hit the Esc key to get out of the grub prompt and power off the computer.

 

Post back your results here.

Link to comment
Share on other sites

Valikhan, I believe you are mistaken. On my mdv2008 the ide hard drive is still dealt wiht as /dev/hde which is the normal designation for that drive. Take a look at this output for fdisk -l /dev/hde:

 

Disk /dev/hde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x44914491

  Device Boot	  Start		 End	  Blocks   Id  System
/dev/hde1   *		   1		1766	14185363+   7  HPFS/NTFS
/dev/hde2			1767		8286	52371900	f  W95 Ext'd (LBA)
/dev/hde5			1767		3006	 9960268+   b  W95 FAT32
/dev/hde6			3007		5675	21438711	b  W95 FAT32
/dev/hde7			5676		8286	20972826   83  Linux

 

 

That is my fstab:

/dev/sda3 / ext3 defaults 1 1

/dev/sda1 /media/hd ntfs umask=0022,nls=utf8,sync,ro 0 0

/dev/sda5 /media/hd2 ntfs-3g umask=0,nls=utf8 0 0

/dev/sda7 /media/hd3 vfat umask=0022,users,iocharset=utf8,sync,noauto,exec 0 0

none /proc proc defaults 0 0

/dev/sda6 swap swap defaults 0 0

 

They ARE sdax as devices

Edited by Valikhan
Link to comment
Share on other sites

Go to MCC>Boot (lowest section)>Set up boot system. I t gives you 1. What loader grub or lilo 2, Booting partition. In my case just /dev/sda because I have dual boot. Then tick off ACPI. You can leave APIC and local APIC as is and see what happens.

 

If I chose any other like say /dev/sda3 I'd get what you had: problem with loading.

Link to comment
Share on other sites

Guest moStudio

Hi every one

 

thanks alot for you guys for the help

 

I was thinking of the problem and I saw that nothing wrong with mandriva installed with XP , the problem that the boot loader is counfused or the problem with the swap partition so I did those things :

1st : I toke off the IDE Drive . ( which also make some confused when I install XP and it is connected ) .

2nd : I re arrange the partitions and make just 2 for linux ( the root one 8.2 Giga Byte with mount point : / , and a swap file 1.2 Gige Byte ) .

3rd: I formated both root partition and the swap partition .

4th : i make sure of the swap so I format again . so I make sure it work well .

 

then I start installing the mandriva . reboot PC , and click on mandriva in the Grub Loader and ....

 

..

 

..

it is finaly working ;)

 

I still didn't try to connect the IDE drive again but I will do soon and if the problem come again I will tell you :)

 

I hope this experience of mine will help others ppl when had the same problem

Link to comment
Share on other sites

  • 5 weeks later...

Argh! It's the same error message that I'm getting at the moment, word for word.

 

I have installed mandriva 2008 on an external (USB) harddrive. It loads GRUB and can boot windows from the internal harddrive.

 

I've checked how GRUB sees the harddrives - recognises the usb as (hd0, 4) - and need help with what to do next.

 

Ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...