You are not logged in.

#1 2011-05-04 09:50:17

jakerules
Member
Registered: 2011-04-14
Posts: 34

[SOLVED] Edit mkinitcpio from emergency shell?

Is it possible?

I was doing something with plymouth and accidently deleted the filesystem hook. : ( Now I can't boot into arch.

I've tried renaming the grub kernel to /dev/sda1 but it can't find the device. I just need to find a way to somehow edit mkinitcpio I guess to rehook the filesystem. I'm trying some grub commands, but nothing is working so far. I really hope I haven't dug myself into a hole completely yet.

Last edited by jakerules (2011-05-04 23:52:13)

Offline

#2 2011-05-04 10:30:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Edit mkinitcpio from emergency shell?

You can do it from a liveCD.

Offline

#3 2011-05-04 15:13:20

jakerules
Member
Registered: 2011-04-14
Posts: 34

Re: [SOLVED] Edit mkinitcpio from emergency shell?

That was actually my best guess and I'm currently trying to with no luck. What is the command to do so?

Thank you for your reply.

Offline

#4 2011-05-04 15:20:16

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED] Edit mkinitcpio from emergency shell?

https://wiki.archlinux.org/index.php/Chroot

You should only need to mount your root partition, edit the file and rebuild the initrd image.

Offline

#5 2011-05-04 15:22:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Edit mkinitcpio from emergency shell?

jakerules wrote:

That was actually my best guess and I'm currently trying to with no luck. What is the command to do so?

Thank you for your reply.

Are you saying you can't edit /etc/mkinitcpio.conf or you can't run 'mkinitcpio -p kernel26'? If the latter, you need to chroot first.

Offline

#6 2011-05-04 22:58:05

jakerules
Member
Registered: 2011-04-14
Posts: 34

Re: [SOLVED] Edit mkinitcpio from emergency shell?

Yeah, that chroot looks like it's exactly what I need to do.

I'm a little stuck with something though.
It says

cd /mnt/arch
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/

If I type in mount -t /proc/proc/proc/ I get progress. And mount -t /sysfs/sys/sys I also get progress. But typing out the mount -o /dev dev/ does nothing (mount point dev/ does not exist). Typing it as mount -o /dev/dev/ does nothing as well(can't find /dev/dev/ in /etc/fstab or /etc/mtab). Am I missing some obvious variable?

Edit: Cross that off for a second. Figured I did something obvious. I was mounting the wrong partition I think! Give me a second here...

It seems true love as prevailed and I got it to work. Thanks for the help!

Last edited by jakerules (2011-05-04 23:51:57)

Offline

Board footer

Powered by FluxBB