You are not logged in.

#1 2015-05-06 21:33:27

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Kernel panic - not syncing No working init found.

Hello. Help me please and sorry for my bad english.
I have Kernel panic after force update pacman -Syu (Yes. I am stupid). I reboot my PC and have KP (No working init found).
In the internet I found that need to try init=/bin/bash. After it I have error "Kernel panic: Request init /bin/bash failed (error -2)".
On Arch-wiki I found theme Kernel Panic and read it. I boot from USB, use mount, chroot, find 'linux*', pacman -U.
Now KP (with init=/bin/bash) is:
Failed to execute /init (error -2)
Failed to execute /bin/bash (error -2). Attempting defaults... ,
Kernel panic - not syncing No working init found. Try passing init= option to kernel.

Last edited by Diadlo (2015-05-07 10:38:19)

Offline

#2 2015-05-06 21:45:02

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

Re: Kernel panic - not syncing No working init found.

You'll need to provide more information about your setup: partition table, boot loader/manager, configuration for that tool, what was in the update (look in pacman's log), etc...


Moving to Newbie Corner.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-05-06 22:10:24

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

Partition table:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   419432447   209715200   83  Linux
/dev/sda2       419432448   427821055     4194304   82  Linux swap / Solaris
/dev/sda3       427821056  1953525167   762852056   83  Linux

Bootloader is GRUB2. What config are needed?
Part of pacman.log after pacman -Syu
http://pastebin.com/STgU9qkw

Last edited by Diadlo (2015-05-07 04:21:50)

Offline

#4 2015-05-07 03:24:18

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Kernel panic - not syncing No working init found.

Better to chroot into partition and try to remake initramfs

# mkinitcpio -p linux

do it good first, it will be faster than do it twice the saint wink

Offline

#5 2015-05-07 03:52:43

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

TheSaint wrote:

Better to chroot into partition and try to remake initramfs

# mkinitcpio -p linux

Yes, I try this. Nothing changed

Offline

#6 2015-05-07 09:55:39

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Diadlo wrote:

Bootloader is GRUB2. What config are needed?

/boot/grub/grub.cfg

Post the output of:

lsblk -f

Also:

empty@Arch ~ % sudo pacman -Syn
[sudo] password for empty: 
error: invalid option '-n'

Please state exactly which command you used, what the exact output was for that command, why you had to "force" it and how exactly you forced it.


Jin, Jîyan, Azadî

Offline

#7 2015-05-07 15:31:56

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

/boot/grub/grub.cfg
http://pastebin.com/zNJA4LBN

lsblk -f
NAME   FSTYPE  LABEL                          MOUNTPOINT
sda                                           
├─sda1                                        /mnt
├─sda2                                        [SWAP]
└─sda3                                        
sdb                                           
├─sdb1                                        /media/ubuntu-gnome/ARCH_201504
└─sdb2                                        
sr0    iso9660 Ubuntu-GNOME 14.04.1 LTS amd64 /cdrom
loop0                                         /rofs 

And sorry for misprint. It was pacman -Syu

Last edited by Diadlo (2015-05-07 15:32:19)

Offline

#8 2015-05-07 15:40:47

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Head_on_a_Stick wrote:

Please state [...] why you had to "force" it and how exactly you forced it.

I take it you ran the `lsblk -f` command from an Ubuntu live system?

That command in Debian/Ubuntu will only show what I wanted to see with superuser permissions...

We need to see the UUIDs -- post the output of:

# blkid

Jin, Jîyan, Azadî

Offline

#9 2015-05-07 15:46:11

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

Yes. It is Ubuntu liveCD.

$sudo lsblk -f
NAME   FSTYPE   LABEL                          MOUNTPOINT
sda                                            
├─sda1 ext3                                    /mnt
├─sda2 swap                                    [SWAP]
└─sda3 ext3                                    
sdb    iso9660  ARCH_201504                    
├─sdb1 iso9660  ARCH_201504                    /media/ubuntu-gnome/ARCH_201504
└─sdb2 vfat     ARCHISO_EFI                    
sr0    iso9660  Ubuntu-GNOME 14.04.1 LTS amd64 /cdrom
loop0  squashfs                                /rofs

$ sudo blkid
/dev/loop0: TYPE="squashfs" 
/dev/sr0: LABEL="Ubuntu-GNOME 14.04.1 LTS amd64" TYPE="iso9660" 
/dev/sda1: UUID="93306cf0-9095-4e22-89de-bf9a1033846e" TYPE="ext3" 
/dev/sda2: UUID="b15dd0f2-dac1-4993-88a2-7ef10363942c" TYPE="swap" 
/dev/sda3: UUID="1703d4d5-fd0e-4864-9304-a9669f8d0c86" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sdb1: LABEL="ARCH_201504" TYPE="iso9660" 
/dev/sdb2: SEC_TYPE="msdos" LABEL="ARCHISO_EFI" UUID="DE70-606B" TYPE="vfat" 

