You are not logged in.

#1 2008-10-16 15:43:37

puppet
Member
Registered: 2008-10-13
Posts: 4

Kinit: cannot open root device

hi,

i'm having trouble with arch linux. when i start it up i get the following message:

kinit: cannot open root device dev(0,0)
kinit: init not found!
kernel panic - not syncing : attempted to kill init!

i don't know what the problem is

this is my grub setting for arch linux :

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0,0)
kernel /boot/vmlinuz26 root=dev/sda1 ro
initrd /boot/kernel26.img

and this is my partition:

Apparaat Opstart   Begin       Einde     Blokken   ID  Systeem
/dev/sda1   *           1        1216     9767488+  83  Linux
/dev/sda2            1217        3191    15864187+  83  Linux
/dev/sda3            3192       11976    70565512+   7  HPFS/NTFS
/dev/sda4           11977       19457    60091132+   5  Uitgebreid
/dev/sda5   *       11977       19301    58838031   83  Linux
/dev/sda6           19302       19457     1253038+  82  Linux wisselgeheugen

Offline

#2 2008-10-19 09:40:00

puppet
Member
Registered: 2008-10-13
Posts: 4

Re: Kinit: cannot open root device

up

Offline

#3 2008-10-19 09:53:34

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Kinit: cannot open root device

Have you changed your mkinitcpio.conf recently?

Offline

#4 2008-10-21 16:29:46

puppet
Member
Registered: 2008-10-13
Posts: 4

Re: Kinit: cannot open root device

Ashren wrote:

Have you changed your mkinitcpio.conf recently?

i've should have mentioned that i just installed arch linux.  so, no i didn't changed mkinitcpio.conf

Offline

#5 2008-10-21 16:45:17

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Kinit: cannot open root device

puppet wrote:

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0,0)
kernel /boot/vmlinuz26 root=dev/sda1 ro
initrd /boot/kernel26.img

"root=dev/sda1" needs an extra slash like "root=/dev/sda1" instead.

Also, make sure that's really the location of your root partition.  "root   (hd0,0)" in the previous line refers to the location of /boot.  "root=/dev/sda1" refers to the location of the / partition.  If you've installed /boot to its own mount point, /dev/sda1 probably is not your root partition.

Last edited by creslin (2008-10-21 16:51:49)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#6 2008-10-21 17:11:53

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Kinit: cannot open root device

creslin wrote:
puppet wrote:

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0,0)
kernel /boot/vmlinuz26 root=dev/sda1 ro
initrd /boot/kernel26.img

"root=dev/sda1" needs an extra slash like "root=/dev/sda1" instead.

Also, make sure that's really the location of your root partition.  "root   (hd0,0)" in the previous line refers to the location of /boot.  "root=/dev/sda1" refers to the location of the / partition.  If you've installed /boot to its own mount point, /dev/sda1 probably is not your root partition.

To make this a little more clear, the grub directive "root (hd0,0)" tells grub where to look for all the files specified in this config file. That is, it tells grub that /boot/vmlinuz26 is on (hd0,0). The root=/dev/sda1 parameter tells linux where all the files IT needs are (for instance, /bin/init).

Offline

#7 2008-10-21 17:31:05

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Kinit: cannot open root device

Ah thanks for the explanation.  That lifts a layer of abstraction for me about what each part does.


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#8 2008-10-22 17:23:30

puppet
Member
Registered: 2008-10-13
Posts: 4

Re: Kinit: cannot open root device

it's all on the same partition. so the grub is looking in the good partition.

edit: it works now. the '/' i forgot.

thx for the help

Last edited by puppet (2008-10-22 18:51:02)

Offline

Board footer

Powered by FluxBB