You are not logged in.

#1 2012-06-23 19:54:50

ebshankar
Member
Registered: 2012-02-18
Posts: 91

[SOLVED]removed lots of hooks (base, fsck remain)->boot fail

Also I've reinstalled linux kernel twice. so initrd images of both fallback and current system have lost these important hooks.
Is there any chance I can repair my system to boot now without reinstalling?

I have arch linux and ubuntu CDs (if they can be helpful).
I have this in my kernel line

root=/dev/sda3 rootfstype=ext4

and the error it shows is that it can't find '/dev/sda3'

Last edited by ebshankar (2012-06-24 08:31:34)

Offline

#2 2012-06-23 20:21:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

Boot from a live environment, chroot and restore the hooks, then rebuild your initramfs.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-06-23 22:17:36

ebshankar
Member
Registered: 2012-02-18
Posts: 91

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

jasonwryan wrote:

Boot from a live environment, chroot and restore the hooks, then rebuild your initramfs.

yea I'm trying this but its giving an error when I try to reinstall kernel to rebuild initrams image after chroot:
ERROR!
/proc must be mounted

Offline

#4 2012-06-23 22:27:19

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

Change root wiki

spoiler (to be done after mounting your root on /mnt/arch and before the chroot):

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

Last edited by Terminator (2012-06-23 22:29:18)

Offline

#5 2012-06-23 22:28:30

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

When you chroot in you need to create the /proc dir for the chroot. Look at the chroot instructions on the wiki, they describe how to mount proc system. https://wiki.archlinux.org/index.php/Ch … nging_Root

Offline

#6 2012-06-24 08:31:03

ebshankar
Member
Registered: 2012-02-18
Posts: 91

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

Terminator wrote:

Change root wiki

spoiler (to be done after mounting your root on /mnt/arch and before the chroot):

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

yeah it works and I successfully repaired initrams

Offline

#7 2012-06-24 09:26:28

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

Quick tip if you're going to experiment more: rename your working initrd and add a new entry to your bootloader for it. Then you can always use the old initrd if something goes wrong with the new one.

Offline

#8 2012-06-26 14:48:13

ebshankar
Member
Registered: 2012-02-18
Posts: 91

Re: [SOLVED]removed lots of hooks (base, fsck remain)->boot fail

Ramses de Norre wrote:

Quick tip if you're going to experiment more: rename your working initrd and add a new entry to your bootloader for it. Then you can always use the old initrd if something goes wrong with the new one.

Yea thats a very good idea!

Offline

Board footer

Powered by FluxBB