[Solved] Grub Skips Menu

I've just got a new laptop (Asus M50) and I've been trying to get Arch Linux running with encrypted / and /home partitions by following this tutorial: http://wiki.archlinux.org/index.php/Sys … r_dm-crypt
I installed Grub to my /boot partition (which is unencrypted), but upon reboot I was presented with a blank screen and a flashing cursor.  I suspected Grub wasn't installed correctly, so I reinstalled it by running (from the ArchLive CD):
# grub-install --root-directory=/mnt/boot /dev/sda
Which seemed to run fine, and Grub now actually loads at startup, but it immediately presents me with a grub prompt.  Now I can boot manually from this, for example:
grub> root (hd0, 0)
grub> kernel /vmlinuz26 root=/dev/sda3 ro
grub> initrd /kernel26.img
grub> boot
Allows arch to boot without a hitch.  As far as I can tell, my /boot/grub/menu.lst is correct so I don't understand why grub is skipping the menu, and a few hours of searching Google haven't helped much.
EDIT
GRUB looks for its configuration file as soon as it is loaded. If one is found, then the full menu interface is activated using whatever entries were found in the file. If you choose the command-line menu option, or if the configuration file was not found, then GRUB drops to the command-line interface.
Following up on this, ls /boot/grub | grep menu.lst locates the file, but grub> find /boot/grub/menu.lst returns Error 15: File not found.  So does anybody know why there would be this discrepancy?  I have a feeling that fixing this will fix my problem.
EDIT 2
I'm getting closer... I found a mistake in my previous edit, because grub> find /grub/menu.lst returns (hd0,0), so it was found.  I forgot that grub's root was not necessarily the root of the filesystem.  So now I can type grub> configfile /grub/menu.lst and it will bring up the menu, but it still doesn't load the menu before going to the prompt, and reinstalling grub yet again doesn't fix this.
Last edited by phinux (2008-07-13 04:00:36)

