You are not logged in.
hey
when i boot arch from grub i see something with /sbin/init dont found
i know that there are a lot of post about this. but all the fixes that i try dont work for me
i didnt something, just installed following the bginners guide. after the install when i boot this messege apper
what to do?
thanks
Offline
The most likely cause is that your / (root) partition is not mounted properly during boot.
Offline
The most likely cause is that your / (root) partition is not mounted properly during boot.
hey ANOKNUSA
thanks for your replay
how to mount the root partition durning boot? (grub? fstab?...)
grub - when i firstly boot it say something with he cant find the root device,i changed the uiid in grub to the uiid in fstab and it slove this. after it i get messege that say "cant find the /sbin/init"
fstab - i generated the fstab after i mount all my partitions
post the fstab and grub.cfg in pastbin?
thanks
Offline
Partition mounting is assigned in /etc/fstab. Please post /etc/fstab and /etc/default/grub here (and use [code] tags to do so).
Offline
Partition mounting is assigned in /etc/fstab. Please post /etc/fstab and /etc/default/grub here (and use [code] tags to do so).
# /dev/sda1
UUID=adf28392-cf82-4aeb-824c-bff853891390 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda3
UUID=461236a5-8ac8-4085-bbb1-2cdabbbb1a86 /home ext4 rw,relatime,data=ordered 0 2
# /dev/sda2
UUID=A440-7F22 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# /dev/sda1
UUID=adf28392-cf82-4aeb-824c-bff853891390 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=adf28392-cf82-4aeb-824c-bff853891390 / ext4 rw,relatime,data=ordered 0 1
# /dev/sda1
UUID=adf28392-cf82-4aeb-824c-bff853891390 / ext4 rw,relatime,data=ordered 0 1Offline
While that is pretty messed up, the real problem is going to be in GRUB. Nothing happens with fstab until after init starts.
Offline
While that is pretty messed up, the real problem is going to be in GRUB. Nothing happens with fstab until after init starts.
here is my grub.cfg:
i edit the uiid from the fstab only in the "arch linux" entry
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root 9de3d09f-5b66-48f7-9fcb-f832a684a04f
else
search --no-floppy --fs-uuid --set=root 9de3d09f-5b66-48f7-9fcb-f832a684a04f
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_archlinux ###
menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
fi
set gfxpayload=keep
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2964-B259
else
search --no-floppy --fs-uuid --set=root 2964-B259
fi
echo 'Loading Arch Linux pkg-linux kernel ...'
linux /vmlinuz-linux root=UUID=9de3d09f-5b66-48f7-9fcb-f832a684a04f rw quiet
echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
initrd /initramfs-linux.img
}
menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
fi
set gfxpayload=keep
insmod fat
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2964-B259
else
search --no-floppy --fs-uuid --set=root 2964-B259
fi
echo 'Loading Arch Linux pkg-linux kernel ...'
linux /vmlinuz-linux root=UUID=9de3d09f-5b66-48f7-9fcb-f832a684a04f rw quiet
echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
initrd /initramfs-linux-fallback.img
}
### END /etc/grub.d/10_archlinux ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9de3d09f-5b66-48f7-9fcb-f832a684a04f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2964-B259
else
search --no-floppy --fs-uuid --set=root 2964-B259
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=adf28392-cf82-4aeb-824c-bff853891390 rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-9de3d09f-5b66-48f7-9fcb-f832a684a04f' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-9de3d09f-5b66-48f7-9fcb-f832a684a04f' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 2964-B259
else
search --no-floppy --fs-uuid --set=root 2964-B259
fi
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=9de3d09f-5b66-48f7-9fcb-f832a684a04f rw quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-linux.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###Offline
Grub is pointing to UUID=9de3d09f-5b66-48f7-9fcb-f832a684a04f while your fstab says UUID=adf28392-cf82-4aeb-824c-bff853891390 (four times...).
Offline
Grub is pointing to UUID=9de3d09f-5b66-48f7-9fcb-f832a684a04f while your fstab says UUID=adf28392-cf82-4aeb-824c-bff853891390 (four times...).
i chnged the uuid to the uuid from fstab only in "Arch Linux" entry
Offline
And you're sure that that is the menu entry you're using?
Offline
And you're sure that that is the menu entry you're using?
yes
Offline
# /dev/sda2
UUID=A440-7F22 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2That's not enough digits to be a full UUID on the /boot partition. Fix that and delete the last 3 lines (the ones assigning your root partition) as they're the same as the first line. No need to assign root 4 times. If you need to see what the correct UUIDs are, "ls -l /dev/disk/by-uuid" should help.
EDIT: Just looked back and saw your /boot is FAT... that may be the correct UUID then... not sure how FAT does it. Why would you want your /boot to be FAT though... that's asking for trouble IMO.
Last edited by weirddan455 (2014-07-07 05:43:48)
Offline
That's not enough digits to be a full UUID on the /boot partition...
That is perfectly legit for vfat.
Offline
OK ignore that last bit I said. I doubt your /boot is the problem. I just wasn't expecting to see FAT in a modern Linux system... I assumed that file system up and died with Windows 98 lol.
I would take another look at the grub.cfg since you edited it (maybe repost it here.) As stated in the comments at the top of the file, grub.cfg is not meant to be edited manually (instead use the grub tools to generate it for you.) Reason being, with ctrl+F in my browser I counted 8 different instances of that incorrect root UUID in the file. You could have easily edited the wrong one and I'm betting GRUB is still trying to load the wrong root UUID.
Offline
OK ignore that last bit I said. I doubt your /boot is the problem. I just wasn't expecting to see FAT in a modern Linux system... I assumed that file system up and died with Windows 98 lol.
I would take another look at the grub.cfg since you edited it (maybe repost it here.) As stated in the comments at the top of the file, grub.cfg is not meant to be edited manually (instead use the grub tools to generate it for you.) Reason being, with ctrl+F in my browser I counted 8 different instances of that incorrect root UUID in the file. You could have easily edited the wrong one and I'm betting GRUB is still trying to load the wrong root UUID.
the fat partiton is the esp, mounted on /boot.
i say that i edit the uuid only in the "arch linux" entry (uuid from fstab).
so what to do?
edit the uuid in all the entries?
Offline
Go back and slowly and carefully read the wiki pages on Grub and fstab: both your files are a mess. You need to have at least a rudimentary understanding of how these work before you proceed any further.
Offline
weirddan455 wrote:OK ignore that last bit I said. I doubt your /boot is the problem. I just wasn't expecting to see FAT in a modern Linux system... I assumed that file system up and died with Windows 98 lol.
I would take another look at the grub.cfg since you edited it (maybe repost it here.) As stated in the comments at the top of the file, grub.cfg is not meant to be edited manually (instead use the grub tools to generate it for you.) Reason being, with ctrl+F in my browser I counted 8 different instances of that incorrect root UUID in the file. You could have easily edited the wrong one and I'm betting GRUB is still trying to load the wrong root UUID.
the fat partiton is the esp, mounted on /boot.
i say that i edit the uuid only in the "arch linux" entry (uuid from fstab).
so what to do?
edit the uuid in all the entries?
Ah didn't realize you were booting UEFI. Unfortunately the ESP is still one case where a modern computer needs a FAT file system. That said, you don't need to mount the ESP on /boot. Best practice is to mount the ESP somewhere like /boot/efi. That way you're storing as little as possible on that FAT partition (only the EFI files themselves.) Since you don't have a separate /boot partition, if you make this change, /boot will be stored on your root ext4 partition (much better than storing your kernel and grub configuration files on a FAT system IMO.) This is also the way that's documented on the GRUB wiki:
https://wiki.archlinux.org/index.php/Gr … _systems_2
All that said, it doesn't look like this is the problem you're running into with /sbin/init not found. That has to do with the root being mounted incorrectly, not /boot. You may want to go back and change this once you get your other issue sorted though.
What you should do right now is read the wiki like jasonwryan suggested in particular the section about generating a grub.cfg. You should use the method in the wiki instead of manually editing the file.
Offline
Go back and slowly and carefully read the wiki pages on Grub and fstab: both your files are a mess. You need to have at least a rudimentary understanding of how these work before you proceed any further.
i do it, dont work
systemd-sysvcompat - dont work
add init to the kernel line in grub cfg (lib and bin) - dont work
Offline
jasonwryan wrote:Go back and slowly and carefully read the wiki pages on Grub and fstab: both your files are a mess. You need to have at least a rudimentary understanding of how these work before you proceed any further.
i do it, dont work
systemd-sysvcompat - dont work
add init to the kernel line in grub cfg (lib and bin) - dont work
Offline
lisl wrote:jasonwryan wrote:Go back and slowly and carefully read the wiki pages on Grub and fstab: both your files are a mess. You need to have at least a rudimentary understanding of how these work before you proceed any further.
i do it, dont work
systemd-sysvcompat - dont work
add init to the kernel line in grub cfg (lib and bin) - dont work
sorry
i dont understand what to do. post the log from boot or dont say that thing dont work?
Offline
"don't work" is not helpful. I know that your system isn't booting; the deeper problem is that you don't understand enough about how grub works to fix it, and we can't help you with that other than to encourage you to read the wiki and other documentation and fix your configs.
Offline
jasonwryan wrote:lisl wrote:i do it, dont work
systemd-sysvcompat - dont work
add init to the kernel line in grub cfg (lib and bin) - dont worksorry
i dont understand what to do. post the log from boot or dont say that thing dont work?
Post logs.
Offline
lisl wrote:jasonwryan wrote:sorry
i dont understand what to do. post the log from boot or dont say that thing dont work?Post logs.
there are log file that i can copy and paste?
Offline
We aren't going to tell you what to type in the terminal: you have been asked to go and read the ample documentation, please do that.
Offline
weirddan455 wrote:lisl wrote:sorry
i dont understand what to do. post the log from boot or dont say that thing dont work?Post logs.
there are log file that i can copy and paste?
That depends on where the boot is failing. If it still can't find /sbin/init then no you probably won't have logs. What he was trying to tell you is that you have to tell us SOMETHING other than "don't work." For example, post any error messages the system displays on screen. Is the error still the same "/sbin/init not found"? Even the most knowledgeable Linux guru can't diagnose "don't work."
I'm going to link you one last time to the relevant wiki that will help you solve your problem:
https://wiki.archlinux.org/index.php/Gr … ation_file
Read that whole thing until you fully understand how to configure Grub and how to generate a working grub.cfg.
Offline