You are not logged in.
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 successfulI 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
Does the output from the "blkid" command match what you have in /etc/fstab ?
Offline
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
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
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
roselone, please use code tags instead of quote tags when pasting snippets...I have edited your posts this time
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
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
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.
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
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.1I 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. ![]()
Offline
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-5Offline
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