You are not logged in.

#1 2006-08-31 13:45:19

Elias
Member
From: Lyon (Fr)
Registered: 2006-01-19
Posts: 35
Website

mkinitcpio from a livecd: error with kinit [solved]

Hi,

while i was converting my root filesystem from reiserfs to ext3, i've forgot to backup my /boot directory (which is on the same partition as /) so i had to rebuild it with a livecd (ARCHIE).

But now i can't boot anymore my arch installation : when i boot, i got a kernel panic with this error message :

kinit: Mounted root (ext3 filesystem) read only
kinit: opening console: No such file

This is how i mkinitcpio-ed my images (under ARCHIE)

cd /
mount -t ext3   /dev/hda1 /mnt
mount -t proc   proc      /mnt/proc
mount -t sysfs  sys       /mnt/sys
mount -o bind   /dev      /mnt/dev
chroot /mnt /bin/bash
mkinitcpio -C /boot/mkinicpio-kernel26.conf -k 2.6.17-ARCH

here is the content of /boot/mkinitcpio-kernel26.conf :

MODULES="ext3 atiixp generic ide-disk"
FILES=""
HOOKS="base udev ide usbinput"

fallback didn't worked too, same error.

Since i've been using mkinitrd until now, this could be a misconfiguration but i pretty much doubt it because i re-used the same modules i putted (exept that i switched reiserfs with ext3) in mkinitrd than in mkinitcpio.

Can someone please help me ?

Offline

#2 2006-08-31 14:00:40

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: mkinitcpio from a livecd: error with kinit [solved]

just boot with archie chroot into it like you did but without binding dev to new chroot, and run migrate-udev, your basic nodes on your new filesystem are just missing

Offline

#3 2006-08-31 15:01:12

Elias
Member
From: Lyon (Fr)
Registered: 2006-01-19
Posts: 35
Website

Re: mkinitcpio from a livecd: error with kinit [solved]

i did the trick, thx.

but now i've got another problem : my usual user can't do anything : run startx (can't move /var/log/Xorg.0.log to [...]0.log.old), ping a computer on the network or even run "su" !

I moved from reiserfs to ext3 using "cp -rf" on everything exept /proc, /dev & /sys), did it break everything ?

Do you have a quick answer or should i start another topic and solve that one ?

Offline

#4 2006-08-31 15:51:33

Elias
Member
From: Lyon (Fr)
Registered: 2006-01-19
Posts: 35
Website

Re: mkinitcpio from a livecd: error with kinit [solved]

I've been hinted on irc... apparently the cp -rf is responsible for this.

Hopefully i backed up my file using cp -a and i only used cp -rf for the restoration and as i still have a copy of thoses files, i might be able to get my system back.

hi keep you updated.

Offline

#5 2006-08-31 16:12:12

Elias
Member
From: Lyon (Fr)
Registered: 2006-01-19
Posts: 35
Website

Re: mkinitcpio from a livecd: error with kinit [solved]

Everything works fine now, that was the cp -rf that messed everything...

thx for your help tpowa !

Offline

Board footer

Powered by FluxBB