Aha, success.  This guy (http://www.linuxquestions.org/questions … ad-562236/) seemed to be having the same problem as me, and his fix worked for me as well.  I'll just retype it here in case anybody else has the same problem, but the original post is here.
Reinstall grub:
grub> root (hd0,0)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done
Now for whatever reason the final line (Running "install...") is not correct so if you run it again, but remove "/boot" from "/boot/grub/menu.lst" everything works:
grub> install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /grub/menu.lst
Reboot and it should go straight to the menu.

Similar Messages

  • [SOLVED] Grub 2 gives Error: Invalid Signature

    Hello everyone.
    I am trying to dual boot Arch and Windows 7. I am boot into Arch with no problem but when I select Windows 7; I am greeted with the 'Error: Invalid Signature' and redirects back to the Grub 2 menu.
    I have googled and have tried many times, so I thought I would come to the endless supply of knowledge of the bbs.archlinux forums.
    I can boot into Windows when I have it as the first boot drive in the BIOS, so I Windows is fine. It's got to be one simple step I'm missing here.
    P.S. I really wasn't sure where to put this post.
    I'll go ahead and list some (hopefully) useful information:
    sudo fdisk -l
    Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sdc1 * 63 1992059 995998+ 83 Linux
    Partition 1 does not start on physical sector boundary.
    /dev/sdc2 1992060 9992429 4000185 82 Linux swap / Solaris
    Partition 2 does not start on physical sector boundary.
    /dev/sdc3 9992430 976773167 483390369 83 Linux
    Partition 3 does not start on physical sector boundary.
    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0ca96061
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 1953521663 976759808 7 HPFS/NTFS/exFAT
    Disk /dev/sda: 60.0 GB, 60022480896 bytes, 117231408 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x4df1d31e
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 117227519 58612736 7 HPFS/NTFS/exFAT
    Where /dev/sda is Windows
               /dev/sdb is an extra disk that holds music and documents
               /dev/sdc is Arch
                       sdc1 is /boot
                       sdc2 is swap
                       sdc3 is root
    Also my BIOS are set up to boot the Arch disk, then Windows, and final the extra disk.
    /etc/grub.d/40_custom:
    #!/bin/sh
    exec tail -n +3 $0
    # 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.
    menuentry "Windows 7" {
    set root=(hd0,1)
    drivemap -s (hd0) (hd1)
    chainloader +1
    /boot/grub/grub.cfg
    # 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
    set default="0"
    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 part_msdos
    insmod ext2
    set root='hd2,msdos3'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos3 --hint-efi=hd2,msdos3 --hint-baremetal=ahci2,msdos3 c15450d4-4fe6-4124-aa4e-a6419188845b
    else
    search --no-floppy --fs-uuid --set=root c15450d4-4fe6-4124-aa4e-a6419188845b
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    fi
    terminal_input console
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    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-c15450d4-4fe6-4124-aa4e-a6419188845b' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 4637508e-7f78-4f2d-9cd7-90868f1de62f
    else
    search --no-floppy --fs-uuid --set=root 4637508e-7f78-4f2d-9cd7-90868f1de62f
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=c15450d4-4fe6-4124-aa4e-a6419188845b ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-c15450d4-4fe6-4124-aa4e-a6419188845b' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd2,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 4637508e-7f78-4f2d-9cd7-90868f1de62f
    else
    search --no-floppy --fs-uuid --set=root 4637508e-7f78-4f2d-9cd7-90868f1de62f
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=c15450d4-4fe6-4124-aa4e-a6419188845b ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.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/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    ### 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.
    menuentry "Windows 7" {
    set root=(hd0,1)
    drivemap -s (hd0) (hd1)
    chainloader +1
    ### 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 ###
    Thanks in Advance for anyone that is willing to help. Let me know if you need anymore information.
    I am going to keep on researching and trying.
    Last edited by pjk1939 (2012-12-02 23:22:35)

    Alright everyone I got it working. I will show what I did and mark as solved.
    For some reason, that I do not know the answer too, the Window's bootloader was on my extra harddrive /dev/sdb1 as opposed to /dev/sda1, where my Windows partion actually is. I'm not sure what I did to do that or if that is just is just how Windows works.
    my /etc/grub/40_custom:
    #!/bin/sh
    exec tail -n +3 $0
    # 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.
    menuentry "Windows 7" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set BE4CA71B4CA6CD89
    chainloader +1
    I added in the
    insmod ntfs
    and
    search --no-floppy --fs-uuid --set BE4CA71B4CA6CD89
    so that it would boot from the /dev/sdb1 drive.
    I found the UUID by running the command:
    sudo blkid

  • No sound in vlc and skips menu

    My vlc skips the menu and has no work in a img file. Sound works in mplayer but skips menu. Heres a log when i start it i use x86_x64 and gnome3.
    [jakob@Batman ~]$ vlc
    VLC media player 1.1.10 The Luggage (revision exported)
    Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
    Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
    [0x2215120] main libvlc: Kör vlc med standardgränssnittet. Använd "cvlc" för att använda vlc utan gränssnitt.
    Blocked: call to setlocale(6, "")
    Warning: call to srand(1307804955)
    Warning: call to rand()
    Blocked: call to setlocale(6, "")
    (process:22834): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
    Warning: call to rand()
    Warning: call to rand()
    Warning: call to rand()
    Warning: call to rand()
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    [0x232e8a0] signals interface error: signal 17 overriden (0x36d9338760)
    [0x232e8a0] signals interface error:  /usr/lib/libQtCore.so.4(?)[(nil)]
    releasing zombie picture
    releasing zombie picture
    releasing zombie picture
    [0x232e8a0] signals interface error: signal 17 overriden (0x36d9338760)
    [0x232e8a0] signals interface error:  /usr/lib/libQtCore.so.4(?)[(nil)]
    [jakob@Batman ~]$
    Kör vlc med standardgränssnittet. Använd "cvlc" för att använda vlc utan gränssnitt.= Run vlc with standardui use cvlc to use without ui.

    Bump.

  • [SOLVED] GRUB 2 - "error: file not found" after Clonezilla Restore

    Hello,
    I backed up my Arch Install which is one root partition covering the entire SDD with Clonezilla, to play around with Gentoo and FreeBSD on my Laptop.
    Now I restored the image and when GRUB 2 loads I see "error: file not found" three times for a short momemt before I'm in the GRUB 2 menu.
    When I boot my I also see these 3 messages (probably the once from the early loading process) and "Loading Linux ck kernel...." "Loading initrafms...." "Press any key to continue..." When I wait for a short time or press enter it boots like expected (fsck message appears for a short time since I'm using quite boot and I'm in KDM after that).
    Grub loading...
    error: file not found
    error: file not found
    error: file not found
    Loading Linux ck kernel...
    Loading initramfs...
    Press any key to continue...
    I did not have this when I  backed it up. It booted into the menu and when I booted the menu entry it would go black to show me the fsck message and seconds later I was in KDM.
    I tried $ sudo grub-mkconfig but it did not change anything.
    This is my current /boot/grub/grub.cfg
    # 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
    set default="0"
    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 part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 a93fa938-f74f-477d-9573-678340bb2940
    else
    search --no-floppy --fs-uuid --set=root a93fa938-f74f-477d-9573-678340bb2940
    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
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch GNU/Linux, with Linux ck kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-true-a93fa938-f74f-477d-9573-678340bb2940' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 a93fa938-f74f-477d-9573-678340bb2940
    else
    search --no-floppy --fs-uuid --set=root a93fa938-f74f-477d-9573-678340bb2940
    fi
    echo 'Loading Linux ck kernel ...'
    linux /boot/vmlinuz-linux-ck root=/dev/sda1 elevator=noop ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-ck.img
    menuentry 'Arch GNU/Linux, with Linux ck kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-fallback-a93fa938-f74f-477d-9573-678340bb2940' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 a93fa938-f74f-477d-9573-678340bb2940
    else
    search --no-floppy --fs-uuid --set=root a93fa938-f74f-477d-9573-678340bb2940
    fi
    echo 'Loading Linux ck kernel ...'
    linux /boot/vmlinuz-linux-ck root=/dev/sda1 elevator=noop ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-ck-fallback.img
    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-a93fa938-f74f-477d-9573-678340bb2940' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 a93fa938-f74f-477d-9573-678340bb2940
    else
    search --no-floppy --fs-uuid --set=root a93fa938-f74f-477d-9573-678340bb2940
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=/dev/sda1 elevator=noop ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch GNU/Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-a93fa938-f74f-477d-9573-678340bb2940' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 a93fa938-f74f-477d-9573-678340bb2940
    else
    search --no-floppy --fs-uuid --set=root a93fa938-f74f-477d-9573-678340bb2940
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=/dev/sda1 elevator=noop ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.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/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    ### 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 ###
    Anyone has a clue what files it is looking for? And why it doesn't boot straight away, when there is nothing that keeps it from booting up normal anyway?
    Last edited by blackout23 (2013-03-21 16:16:59)

    the.ridikulus.rat wrote:Upgrade to grub 2.00, that will give info on which file is actually missing. And then recreate /boot/grub/grub.cfg and check whether that error is gone.
    I think I'm already on Grub 2.0.0 otherwise I wouldn't have this cryptic menu configuration file.
    local/grub-bios 2.00-1
    GNU GRand Unified Bootloader - i386 PC BIOS Modules
    local/grub-common 2.00-1
    GNU GRand Unified Bootloader - Utilities and Common Files

  • (Solved) grub rescue file not found

    I reinstalled arch, also installed grub with arch installation. After reboot grub gives that error.
    "file not found"
    what should i do now? I'm writing from ubuntu live cd
    Last edited by bilgee0629 (2011-04-16 07:22:25)

    First thing to do, Assuming an Error 15: file not found, would be to check your grub's menu.lst to make sure that it is referencing the correct partition and vmlinuz26. If you have a separate boot partition it should reference that partition and just use /vmlinuz26 (as explained on the following thread https://bbs.archlinux.org/viewtopic.php?id=56251). However if everything there seems correct, you will have to post more information for people to help you, such as the contents of /etc/fstab along with your menu.list.
    you can check the menu.lst through the ubuntu live cd by mounting the arch root partition (or /boot if you partitioned it that way) and opening /boot/grub/menu.lst.
    Also, this might be of help http://ubuntuforums.org/showthread.php?t=1263009.
    Last edited by eyhaszewin (2011-04-15 13:28:13)

  • [Solved] Grub not displaying menu, error messages from grub-mkconfig

    Hi I'm new
    I have (or rather, am trying to setup) a dual boot with Windows 8.1 and Arch, with each OS on separate SSDs.
    Windows 8.1 already installed, Arch installation (seems to have) has gone smoothly. However, when I remove the installation usb, and try to boot, I get a command line prompt:
    grub >_
    ...instead of a menu. I tried typing 'boot', but got 'you need to load the kernel first'. So I cannot access my arch installation without chrooting (or knowing how to compile the kernel in the command line, which I could not find after a lot of searching)
    I followed the documentation in the Beginner's Guide and the GRUB page for installing and configuring GRUB. This is UEFI (grub2), not BIOS (grub legacy).
    pacman -S grub efibootmgr
    grub-install --target=x86S64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
    No error messages. I also installed os-prober for kicks. When I went to generate the config file (as recommended for beginners), I got a torrent of what I interpreted to be error messages, not just copacetic output:
    grub-mkconfig -o /boot/grub/grub.cfg
    resulted in:
    click this link for error messages
    (sorry about the image. I had to shutdown and reboot into my windows partition, since I still can't arch it up. If any/all of you have a better way to reproduce output and feel it pertinent, I'm all ears)
    so upon exiting chroot and rebooting, grub boots up to the above effect; no menu is displayed. And I am sad panda.
    Background Information:
    Partition scheme:
    /dev/sda1 - BIOS boot partition (I didn't read carefully, lol)
    /dev/sda2 - EFI System Partition - mounted to /mnt/boot when chrooting in
    /dev/sda3 - Root partition - mounted to /mnt/ when chrooting in
    /dev/sda4 - Home partition - mounted to /mnt/home when chrooting in
    The installation and configuration described above was done in chroot with the above partition scheme
    I originally had issues booting into UEFI mode with the arch iso (written to a usb stick for the initial install). The boot would hang at 'triggering uevents'. I ultimately fixed this by pressing 'e' in the bootloader menu (also grub, I believe) and prepended
    linux /boot/vmlinux-linux root=UUID=978e3e81-8048-4ae1-8a06-aa727458e8ff nomodeset nouveau.modeset=0
    It then (successfully triggered uevents? and) booted normally
    ALSO:
    This is a custom built pc.
    Hardware:
    intel i7 4930K
    ASUS Sabertooth X79 mobo
    ASUS GTX 780 Ti gpu
    ballistix sport DDR3 RAM (4 x 8 GB)
    3 x 128 GB SSD (ADATA P900)
    1 x 2 TB HDD (Toshiba, 7200 rpm)
    Hey, if you made it to the bottom of this post, I really appreciate you taking the time out of your day. Thank you!
    Last edited by Otsdarva (2014-06-09 03:22:25)

    I realized that since I was not using EFISTUB, I could not mount the ESP to /boot; it had to be /boot/efi. A quick remount-reinstall of grub, then rerunning grub-mkconfig solved the issue.
    Also, regarding WonderWoofy's suggestion: I learned by trying gummiboot that for whatever reason the kernel hadn't compiled properly when I ran
    pacstrap /mnt base base-devel
    Fixed via
    pacman -S linux
    Thanks for your help, everybody!

  • [Solved] grub in minimal mode, not using my menu.lst

    Hi everyone,
    Installed Archlinux (using chakra livecd) on a friend's laptop, but for some reason have grub only in minimal mode... I can boot using
    configfile /boot/grub/menu.lst
    but I need to retype this at each boot...
    Partition layout is :
    * sda1 : Windows Vista
    * sda2 : HP resue partition
    * sdb1 : archlinux root ("/"). /boot is on this partition
    * sdb2 : /home
    My menu.lst works as expected.
    I tried to run
    grub-install /dev/sdb
    no error appears on the output, but no effect on next reboot
    I also tried this on the grub prompt :
    root (hd1,0)
    setup (hd1)
    Same thing, no error reported, but no effect on reboot.
    Any idea ?
    Last edited by willy9 (2009-07-01 14:44:25)

    D'oh !!!
    I just realized that
    grub-install /dev/sda
    solved everything... Sorry for the noise

  • [SOLVED] Existing GRUB Win menu entries don't appear

    Hi,
    Just finished a fresh dual boot (Arch-64/Win7-64), dual HDs installation.
    I've installed os-prober prior to installing grub, and indeed a (seemingly) correct menu entry was added (in segment 30-see below).
    Yet after reboot, this entry does NOT appear!
    I've tried adding a respective entry in the 40-custom, (and ran ' grub-mkconfig -o /boot/grub/grub.cfg' afterwards), yet still the same (menu entry appears in grub.cfg yet does NOT appear after reboot!).
    Please advise!
    Thanks!
    my grub.cfg (note existing grub 30 & 40 segments
    # 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 part_gpt
    insmod ext2
    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 6ee857d9-95d1-47c4-ad47-18b979f49e74
    else
    search --no-floppy --fs-uuid --set=root 6ee857d9-95d1-47c4-ad47-18b979f49e74
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    fi
    terminal_input console
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-6ee857d9-95d1 -47c4-ad47-18b979f49e74' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 76af1051-313e-4736-a61c-7c6c8dbaf6ba
    else
    search --no-floppy --fs-uuid --set=root 76af1051-313e-4736-a61c-7c6c8dbaf6ba
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=6ee857d9-95d1-47c4-ad47-18b979f49e74 rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kern el-fallback-6ee857d9-95d1-47c4-ad47-18b979f49e74' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 76af1051-313e-4736-a61c-7c6c8dbaf6ba
    else
    search --no-floppy --fs-uuid --set=root 76af1051-313e-4736-a61c-7c6c8dbaf6ba
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=6ee857d9-95d1-47c4-ad47-18b979f49e74 rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6ee857d9-95d1-47c4-ad47-18b979f49e74' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 76af1051-313e-4736-a61c-7c6c8dbaf6ba
    else
    search --no-floppy --fs-uuid --set=root 76af1051-313e-4736-a61c-7c6c8dbaf6ba
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=6ee857d9-95d1-47c4-ad47-18b979f49e74 rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-6ee857d9-95d1-47c4-ad47-18b979f49e74' {
    ### 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 ###
    menuentry 'Windows 7 (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-67AD726A113E664B' {
    insmod part_msdos
    insmod ntfs
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 67AD726A113E664B
    else
    search --no-floppy --fs-uuid --set=root 67AD726A113E664B
    fi
    chainloader +1
    ### 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.
    # Windows 7
    menuentry "Windows 7" {
    set root=(hd1,1)
    chainloader +1
    ### 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+ ###
    Last edited by mibadt (2013-12-19 03:00:05)

    i think you have a missing "{" to close the submenu.
    ezik

  • [Solved] Grub Menu at boot How to remove?

    There is a pesky dialog box that starts when the computer starts. It is open for 4 seconds then moves on. It says something about choosing a grub and gives two options. It automatically defaults to the first option after 4 seconds. Does anyone know how to eliminate this and have it automatically default to the first option without the 4 seconds?
    Last edited by blankwall (2013-06-13 03:56:51)

    Mr.Elendig wrote:
    WonderWoofy wrote:Remember with grub, you have to regenerate that sily config file everytime you make a change to the configuration file.
    not if you just edit /boot/grub/grug.cfg instead.
    This is true, but the OP has made it sound as though he is following the wiki, which instructs you to use the recommended /etc/default/grub. 
    @OP, grub is not necessarily the right way to go about things.  If you really like and know lilo, use that instead.  I think the ability to choose your software as you please is one of the really defining aspects of Arch Linux.

  • [SOLVED]Grub fails to open dm-crypt+LUKS volume on boot(Waiting 10s..)

    I know there are quite a few solved posts like these but it's usually because of "mkinitcpio -p linux" not being regenerated.
    My problem is after boot Grub says:
    running hook [udev]
    running hook [encrypt]
    Waiting 10 seconds for device /dev/disk/by-uuid/d1d0825c-25d1-4cbe-811f-725d9ef8d034>...
    ERROR: device 'UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034' not found. Skipping fsck.
    ERROR: Unable to find root device 'UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034'.
    Here are all the files that I think would be needed for this:
    /etc/fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    #/dev/mapper/cryptroot / ext4 rw,realtime,data=ordered 0 1
    UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 / ext4 rw,relatime,data=ordered 0 1
    #/dev/sda5 /boot ext4 rw,relatime,data=ordered 0 2
    UUID=d04b37b1-4dfb-451c-b582-b9d95ca8fe22 /boot ext4 rw,relatime,data=ordered 0 2
    lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 298.1G 0 disk
    ├─sda1 8:1 0 100M 0 part
    ├─sda2 8:2 0 97.6G 0 part
    ├─sda3 8:3 0 1K 0 part
    ├─sda5 8:5 0 300M 0 part
    ├─sda6 8:6 0 50G 0 part
    │ └─cryptroot 254:1 0 50G 0 crypt /
    ├─sda7 8:7 0 1G 0 part
    └─sda8 8:8 0 149.1G 0 part
    sdb 8:16 1 29.3G 0 disk
    ├─sdb1 8:17 1 558M 0 part
    └─sdb2 8:18 1 31M 0 part
    sdc 8:32 1 15G 0 disk
    └─sdc1 8:33 1 15G 0 part /mnt/usb
    sr0 11:0 1 1024M 0 rom
    loop0 7:0 0 240.9M 1 loop
    loop1 7:1 0 1.5G 1 loop
    └─arch_root-image 254:0 0 1.5G 0 dm /etc/resolv.conf
    loop2 7:2 0 1.5G 0 loop
    └─arch_root-image 254:0 0 1.5G 0 dm /etc/resolv.conf
    blkid
    /dev/sda1: LABEL="System Reserved" UUID="3A481C2D481BE703" TYPE="ntfs" PARTUUID="850a6169-01"
    /dev/sda2: UUID="EE3443C234438D11" TYPE="ntfs" PARTUUID="850a6169-02"
    /dev/sda5: UUID="d04b37b1-4dfb-451c-b582-b9d95ca8fe22" TYPE="ext4" PARTUUID="850a6169-05"
    /dev/sda6: UUID="691c218e-658f-47ff-8296-6b266b2c06c9" TYPE="crypto_LUKS" PARTUUID="850a6169-06"
    /dev/sdb1: UUID="2014-07-03-18-41-56-00" LABEL="ARCH_201407" TYPE="iso9660" PTUUID="6039e1c4" PTTYPE="dos" PARTUUID="6039e1c4-01"
    /dev/sdb2: SEC_TYPE="msdos" LABEL="ARCHISO_EFI" UUID="3B47-A69A" TYPE="vfat" PARTUUID="6039e1c4-02"
    /dev/loop0: TYPE="squashfs"
    /dev/loop1: UUID="5857fcdc-02d9-4d16-aeb5-00d786995ffc" TYPE="ext4"
    /dev/loop2: UUID="5857fcdc-02d9-4d16-aeb5-00d786995ffc" TYPE="ext4"
    /dev/mapper/arch_root-image: UUID="5857fcdc-02d9-4d16-aeb5-00d786995ffc" TYPE="ext4"
    /dev/mapper/cryptroot: UUID="d1d0825c-25d1-4cbe-811f-725d9ef8d034" TYPE="ext4"
    /dev/sdc1: UUID="86D3-3C7E" TYPE="vfat" PARTUUID="c3072e18-01"
    /dev/sda7: PARTUUID="850a6169-07"
    /dev/sda8: PARTUUID="850a6169-08"
    /etc/default/grub
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda6:cryptroot"
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    /boot/grub/grub.cfg
    # 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 loadfont unicode ; 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_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1
    insmod ext2
    set root='cryptouuid/691c218e658f47ff82966b266b2c06c9'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='cryptouuid/691c218e658f47ff82966b266b2c06c9' d1d0825c-25d1-4cbe-811f-725d9ef8d034
    else
    search --no-floppy --fs-uuid --set=root d1d0825c-25d1-4cbe-811f-725d9ef8d034
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=/dev/sda6:cryptroot quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1
    insmod ext2
    set root='cryptouuid/691c218e658f47ff82966b266b2c06c9'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='cryptouuid/691c218e658f47ff82966b266b2c06c9' d1d0825c-25d1-4cbe-811f-725d9ef8d034
    else
    search --no-floppy --fs-uuid --set=root d1d0825c-25d1-4cbe-811f-725d9ef8d034
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=/dev/sda6:cryptroot quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-d1d0825c-25d1-4cbe-811f-725d9ef8d034' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1
    insmod ext2
    set root='cryptouuid/691c218e658f47ff82966b266b2c06c9'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='cryptouuid/691c218e658f47ff82966b266b2c06c9' d1d0825c-25d1-4cbe-811f-725d9ef8d034
    else
    search --no-floppy --fs-uuid --set=root d1d0825c-25d1-4cbe-811f-725d9ef8d034
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=/dev/sda6:cryptroot quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.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+ ###
    Things I tried:
    Replace this line in grub.cfg with
    linux /boot/vmlinuz-linux root=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034 rw cryptdevice=UUID=d1d0825c-25d1-4cbe-811f-725d9ef8d034:cryptroot quiet
    Do mkinitcpio -p linux but the hook ecrypt is there, so I assume it's a grub issue.
    In
    /etc/default/grub
    replace GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda6:cryptroot" with actual UUID, etc.
    Grub config was made with
    grub-mkconfig -o /boot/grub/grub.cfg
    Grub was installed with
    grub-install --target=i386-pc --recheck /dev/sda
    Last edited by shape (2014-07-21 15:23:05)

    Welcome to the forum :-)
    Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
    When posting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    It makes the code more readable and - in case of longer listings - more convenient to scroll through.

  • [SOLVED]GRUB Dual-boot problem

    Hey guys, I need some help since I haven't had any issues with GRUB until now. I've read the GRUB page on the wiki and several other sites, but I'm still not sure which method I should use.
    Anyway, everything was fine yesterday, I could boot into both my Windows and Arch. Then for some reason today, I tried booting into Windows, but stated BOOTMGR is missing, press CTRL+ALT+DEL to restart. So I tried booting into Arch, which was fine. So I used the Windows CD and then used Startup Repair to fix Windows, but unfortunately it didn't work. I then typed bootrec /fixmbr (which was typed impulsively, since I use that whenever I uninstall Linux). Anyway, that makes Windows overwrite to the MBR, so after booting my laptop it goes straight to Windows.
    So I was wondering whether to use the method where you have to use chroot, the method you can just use grub> find /grub/stage1 and install to MBR, or just run through the Arch install CD and skip everything except installing the bootloader and rebooting.
    Replies are appreciated, thanks in advance.
    EDIT: Solved it. I booted in the Arch Linux install CD and followed the instructions on the wiki. I switched to the grub shell and used
    grub> find /grub/stage1
    for use in root. It displayed (hd0,6), so I then used
    grub> root (hd0,6)
    . Lastly I used
    grub> setup (hd0)
    to install GRUB to the MBR. It works perfectly again.
    Last edited by Reki (2011-11-27 14:31:23)

    I know exactly what the problem is.
    If you're using rEFIt, sync your partition tables (should be the menu item called 'Partitioning Tool'). The problem is that GRUB has been installed, but doesn't know where to find the Arch partition.
    After syncing, you may find that the boot process hangs at the Linux logo on a gray background. No worries — just reboot and the problem should fix itself.
    N.B. You will need to do a partition table sync every time you change your hard drive's layout.

  • [SOLVED] Grub error 18 - cannot boot to Windows

    Earlier today I tried to install Arch 64bit (I had 32bit earlier) with kdemod to test new KDE4.2. However, after installation I could not boot neither Arch nor Windows. Grub appeared, but every single option gave me an error. I can't remember anymore which error it was, but It doesn't matter anymore. I thought I had made a really stupid and basic mistake while installing, I just didn't know what.
    I wanted to test KDE4.2 so much so I installed Kubuntu (yeah, this topic is not related to Arch Linux, I hope that somebody can help me though, move this topic to somewhere else if it doesn't belong here ). Installation was fine, booting to Kubuntu was fine (and upgrading to KDE4.2 was fine), but booting to Windows was not. It gave me a following error:
    Error 18: Selected cylinder exceeds maximum supported by BIOS
    I googled a bit and found this: http://wiki.linuxquestions.org/wiki/GRUB#Error_18 I reinstalled Kubuntu using /dev/sdb1 as /boot and /dev/sdb2 as / (/dev/sdb3 is windows and /dev/sdb4 is my game partition, ntfs). Before this I had /dev/sdb1 as / and /dev/sdb2 as swap (now I have no swap at all, my 4GB RAM should be enough). The only difference was that at first grub gave me error 15 (I fixed it with Kubuntu LiveCD). After that - no difference.
    I need Windows for playing. That's why it's very important that I can use it. [SOLVED] In addition, I should say that /dev/sda is a separated hard drive which is encrypted with Truecrypt. (I said this because I think that Kubuntu tried to install grub on (hd0)...) When I tried to mount this hard drive with Kubuntu, it couldn't do it. I wanted to test mounting on Windows to check if it is just Kubuntu's problem. If not, I'm fucked because this hard drive contains VERY VERY VERY IMPORTANT files. [/SOLVED]
    I really need help, please. If somebody can help me, (s)he is my hero.
    Last edited by Exitium (2009-01-29 14:42:32)

    Oops, I forgot:
    menu.lst:
    (Yup, a lot of comments, Ubuntu style)
    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default 0
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu
    # Pretty colours
    #color cyan/blue white/blue
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    # examples
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=504fab5b-7bb6-4b20-af58-83677386de37
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    ## ## End Default Options ##
    title Ubuntu 8.10, kernel 2.6.27-11-generic
    uuid 504fab5b-7bb6-4b20-af58-83677386de37
    kernel /vmlinuz-2.6.27-11-generic root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro quiet splash
    initrd /initrd.img-2.6.27-11-generic
    quiet
    title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
    uuid 504fab5b-7bb6-4b20-af58-83677386de37
    kernel /vmlinuz-2.6.27-11-generic root=UUID=e85e83e5-0f7c-419e-8cad-1fe5d9128e8f ro single
    initrd /initrd.img-2.6.27-11-generic
    title Ubuntu 8.10, memtest86+
    uuid 504fab5b-7bb6-4b20-af58-83677386de37
    kernel /memtest86+.bin
    quiet
    title Wintoosa
    root (hd1,2)
    savedefault
    makeactive
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1
    fdisk -l
    (Note: These results are mainly in Finnish. It could be hard to you to read it... But whatever... I'll translate these only if necessary)
    Levy /dev/sda: 640.1 Gt, 640135028736 tavua
    255 päätä, 63 sektoria/ura, 77825 sylinteriä
    Yksiköt = 16065 * 512 = 8225280 -tavuiset sylinterit
    Levyn tunniste: 0xcc5d88e2
    Laite Käynn Alku Loppu Lohkot Id Järjestelmä
    /dev/sda1 * 244091 485122 1936074870+ b8 BSDI sivutus
    Osion 1 loppu ei ole sylinterin rajalla.
    /dev/sda2 176430 394864 1754572509+ 43 Tuntematon
    Osion 2 loppu ei ole sylinterin rajalla.
    /dev/sda3 177329 413105 1893868925 29 Tuntematon
    Osion 3 loppu ei ole sylinterin rajalla.
    /dev/sda4 57435 309703 2026342066 5c Priam Edisk
    Osion 4 loppu ei ole sylinterin rajalla.
    Osiotaulumerkinnät eivät ole levyjärjestyksessä
    Levy /dev/sdb: 500.1 Gt, 500107862016 tavua
    255 päätä, 63 sektoria/ura, 60801 sylinteriä
    Yksiköt = 16065 * 512 = 8225280 -tavuiset sylinterit
    Levyn tunniste: 0x0007a52a
    Laite Käynn Alku Loppu Lohkot Id Järjestelmä
    /dev/sdb1 1 128 1028128+ 83 Linux
    /dev/sdb2 129 13185 104880352+ 83 Linux
    /dev/sdb3 13186 26239 104856255 7 HPFS/NTFS
    /dev/sdb4 26240 60801 277619265 7 HPFS/NTFS
    Last edited by Exitium (2009-01-28 21:05:33)

  • [SOLVED] GRUB crashed after pacman -Su

    Hello all,
    I did a system update about 2 hours ago, I did pacman -Syy and pacman -Su. Every thing looked normal.
    Restarted and system crashes right in GRB, it doesn't even shows the menu or error message, it just fills the screen with "GRUB GRUB GRUB GRUB GRUB GRUB GRUB".
    I checked the disk, partition tables are ok, and the whol HD looks ok, no errors at all (checked with system rescue cd, a gentoo live cd).
    I also mounted the boot partition, all files seem to be ok, grub menu, etc..
    /grub/menu.lst was modified today, but looks ok.
    Any Idea of what could happen?
    How to solve it?
    Should I try to replace grub?
    Last edited by iopo (2011-04-28 11:31:34)

    Thank you hcjl and demian.
    Problem solved after GRUB re-install.
    Here is the procedure (resume from hcjl links) I made, just in case someone else needs it:
    1- Download the arch iso and write it to cd or dvd
    2- Run the cd, login as root
    3- Mount arch and boot partitions:
    -Find boot and arch partitions with
    fdisk -l
    Create a directory where you would like to mount the arch partition, then mount it:
    mkdir /mnt/arch
    mount /dev/<device-or-partition-name> /mnt/arch
    4- Changing Root:
    cd /mnt/arch
    mount -t proc proc proc/
    mount -t sysfs sys sys/
    mount -o bind /dev dev/
    Mount the boot partition:
    mount /dev/<device-or-partition-name> boot/
    And change root:
    chroot . /bin/bash
    5- Install GRUB on hd0 (first hard drive):
    # grub
    grub> setup (hd0)
    6- Exit all, reboot
    That fixed my problem, and preserved my original GRUB menu (I did a backup of broken GRUB, but it was nor necesary)
    Thank you all for your help.
    Last edited by iopo (2011-04-28 21:16:47)

  • [SOLVED] Grub problem using fakeraid

    Hi,
    I've been trying to install arch on Raid0 following https://wiki.archlinux.org/index.php/In … _Fake-RAID.
    I load dm_mod and install arch using this partition table
    pdc_jhaaaaghi1 (Boot) Primary NTFS (Windows)
    pdc_jhaaaaghi2           Primary NTFS (Windows)
    pdc_jhaaaaghi3           Primary ext2   (/boot)
    pdc_jhaaaaghi5           Logical  ext4   (/)
    pdc_jhaaaaghi6           Logical  ext4   (/home)
    pdc_jhaaaaghi7           Logical  swap
    I install dmraid package and on configuration I add dm_mod to MODULES line and dmraid to HOOKS line in mkinitcpio.conf
    I start configuring grub (I add (hd0,2) to root lines) and when it fails switch to another tty and run
    # mount -o bind /dev /mnt/dev
    # mount -t proc none /mnt/proc
    # mount -t sysfs none /mnt/sys
    # chroot /mnt /bin/bash
    # dmsetup mknodes
    # ln -s /dev/mapper/pdc_jhaaaaghip1 /dev/mapper/pdc_jhaaaaaghi1
    # grub --device-map=/dev/null
    grub> device (hd0) /dev/mapper/pdc_jhaaaaghi
    grub> geometry (hd0) 121576 255 63
    grub> root (hd0,2)
    grub> setup (hd0)
    grub> quit
    On setup it says it's done but when I reboot I get this message instead of grub
    Reboot and Select proper Boot device
    or Insert Boot Media in selected Boot device and press a key
    Thanks
    Last edited by Irozga (2010-11-16 20:12:09)

    Ok, it's solved now.
    It wasn't the Gentoo's wiki thing. It was because of bios configuration and not Arch installation. I didn't look at this because windows was booting correctly before installation. But using the boot menu and selection my raid array it showed grub so I looked the boot device priority in bios and put my array first (it was second after usb devices).

  • [Solved] Reboot pulldown menu in KDE4

    I wonder if someone succeed in enabling this feature under archlinux, with kde 4. 
    I have the line "default saved" in my menu.lst and I have also added the line "savedefault" at the end of each boot section. The reboot pulldown menu appears and give me the choice of what to reboot with, but it doesn't have any effect (it always reboot with the first boot section written in the grub).
    Maybe I missed something ? [edit] solved with KDE 4.4.
    Last edited by keronn (2010-03-18 01:42:38)

    Hello !
    djszapi wrote:Do you mean that whatever you change from the grub menu list, even only the first choice can boot?
    Yes, but this faultly behaviour only occurs with the use of the kde4 reboot pulldown menu (the command "grub-set-default" works well).
    This is my menu.lst :
    # general configuration:
    timeout   5             
    default   saved             
    color light-blue/black light-cyan/blue
    # (0) Arch Linux
    title  Arch Linux
    root   (hd0,1)
    kernel /boot/vmlinuz26 edd=off root=/dev/disk/by-uuid/b663dcf4-7adf-4900-bc78-779f017be78b ro
    initrd /boot/kernel26.img
    savedefault
    # (1) Arch Linux
    title  Arch Linux Fallback
    root   (hd0,1)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/b663dcf4-7adf-4900-bc78-779f017be78b ro
    initrd /boot/kernel26-fallback.img
    savedefault
    # (1) Debian
    title Debian
    root (hd0,2)
    chainloader +1
    savedefault

Maybe you are looking for

  • Updated to newest itunes and now itunes store wont open. HELP!!!

    the title says most of it, but i tried everything! i know its not my firewall and i already cleared the dns or whatever. i cant understand the diagnostics so i'll post them here. PLEASE HELP! Microsoft Windows Vista Home Premium Edition (Build 6000)

  • WRT300N: Class C routing & NAT

    Hi, I've just been brought in to as a network admin to manage the network of small 'net cafe. The network the admin before had setup really turned out to be a disaster. Okay, here's the breakdown of the equipment I have available: 30 hosts 3 switches

  • Creative zen microphoto 4GB big prob

    Since a week or so, when i open the player by moving and holding the power button to on position, the only thing appear is the splash screen of creative logo and copyright 2005 and it stays there until I remove the battery, cause when I tried to clos

  • Help in Matching Query

    How I can get the expected output. Query should get result which exactly match the 'SAP'. If anything is extra or doesn't match then should ignore. create table #main (Code char(10), SAP char(6)) insert into #main values ('AS012','GGG') insert into #

  • FileMerge at Mountain Lion "cancelling any way" with non-ascii text files

    With Lion, it displays a warning, if we click "Proceed anyway", it will properly diff the files With Mountain Lion, in this case, after "Proceed anyway", it goes away silently, equivalent to clicking "Cancel".