You are not logged in.

#1 2013-04-18 15:21:38

roselone
Member
Registered: 2013-04-18
Posts: 10

[SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

Today everything seems normally ,I try to reboot but failed. It says can't find "UUID=26***" (the  /  position)
however it boots successfully when I used initramfs-linux-fallback.img
then I try to run:

mkinitcpio -p linux

==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.8.7-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
find: missing argument to `-exec'
modprobe: ERROR: missing parameters. See -h.
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 3.8.7-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

I guess there is something wrong with autodetect, or some modules do not modprobed

I don't know how to deal with.
Help!

edited quote tags to code tags -- Inxsible

Last edited by roselone (2013-04-19 13:27:04)

Offline

#2 2013-04-18 16:19:28

dodo3773
Member
Registered: 2011-03-17
Posts: 820

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

Does the output from the "blkid" command match what you have in /etc/fstab ?

Offline

#3 2013-04-18 17:54:00

roselone
Member
Registered: 2013-04-18
Posts: 10

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

blkid 

 
/dev/sda3: UUID="26b18bb7-9817-4eb5-a926-e7c56215f383" TYPE="ext4"

/etc/fstab

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# UUID=26b18bb7-9817-4eb5-a926-e7c56215f383
/dev/sda3           	/         	ext4      	rw,relatime,data=ordered	0 1

& grub.cfg

menuentry 'Arch GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-26b18bb7-9817-4eb5-a926-e7c56215f383' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  26b18bb7-9817-4eb5-a926-e7c56215f383
	else
	  search --no-floppy --fs-uuid --set=root 26b18bb7-9817-4eb5-a926-e7c56215f383
	fi
	echo	'Loading Linux core repo kernel ...'
	linux	/boot/vmlinuz-linux root=UUID=26b18bb7-9817-4eb5-a926-e7c56215f383 ro  quiet vga=0x31b
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-linux.img
}

edited quote tags to code tags -- Inxsible

Last edited by Inxsible (2013-04-18 18:21:21)

Offline

#4 2013-04-18 17:58:53

roselone
Member
Registered: 2013-04-18
Posts: 10

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

I can boot with the  initramfs-linux-fallback.img... so I think the point is the difference between initramfs-linux-fallback.img and initramfs-linux.img,
the fallbck.img add "-S autodetect" which ignore autodetect hook

Offline

#5 2013-04-18 18:12:07

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

roselone wrote:

I guess there is something wrong with autodetect, or some modules do not modprobed

I don't know how to deal with.
Help!

You seem to have something extremely broken in your shell environment, or you've modified /usr/lib/initcpio/functions.

Last edited by falconindy (2013-04-18 18:56:44)

Offline

#6 2013-04-18 18:20:26

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

roselone, please use code tags instead of quote tags when pasting snippets...I have edited your posts this time


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2013-04-19 06:40:23

roselone
Member
Registered: 2013-04-18
Posts: 10

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

falconindy wrote:
You seem to have something extremely broken in your shell environment, or you've modified /usr/lib/initcpio/functions.

hi, falconindy

I checked my /usr/lib/initcpio/functions and find this in function auto_modules()

 IFS=$'\n' read -rd '' -a mods < \
      <(find /sys/devices -name modalias -exec sort -u {} + |
         # delimit each input by a newline, expanded in place
         xargs -d $'\n' modprobe -d "$MODULEROOT" -qaRS "$KERNELVERSION" |
         sort -u)

when I run find /sys/devices -name modalias -exec sort -u {} + ,got find: missing argument to `-exec'

I google it, and find  this

so I changed this line to find /sys/devices -name modalias | sort -u |

then retry mkinitcpio -p linux, no errs!

however when I reboot , I got the same as before, can't find UUID=26**

any ideas?

Last edited by roselone (2013-04-19 06:40:38)

Offline

#8 2013-04-19 07:34:55

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

roselone wrote:

when I run find /sys/devices -name modalias -exec sort -u {} + ,got find: missing argument to `-exec'

This is a valid invocation of find, something is indeed wrong with your shell. Try replacing find with echo to find out what exactly is being passed to it.

roselone wrote:

so I changed this line to find /sys/devices -name modalias | sort -u |

If anything, it should be find /sys/devices -name modalias -exec cat {} \; | sort -u | . But the original version should work too.

Offline

#9 2013-04-19 09:07:05

roselone
Member
Registered: 2013-04-18
Posts: 10

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

mich41 wrote:

This is a valid invocation of find, something is indeed wrong with your shell. Try replacing find with echo to find out what exactly is being passed to it.
If anything, it should be find /sys/devices -name modalias -exec cat {} \; | sort -u | . But the original version should work too.

thanks mich41

#echo /sys/devices -name modalias -exec sort -u {} +
/sys/devices -name modalias -exec sort -u {} +

#find --version
GNU find version 4.1

I replace with find /sys/devices -name modalias -exec cat {} \; | sort -u | , that really works for me!

I can't figure out what I did to my root shell however.  sad

Offline

#10 2013-04-19 12:05:29

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

It looks like you have some different find.

m@sauron:~ $ which find
/usr/bin/find
m@sauron:~ $ find --version
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0) 
m@sauron:~ $ pacman -Qo find
/usr/bin/find is owned by findutils 4.4.2-5

Offline

#11 2013-04-19 13:25:11

roselone
Member
Registered: 2013-04-18
Posts: 10

Re: [SOLVED] Kernel panic on boot[3.8.7-1-ARCH]

mich41 wrote:

It looks like you have some different find.

It's really strange,not only the find program but also ls,top,md5sum,etc. seem abnormal..

they all have the same wrong file properties. I have fixed them.

mich41, thanks a lot!

Offline

Board footer

Powered by FluxBB