Last edited by Diadlo (2015-05-07 15:46:41)

Offline

#10 2015-05-07 15:54:14

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Head_on_a_Stick wrote:
Head_on_a_Stick wrote:

Please state [...] why you had to "force" it and how exactly you forced it.

This is the last time I will ask you.


Jin, Jîyan, Azadî

Offline

#11 2015-05-07 16:03:12

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

I wanted update some software. And I decided update all software.

Diadlo wrote:

And sorry for misprint. It was pacman -Syu

I wrote "pacman -Syu"

Last edited by Diadlo (2015-05-07 16:03:32)

Offline

#12 2015-05-07 16:08:18

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Diadlo wrote:

I have Kernel panic after force update pacman -Syu

Did you have to use `pacman -Syu --force`?

If so, what were the error messages given by pacman that lead you to use this flag?


Jin, Jîyan, Azadî

Offline

#13 2015-05-07 16:11:13

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

No. I don't use "force" flag

Offline

#14 2015-05-07 16:14:51

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Diadlo wrote:

No. I don't use "force" flag

OK, sorry for being a bit rude -- I was confused.

You should probably chroot into your system and re-install the kernel image & GRUB and re-configure GRUB.

EDIT: How long has it been since you last updated your system?

Last edited by Head_on_a_Stick (2015-05-07 16:17:01)


Jin, Jîyan, Azadî

Offline

#15 2015-05-07 16:30:31

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: Kernel panic - not syncing No working init found.

I would also use an archlinux live-cd, it provides arch-chroot giving you a better chance of reviving your install

Last edited by Spider.007 (2015-05-07 16:30:43)

Offline

#16 2015-05-07 16:48:59

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

No problem.
I already use
"pacman -U /var/cache/pacman/pkg/linux-3.19.3-3-x86_64.pkg.tar.xz"
and
"mkinitcpio -p linux"
both in arch live-cd. And nothing has changed.

Now I use "pacman -S grub"

warning: grub-1:2.02.beta2-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) grub-1:2.02.beta2-5

Total Download Size:    5.75 MiB
Total Installed Size:  28.87 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
error: could not open file: /etc/mtab: No such file or directory
error: could not determine filesystem mount points
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

How I must re-configure GRUB?

$ chroot /mnt /bin/bash
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
/usr/bin/grub-probe: error: cannot find a device for / (is /dev mounted?).

What do you mean by "updated system". I new arch user (about a month)

Offline

#17 2015-05-07 16:51:22

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

^ You have not mounted /proc, /sys & /dev
https://wiki.archlinux.org/index.php/Change_root

As @Spider.007 says, you should use the Arch live ISO and `arch-chroot` -- just as you did (?) when installing Arch.


Jin, Jîyan, Azadî

Offline

#18 2015-05-07 16:57:11

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

I use Ubuntu liveCD, because I can't copy output on forum without reboot. OK, I will try again reconfigure in arch.
Of course I used the chroot when install arch smile

Last edited by Diadlo (2015-05-07 17:01:29)

Offline

#19 2015-05-07 17:07:01

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

I re-configure grub and get same kernel panic

Offline

#20 2015-05-07 17:10:44

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Diadlo wrote:

I already use
"pacman -U /var/cache/pacman/pkg/linux-3.19.3-3-x86_64.pkg.tar.xz"
and
"mkinitcpio -p linux"
both in arch live-cd. And nothing has changed.

Did you mount your partition(s) and use `arch-chroot` before you did this?

Have you re-installed GRUB (from within the chroot)?


Jin, Jîyan, Azadî

Offline

#21 2015-05-07 17:23:09

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

Yes. Now I did all of this things again.

arch-chroot /mnt /bin/bash
pacman -U /var/cache/pacman/pkg/linux...pkg.tar.gz
mkinitcpio -p linux
pacman -S grub
grub-mkconfig -o /boot/grub/grub.cfg

Offline

#22 2015-05-07 17:27:42

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Kernel panic - not syncing No working init found.

Diadlo wrote:
pacman -S grub

That just installs the GRUB package -- try installing the bootloader again:

# grub-install --target=i386-pc --recheck /dev/sda

https://wiki.archlinux.org/index.php/Be … therboards


Jin, Jîyan, Azadî

Offline

#23 2015-05-07 17:44:22

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

When I install bootloader I get this message

warning: Sector 33 is already in use by the program 'FlexNet'; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.

Some changes. Now I get grub error.

No such device: <Some UUID>. 
Entering rescue mode...
grub rescue> _

Offline

#24 2015-05-07 17:50:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,701

Re: Kernel panic - not syncing No working init found.

What  specifically did you command?  It looks like you specified a volume, not a drive.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#25 2015-05-07 17:52:22

Diadlo
Member
Registered: 2015-05-06
Posts: 26

Re: Kernel panic - not syncing No working init found.

grub-install --target=i386-pc --recheck /dev/sda

Offline

Board footer

Powered by FluxBB