You are not logged in.
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
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.
Offline
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
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
Offline
Better to chroot into partition and try to remake initramfs
# mkinitcpio -p linux
Yes, I try this. Nothing changed
Offline
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.
Offline
/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
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
Offline
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
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.
Offline
I wanted update some software. And I decided update all software.
And sorry for misprint. It was pacman -Syu
I wrote "pacman -Syu"
Last edited by Diadlo (2015-05-07 16:03:32)
Offline
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?
Offline
No. I don't use "force" flag
Offline
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)
Offline
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
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
^ 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.
Offline
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
Last edited by Diadlo (2015-05-07 17:01:29)
Offline
I re-configure grub and get same kernel panic
Offline
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)?
Offline
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
pacman -S grub
That just installs the GRUB package -- try installing the bootloader again:
# grub-install --target=i386-pc --recheck /dev/sda
Offline
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
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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
grub-install --target=i386-pc --recheck /dev/sda
Offline