[SOLVED] grub2 recreate /etc/default/grub and /etc/grub.d

I made lot of changes on /etc/default/grub so i decided to remove it along with the /etc/grub.d/* to start from scratch. I thought that after reinstalling grub-bios package these files will be automatically recreated. But I wasn't right. How can I get them recreated?
Last edited by dummyan (2012-08-25 19:06:29)

Found the solution, files are actually included in grub-common package. Marking as solved.

Similar Messages

  • Questions on /etc/default/grub

    i'm currently switching from syslinux to grub2 due to lack of support with xen and lvm/luks and just general information that i have a massive headache from googling for hours about.
    anyways, i'm configuring grub very cautiously because i would prefer a simple reboot in opposition to having to stick a live cd in and unlock and mount all my partitions and do all this messy work.
    is it possible to configure all options designating kernel, initrd, and kernel parameters from the "GRUB_CMDLINE_LINUX_DEFAULT" variable and its friends?
    i know that i can configure grub.cfg by hand but i would much rather prefer to do it from /etc/default/grub
    i use lvm on luks and i'm setting up my arch installation as a dom0
    any help?

    You don't need to specify the kernel and initrd if you are going to have grub generate the configuration automatically - just the kernel parameters.
    Please read the wiki. The documentation on this is excellent.

  • How to set the default boot kernel in /etc/default/grub or /etc/grub.d

    and without messing with /boot/grub/grub.cfg  ?
    I need this so that new kernels show up but do not change the default boot kernel
    Is there a way to do it by file name instead of position within the menuentry / submenu list?
    I found some ubuntu and fedora sugestions but all by position, none by name
    AND how to set the kdump kernel as the default?
    Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
    Last edited by Sanjeev K Sharma (2015-04-06 12:59:22)

    Sanjeev K Sharma wrote:
    and without messing with /boot/grub/grub.cfg  ?
    I need this so that new kernels show up but do not change the default boot kernel
    Is there a way to do it by file name instead of position within the menuentry / submenu list?
    I found some ubuntu and fedora sugestions but all by position, none by name
    AND how to set the kdump kernel as the default?
    Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
    In /etc/default/grub you can use the name of your entry you wish to use as default
    GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'
    You can tell grub to stop using submenus by doing:
    GRUB_DISABLE_SUBMENU=y
    Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:
    menuentry "Other Linux" {
    linux <KERNEL IMAGE HERE>
    initrd <INITRD IMAGE HERE>
    EDIT: /etc/grub/default -> /etc/default/grub
    Last edited by Slabity (2015-04-07 11:16:22)

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

  • [Solved] GRUB2 and Win 8 on raid 0

    Hello all,
    Currently I have my system set up in the following config, (hd0) and (hd1) set up in raid 0 for my windows 8
    install. Separately (hd2) is my arch linux install where I spend most of my time.
    I have been choosing what system to boot into from the BIOS but this is cluncky and now I want to load windows 8 from GRUB,
    when I run grub-mkconfig GRUB detects windows and creates a menu entry for it, but when I boot up the entry I only get
    this.
    invalid signature
    Well I checked the wiki and there was a fix for the issue but the file that is supposed to be removed is not on my system. So
    now I'm at a loss as to what the issue is. Below is my grub.cfg file and my /etc/default/grub, one thing I do notice about
    this is that insmod mdraid is not part of the menu entry for windows when the wiki says it should be for raid. Is
    there something that I am missing?
    # 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
    03799801-f6b7-4354-97eb-350e203e6cf9
    else
    search --no-floppy --fs-uuid --set=root 03799801-f6b7-4354-97eb-350e203e6cf9
    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 core repo kernel' --class arch --class gnu-linux --class gnu --class os
    $menuentry_id_option 'gnulinux-core repo kernel-true-03799801-f6b7-4354-97eb-350e203e6cf9' {
    load_video
    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
    9adde22a-6bf9-4650-b321-625762901919
    else
    search --no-floppy --fs-uuid --set=root 9adde22a-6bf9-4650-b321-625762901919
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=03799801-f6b7-4354-97eb-350e203e6cf9 ro nomodeset security=tomoyo
    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-03799801-f6b7-4354-97eb-350e203e6cf9' {
    load_video
    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
    9adde22a-6bf9-4650-b321-625762901919
    else
    search --no-floppy --fs-uuid --set=root 9adde22a-6bf9-4650-b321-625762901919
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=03799801-f6b7-4354-97eb-350e203e6cf9 ro nomodeset security=tomoyo
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    menuentry 'Arch GNU/Linux, with Linux core repo kernel (recovery mode)' --class arch --class gnu-linux --class gnu --class os
    $menuentry_id_option 'gnulinux-core repo kernel-recovery-03799801-f6b7-4354-97eb-350e203e6cf9' {
    load_video
    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
    9adde22a-6bf9-4650-b321-625762901919
    else
    search --no-floppy --fs-uuid --set=root 9adde22a-6bf9-4650-b321-625762901919
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=UUID=03799801-f6b7-4354-97eb-350e203e6cf9 ro single
    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 ###
    menuentry 'Windows 8 (loader) (on /dev/mapper/pdc_fibaedjhfp1)' --class windows --class os $menuentry_id_option
    'osprober-chain-/dev/mapper/pdc_fibaedjhfp1' {
    drivemap -s (hd0) ${root}
    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.
    ### 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 ###
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="nomodeset security=tomoyo"
    GRUB_CMDLINE_LINUX=""
    # 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"
    Last edited by Anders H (2013-05-25 22:29:19)

    Thank you for the reply, it helped alot.
    Here is what I did,
    I used
    # blkid
    to figure out the UUID of the drive, OS-Prober was finding the correct UUID but the format was all messed up. The format of the menu entry that you linked to worked just fine, this is what I have added to
    /etc/grub.d/40_custom
    menuentry "Windows 8 Loader" {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/mapper/pdc_fibaedjhfp1)'
    search --no-floppy --fs-uuid --set 2262C76C62C74371
    chainloader +1
    Everything is booting just fine, thanks for the help.

  • [SOLVED] grub2 dmraid and parttool

    Hello,
    I want to update from grub-legacy to grub2 and have some troubles to setup
    up my grub2 enviroment with dmraid and parttool.
    I have installed linux, win xp and win vista on fake a raid device.
    On grub legacy I followed the instructions on the wiki as described her  https://wiki.archlinux.org/index.php/In … stall_GRUB
    To boot windows xp or vista a hide the windows partitions among each other. With grub-legacy it works. Now the point is how to get this work with grub2.
    Currently my grub.cfg for windows looks like following:
    menuentry "Windows XP" --class "windows" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (hd3,1) hidden-
    parttool (hd3,2) hidden+
    parttool (hd3,1) boot+
    search --no-floppy --fs-uuid --set root 9084516E84515834
    ntldr /ntldr
    menuentry "Windows Vista" --class "windows" {
    insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (dm) hidden+
    parttool (hd3,2) hidden-
    parttool (hd3,1) boot+
    search --no-floppy --fs-uuid --set root 5AFC3ABCFC3A91ED e o
    ntldr /bootmgr
    Currently my device.map looks like this:
    (hd0) /dev/disk/by-id/ata-ST3250620AS_9QE254ZH
    (hd1) /dev/disk/by-id/ata-ST3250620AS_5QF5210T
    (hd2) /dev/disk/by-id/ata-ST3500410AS_5VM0FTBY
    (hd3) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0
    (hd3,1) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0p1
    (hd3,2) /dev/disk/by-id/dm-uuid-DMRAID-isw_eafejhhgaf_Volume0p2
    When try to start windows it complains with
    Error: hd3 cannot get C/H/S values
    So parttool seems not to work with this configuration.
    Windows just starts - but not correct, so my dmraid just works with grub (linux just starting fine, too).
    The only point is how must I configure my device.map file that parttool ist working?
    A grub console like in grub-legacy to setup the c/h/s values for the fake raid seems not to exist, or I haven't found it currently...
    Cheers framas
    Last edited by framas (2012-04-28 09:06:51)

    I solved it now by hiding the first disk of my fake raid array. Don't know if this is the "right" solution but it works for me...
    device.map:
    (fd0) /dev/fd0
    (hd0) /dev/disk/by-id/ata-ST3250620AS_9QE254ZH
    (hd1) /dev/disk/by-id/ata-ST3250620AS_5QF5210T
    grub.cfg:
    menuentry "Windows XP" --class "windows" {
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (hd0,1) hidden-
    #parttool (hd1,1) hidden-
    parttool (hd0,2) hidden+
    #parttool (hd1,2) hidden+
    search --no-floppy --fs-uuid --set root 9084516E84515834
    ntldr /ntldr
    menuentry "Windows Vista" --class "windows" {
    insmod ntfs
    insmod search_fs_uuid
    insmod ntldr
    parttool (hd0,1) hidden+
    #parttool (hd1,1) hidden+
    parttool (hd0,2) hidden-
    #parttool (hd1,2) hidden-
    search --no-floppy --fs-uuid --set root 5AFC3ABCFC3A91ED
    ntldr /bootmgr
    Last edited by framas (2012-04-28 09:07:24)

  • [SOLVED] Grub2 and LVM -- "Couldn't find physical volume `pv1'"

    Hello Folks
    I'm trying to upgrade from grub-legacy to grub2, following the instructions at https://wiki.archlinux.org/index.php/GRUB2
    I've installed grub-bios, and run this without problem:
    # modprobe dm-mod
    # grub-install --recheck /dev/sda
    But this command
    # grub-mkconfig -o /boot/grub/grub.cfg
    gives this:
    Generating grub.cfg ...
    /usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
    /usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
    /usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
    /usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
    /usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    /usr/sbin/grub-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core image..
    done
    So now I'm reluctant to try to reboot the system because it seems likely to be broken.  Should I ignore the warnings, or fix something?
    I'm using LVM2 as you can see.  /boot is on a separate non-LVM partition (/dev/sdc1).  root is on LVM.  This is all on a recently-updated 64-bit Arch installation using systemd.
    Here's a load of information -- I hope it's relevant.
    # fdisk -lu
    Disk /dev/sdb: 250.1 GB, 250059350016 bytes, 488397168 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: 0xea22bb30
    Device Boot Start End Blocks Id System
    /dev/sdb1 63 488392064 244196001 83 Linux
    Disk /dev/sda: 250.0 GB, 250000000000 bytes, 488281250 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: 0x00000080
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 488281249 244139601 8e Linux LVM
    Disk /dev/sdc: 500.1 GB, 500107862016 bytes, 976773168 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: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sdc1 * 63 481949 240943+ 83 Linux
    /dev/sdc2 481950 12482504 6000277+ 82 Linux swap / Solaris
    /dev/sdc3 12482505 976773167 482145331+ 8e Linux LVM
    Disk /dev/mapper/vg1-root: 64.4 GB, 64424509440 bytes, 125829120 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 /dev/mapper/vg1-home: 583.0 GB, 583008256000 bytes, 1138688000 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
    # pvdisplay
    --- Physical volume ---
    PV Name /dev/sdc3
    VG Name vg1
    PV Size 459.81 GiB / not usable 1.05 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 117711
    Free PE 0
    Allocated PE 117711
    PV UUID zaLJiO-1LCH-TGi6-hwBr-OyNs-Sjlm-HggrMo
    --- Physical volume ---
    PV Name /dev/sda1
    VG Name vg1
    PV Size 232.83 GiB / not usable 1.58 MiB
    Allocatable yes
    PE Size 4.00 MiB
    Total PE 59604
    Free PE 22955
    Allocated PE 36649
    PV UUID P05c2d-1d2i-bf0M-u6BX-EEq0-fvZW-VkTLhY
    # lvdisplay
    --- Logical volume ---
    LV Path /dev/vg1/root
    LV Name root
    VG Name vg1
    LV UUID Z68H3p-VvbC-ZNau-7Ds7-GptS-Hpl0-VZNjo4
    LV Write Access read/write
    LV Creation host, time ,
    LV Status available
    # open 1
    LV Size 60.00 GiB
    Current LE 15360
    Segments 1
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 254:0
    --- Logical volume ---
    LV Path /dev/vg1/home
    LV Name home
    VG Name vg1
    LV UUID uUfmS9-C4CK-Vw3V-cmwD-hEC1-VcwD-90yAyO
    LV Write Access read/write
    LV Creation host, time ,
    LV Status available
    # open 1
    LV Size 542.97 GiB
    Current LE 139000
    Segments 2
    Allocation inherit
    Read ahead sectors auto
    - currently set to 256
    Block device 254:1
    Last edited by Chris Dennis (2013-04-03 19:04:58)

    Chris Dennis wrote:
    Oh well, I took a punt on the word 'Warning' in the message, and rebooted anyway.
    It worked!
    I've just completed a series of experiments involving LVM and GRUB2. The short story is that such warnings are innocuous and arise from extending a volume group.
    Now in some detail, here's what happens (all of which was performed in VirtualBox with the current Arch rolling release just to make it easy to add and remove disk devices):
    a). pvcreate /dev/sde1 /dev/sdf1
    * Use partitions of type 8e, spanning the whole drive, for BOTH devices comprising the physical
    volume to prove that partitioning is irrelevant to the matter.
    b). vgcreate vg_x /dev/sde1
    * Start with just one device in the volume group.
    c). lvcreate --extents 100%VG --name boot vg_x
    d). mkfs.ext4 /dev/vg_x/boot && mount /dev/vg_x/boot /mnt/other
    e). grub2-install --boot-directory=/mnt/other /dev/sde
    Installation finished. No error reported.
    All is well...but now let's extend the vg_x volume group with the pre-allocated device, /dev/sdf1:
    f). vgextend vg_x /dev/sdf1
    g). grub2-install --boot-directory=/mnt/other /dev/sde
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core
    /usr/sbin/grub2-probe: warning: Couldn't find physical volume `pv1'. Some modules may be missing from core
    Installation finished. No error reported.
    ...and boom goes the dynamite. As Chris Dennis stated, GRUB2 installs fine and the system is bootable in spite of the warning. The grub-2.00 source where the warning arises is in ./grub-core/disk/diskfilter.c and has this comment:
    /* TRANSLATORS: This message kicks in during the detection of
    which modules needs to be included in core image. This happens
    in the case of degraded RAID and means that autodetection may
    fail to include some of modules. It's an installation time
    message, not runtime message. */
    I haven't tried to hack the GRUB code but, based upon my experimentation and the ease of replicating the problem, my guess is that somehow a volume group that extended in manner shown above is mishandled by GRUB. It's arguably a bug, IMHO, since a volume group, even when extended, is still a valid entity.

  • [SOLVED] GRUB2 does not process hooks: System doesn't boot

    My initial system was an SSD where /dev/sda1 was my boot partition and /dev/sda2 was an (encrypted) LVM containing home, root, var and swap. Since all partitions were ext3, I decided to do a clean format to ext4 and copy my data back on the partitions. First I archived everything but home with the arch live CD onto a server with:
    rsync -a /mnt/* root@server:/path/to/backupdir/
    Everything went fine, but after copying back, the system would not boot (it was GRUB Legacy). Since it was not in the MBR but on sda1, I figured I could upgrade to GRUB2 now. So I followed the described procedure (from a live CD) and installed GRUB2 (this time into the MBR of sda. I then regenerated the image via mkinitcpio -p linux and generated a configuration file.
    When I try to start the system, GRUB2 gets loaded, but after the two messages for loading the ramdisk it remains silent for some time (no output at all) until it finally complains it cannot find my root. But I did not see any output of any hook being processed (including encrypt) so of course it cannot find my root, since it is still encrypted.
    I reformatted my boot partition again and reinstalled and regenerated everything again (I copied the directory contents from my backup but moved the old grub folder). Still the same issue. I know I could probably just reinstall everything and restore the settings, but I'd really prefer to restore my system, since this should be a lot faster.
    Here are the relevant configuration files:
    rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # LANG in /etc/locale.conf takes precedence
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="Europe/Berlin"
    KEYMAP="de-latin1-nodeadkeys"
    #CONSOLEFONT=
    #CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=(acpi-cpufreq cpufreq_ondemand tun fuse vboxdrv)
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="yes"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="archlaptop"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    interface=wlan0
    address=
    netmask=
    broadcast=
    gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    NETWORKS=(FlosAP)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If you are sure nothing else touches your hardware clock (such as ntpd or
    # a dual-boot), you might want to enable 'hwclock'. Note that this will only
    # make a difference if the hwclock program has been calibrated correctly.
    # If you use a network filesystem you should enable 'netfs'.
    DAEMONS=(syslog-ng dbus acpid crond alsa networkmanager @bumblebeed laptop-mode !hwclock ntpd psd)
    mkinitcpio.conf
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run first, so it may be used to
    # override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten if already added)
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options
    # like so:
    # FILES="/etc/modprobe.d/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    ## This is identical to the above, except the old ide subsystem is
    ## used for IDE devices instead of the new pata subsystem.
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev pata scsi sata usb filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev pata mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    HOOKS="base udev autodetect pata scsi sata keymap encrypt lvm2 resume filesystems usbinput"
    # COMPRESSION
    # Use this to compress the initramfs image. With kernels earlier than
    # 2.6.30, only gzip is supported, which is also the default. Newer kernels
    # support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
    # compression.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    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 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
    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-194e65d3-b357-430d-b4bb-67a8300d287d' {
    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 b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    else
    search --no-floppy --fs-uuid --set=root b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/VolGroup00-root 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-194e65d3-b357-430d-b4bb-67a8300d287d' {
    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 b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    else
    search --no-floppy --fs-uuid --set=root b69dee88-a8c9-4af7-a938-7ca6c8ff368c
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/VolGroup00-root 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.
    ### 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 ###
    Thank you in advance. If you need any more information, please let me know.
    Regards,
    javex
    Last edited by javex (2012-08-10 18:33:41)

    Thank you for your reply. I looked further into the grub.cfg and removed the quiet part. Apparently the problem is that it runs all hooks but does not prompt me for a passphrase when running the encrypt hook. Why does this occur?
    Edit: I solved this: apparently I forgot to specify a cryptdevice. Since the article about dm-crypt does not talk about GRUB2, I missed that. I will rework that section to specify GRUB2 and GRUB-Legacy
    Last edited by javex (2012-08-10 18:33:22)

  • [Solved] grub2: file not found but booting fine

    I just ran grub-mkconfig to update my grub.cfg because I installed E4rat. But now I have a problem: Every entry in grub2 can be booted and E4rat really boosted my boot process so actually everything is fine. But while grub2 is loading it says something like:
    Grub 2 is loading...
    Welcome to Grub 2!
    error: file not found.
    error: file not found.
    error: file not found.
    Now grub shows up and everything is as it should be. When I select Arch it again says "error: file not found." three times and continues with a normal boot process. So basically it's nothing that would brake my system but something seems not right and that's just a huge annoyance.
    Here's my grub.cfg just in case:
    # 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
    set menu_color_normal=light-blue/black
    set menu_color_highlight=light-cyan/blue
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' f7960d1a-77ab-4230-ab43-ff931f0b2175
    else
    search --no-floppy --fs-uuid --set=root f7960d1a-77ab-4230-ab43-ff931f0b2175
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=1440x900x32
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_GB
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' f7960d1a-77ab-4230-ab43-ff931f0b2175
    else
    search --no-floppy --fs-uuid --set=root f7960d1a-77ab-4230-ab43-ff931f0b2175
    fi
    insmod png
    background_image -m stretch /boot/grub/archlinux.png
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux GNU/Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-f7960d1a-77ab-4230-ab43-ff931f0b2175' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' f7960d1a-77ab-4230-ab43-ff931f0b2175
    else
    search --no-floppy --fs-uuid --set=root f7960d1a-77ab-4230-ab43-ff931f0b2175
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=UUID=f7960d1a-77ab-4230-ab43-ff931f0b2175 ro init=/sbin/e4rat-preload quiet loglevel=3 logo.nologo console=tty1 splash=silent,fadein,fadeout,theme:arch-black
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch Linux 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-f7960d1a-77ab-4230-ab43-ff931f0b2175' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos5'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' f7960d1a-77ab-4230-ab43-ff931f0b2175
    else
    search --no-floppy --fs-uuid --set=root f7960d1a-77ab-4230-ab43-ff931f0b2175
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=UUID=f7960d1a-77ab-4230-ab43-ff931f0b2175 ro init=/sbin/e4rat-preload quiet loglevel=3 logo.nologo console=tty1 splash=silent,fadein,fadeout,theme:arch-black
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### 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)'; set legacy_hdbias='0'
    parttool "$root" boot+
    chainloader '+1'
    ### END /etc/grub.d/40_custom ###
    And my /etc/default/grub:
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch Linux"
    # Default:
    #GRUB_CMDLINE_LINUX_DEFAULT="quiet"
    # Splashy boot:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 logo.nologo console=tty1 splash=silent,fadein,fadeout,theme:arch-black"
    GRUB_CMDLINE_LINUX="init=/sbin/e4rat-preload"
    # 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
    GRUB_GFXMODE=1440x900x32
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    GRUB_BACKGROUND="/boot/grub/archlinux.png"
    # 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"
    I haven't updated my grub.cfg in a while because there was no need to.
    Thanks in advance for advices.
    Last edited by retzu (2012-04-16 14:16:02)

    I have the same error message as in the first post.  "error: file not found" listed three times when I first choose Arch from the Grub2 menu.  The solution linked to by the.ridikulus.rat would not seem to apply as I do not have the locales en* in /boot/grub/locale  BTW, I am in the US.  The system does boot though.
    I just fixed this a few seconds ago and was going to post how, basically I just did "cp /boot/grub/locale/[email protected] /boot/grub/locale/en_US.mo" which seem to do the trick, the reason I didn't fix this sooner is the error only stays up for a very small fraction of a second making it hard to read.
    # ls /boot/grub/locale
    ast.mo da.mo fi.mo hu.mo it.mo nl.mo ru.mo uk.mo zh_CN.mo
    ca.mo de.mo fr.mo id.mo ko.mo pl.mo sv.mo vi.mo
    EDIT:  I get the same three "error: file not found" messages when I boot Fedora (a multiboot system).  This is with grub2 installed from Arch Linux.
    Last edited by David Batson (2012-05-02 20:03:41)

  • [SOLVED] Wiki page for GPT disks and booting arch using UEFI

    Hi guys, I am new to archlinux. I installed archlinux x86_64 just yesterday and I like its customisability. I also like arch wiki. Nowhere else have I seen such extensive documentation, especially about things like HAL, UDEV etc. with proper instructions. Thanks to all archers.
    I have installed Archlinux x86_64 in my Dell India Studio 1537 laptop along with Windows 7 Professional x64. Both the OSes boot in UEFI-GPT setup (my UEFI is tianocore.sourceforge.net EDK DUET UEFI64 firmware booting from USB). I boot Archlinux using my own compiled grub2-bzr compiled for both BIOS and UEFI-x64. I have a 1 MB BIOS Boot Partition as required by grub2 for BIOS-GPT booting. My Archlinux system can boot both from bios and from uefi, while Windows can boot only using UEFI.
    The official Archlinux installation guide talks about only MBR (or msdos disklabel) partitions and booting from BIOS based systems. With 2TB drives becoming common place and UEFI being implemented (search for Phoenix SecureCore Tiano's 1 second POST operation), I think a proper wiki page describing differences between MBR and GPT, why GPT is better, how to setup arch to boot from GPT. Another page describing steps to setup arch to boot from UEFI (either as a separate page or as an extension of GRUB2 wiki page) is also needed.
    Some details regarding Pure GPT (not a Hybrid GPT/MBR setup) and/or UEFI setups :-
    Partitioning tools -
    GNU Parted for filesystem related tasks
    GPT fdisk tool - http://rodsbooks.com/gdisk/ , http://sourceforge.net/projects/gptfdisk/ ,  pacman -S gdisk (in extra repo) - for non-filesystem related tasks
    util-linux-ng fdisk does not support GPT disks
    Bootloader - GRUB2 - vanilla grub-legacy does not support GPT and does not support UEFI (Fedora's patched grub-legacy does support both GPT and UEFI) and syslinux does not support GPT (I may be wrong here - seems a gptmbr of syslinux does help in booting from gpt but not sure).
    For GRUB2 - Need BIOS Boot Partition to embed GRUB2's core.img in GPT disks - size about 1 MB max - no filesystem
    In GPT fdisk partition type code - EF02
    In GNU Parted or GParted - bios_grub flag on
    For UEFI-GPT booting this special partition is not needed as no embedding takes place. This is needed only in case of BIOS-GPT booting.
    Incase of custom kernel configuration - enable CONFIG_EFI_PARTITION for GPT support
                                                                        CONFIG_EFI for UEFI support (for UEFI even above option required)
                                                                        CONFIG_EFI_VARS for UEFI Runtime Variables support (optional)
    Note: Although GPT is part of UEFI specification, a UEFI system is not needed to boot from/use GPT. BIOS based GPT booting is possible with GRUB2 or Fedora's patched grub-legacy (but not vanilla grub-legacy provided by archlinux). It is also possible to boot Linux in UEFI-MBR setup (again using grub2) but I have not tried it.
    Even without UEFI and less than 2TB harddrives, GPT based partitioning has many advantages - secondary GPT header and Partition table, CRC32 checksums. Unique Disk GUID and Filesystem-independent Unique Partition GUIDs, multiple primary partitions (default is 128 partitions, but it can be changed). The only problamatic OS is Windows which does not allow GPT booing unless one has UEFI based system. It allows only UEFI-GPT or BIOS-MBR setups. In linux it just depends on how the bootloader is configured - not a problem with grub2.
    I also propose that incase of Auto-prepare Hard Drive, the installer default to GPT for "archlinux only" installs ( ie no dual-boot or triple-boot etc.).
    I did not use the official archlinux iso but used archboot 2010.04 R3 as it gave an option of installing to GPT and also provided GRUB2 during bootloader install. I have never edited any wiki page before, thats why I request some one else to start a wiki page with the information given above.
    I don't know whether this is the right place, but any Windows (Vista or 7 x64 versions) and Linux dual-boot user who has UEFI-based system with GPT partitioning and wants to get rid of Hybrid MBR setup (to boot Windows) can follow this post http://www.insanelymac.com/forum/lofive … hp/t186440 (outside this forum) - this link describes the way to make Windows boot natively in UEFI-GPT setup. After doing this one can install arch using GRUB2 compiled for UEFI x86_64, and Windows will also see
    Last edited by skodabenz (2011-01-30 19:32:48)

    Welcome to arch, skodabenz! Offering documentation on third post - all thumbs up
    You could start the wiki page in your user-space with what you have, and then invite others to join working on it. Just register a wiki account, navigate to the page you want to start, for example:
    http://wiki.archlinux.org/index.php/User:skodabenz/GPT
    and click on "edit this page".
    As noted in the other thread, arch's legacy grub is patched for gpt support. I don't know about UEFI, but you can always open a bug report asking for the patches from fedora to be included.
    edit: the page from Rod Smith is a great resource. I was absolutely terrified at first by all this screwed up GPT/MBR stuff when I tried triple-booting Arch, Win and OS x, but he really does a great job explaining what it is all about.
    Last edited by hokasch (2010-05-21 15:44:08)

  • [solved] Arch kernel panic with grub 2 (another instance)

    Hey all,
    I read through this thread: http://bbs.archlinux.org/viewtopic.php?pid=663976 which is somewhat similar to my problem, but not the same.
    I successfully installed Arch with a VMware VM, got gnome, openbox, and lxde installed... mucked around a bit. All looked good so I wanted to try it with an actual install.
    Background:
    I am new to Arch and relatively new to Linux... although not afraid of the terminal.
    I am running a Lenovo SL500 laptop.
    The laptop has one drive (sda) and is divided as following:
    sda1: service partition (required for this machine)
    sda2: ntfs containing Windows 7
    sda3: extended partition containing:
          sda5: linux swap
          sda6: ntfs data storage
          sda7: ext4 ubuntu 9.10
          sda8: ext4 arch
    Here is what I did:
    I installed arch to sda8, and when it came time for me to set the boot partition I selected 'none' as I wanted to use grub2 which is already installed via the ubuntu installation.
    When the installation of arch finished, I rebooted into my ubuntu system and ran update-grub. The output verified that Arch was located at sda8, and the grub.cfg file shows:
    menuentry "Arch (on /dev/sda8)" {
        insmod ext2
        set root=(hd0,8)
        search --no-floppy --fs-uuid --set 5ee916d1-5051-4e27-9c1f-a74f04693337
        linux /boot/vmlinuz26 root=/dev/sda8
    When I attempt to boot into arch, as it is above, I get:
        Unable to mount filesystem
        not syncing : VFS : Unable to mount root fs on unknown block (0,0)
    Now... when I installed arch I formated the partition to ext4, I have verified that it is ext4, and the fstab in the arch partition lists it as ext4. When I altered the above grub2 boot parameters and changed ext2 to ext4, it returned 'error - file not found'.
    Any idea where I went wrong or what I should try to fix this?
    Should I have installed a bootloader with the arch install?
    Thanks for any help
    Last edited by visser (2009-12-09 18:48:27)

    My grub2 installation was also via Ubuntu and the auto-detected entry didn't work, so in /etc/grub.d/40_custom (Ubuntu) I have this...
    #!/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 "Arch Linux (on /dev/sda5)" {
    set root=(hd0,5)
    linux /boot/vmlinuz26 root=/dev/disk/by-uuid/80db2d73-6dea-465c-a9a2-b14624badc57 ro
    initrd /boot/kernel26.img
    menuentry "Arch Linux (fallback)" {
    set root=(hd0,5)
    linux /boot/vmlinuz26 root=/dev/disk/by-uuid/80db2d73-6dea-465c-a9a2-b14624badc57 ro
    initrd /boot/kernel26-fallback.img
    menuentry "Windows XP" {
    set root=(hd0,1)
    chainloader +1
    I believe you can disable os_prober by adding
    GRUB_DISABLE_OS_PROBER="true"
    to /etc/default/grub. I disabled it myself by the other method, removing it's executable flag...
    sudo chmod -x /etc/grub.d/30_os-prober
    I should point out that I haven't installed grub2 in Arch yet as I'm still in the transitional (and undecided) stage.

  • [SOLVED]How can I set GRUB timeout to 0 s ?

    First of all I'm neither dual-booting nor using multiple kernels. What I want to do is to save 5 seconds on every boot by skipping the GRUB menu automatically and booting to Arch which is my only OS.
    I've tried playing around with options in /etc/default/grub (mainly GRUB_TIMEOUT and GRUB_HIDDEN_TIMEOUT) and updating the grub.cfg according to the Wiki, but with no result so far. It still displays the menu for 5 seconds unless I press return.
    Below goes my current config, believe me, I have tried with different values, commenting/uncommenting those lines according to different tips found via Google. Am I doing something wrong?
    /etc/default/grub
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=0
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="rootflags=data=writeback"
    GRUB_CMDLINE_LINUX="rootflags=data=writeback"
    # 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=0
    #GRUB_HIDDEN_TIMEOUT_QUIET=false
    # 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
    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 [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt3'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 69c58b71-e01f-4ca8-9f17-c22d4e6fd59e
    else
    search --no-floppy --fs-uuid --set=root 69c58b71-e01f-4ca8-9f17-c22d4e6fd59e
    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=pl_PL
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=0
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=0
    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-69c58b71-e01f-4ca8-9f17-c22d4e6fd59e' {
    savedefault
    load_video
    set gfxpayload=keep
    insmod gzio
    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 b419f237-4f67-4bdc-84ef-e74d19542cb8
    else
    search --no-floppy --fs-uuid --set=root b419f237-4f67-4bdc-84ef-e74d19542cb8
    fi
    echo 'Wczytywanie systemu Linux linux...'
    linux /vmlinuz-linux root=UUID=69c58b71-e01f-4ca8-9f17-c22d4e6fd59e rw rootflags=data=writeback rootflags=data=writeback
    echo 'Wczytywanie początkowego dysku RAM...'
    initrd /initramfs-linux.img
    submenu 'Opcje zaawansowane dla systemu Arch Linux' $menuentry_id_option 'gnulinux-advanced-69c58b71-e01f-4ca8-9f17-c22d4e6fd59e' {
    menuentry 'Arch Linux, za pomocą systemu Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-69c58b71-e01f-4ca8-9f17-c22d4e6fd59e' {
    savedefault
    load_video
    set gfxpayload=keep
    insmod gzio
    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 b419f237-4f67-4bdc-84ef-e74d19542cb8
    else
    search --no-floppy --fs-uuid --set=root b419f237-4f67-4bdc-84ef-e74d19542cb8
    fi
    echo 'Wczytywanie systemu Linux linux...'
    linux /vmlinuz-linux root=UUID=69c58b71-e01f-4ca8-9f17-c22d4e6fd59e rw rootflags=data=writeback rootflags=data=writeback
    echo 'Wczytywanie początkowego dysku RAM...'
    initrd /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-69c58b71-e01f-4ca8-9f17-c22d4e6fd59e' {
    savedefault
    load_video
    set gfxpayload=keep
    insmod gzio
    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 b419f237-4f67-4bdc-84ef-e74d19542cb8
    else
    search --no-floppy --fs-uuid --set=root b419f237-4f67-4bdc-84ef-e74d19542cb8
    fi
    echo 'Wczytywanie systemu Linux linux...'
    linux /vmlinuz-linux root=UUID=69c58b71-e01f-4ca8-9f17-c22d4e6fd59e rw rootflags=data=writeback rootflags=data=writeback
    echo 'Wczytywanie początkowego dysku RAM...'
    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/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+ ###
    Last edited by Hwiparam (2015-04-25 14:10:11)

    Done, no effect...
    EDIT:
    grub-mkconfig -o /boot/efi/grub/grub.cfg
    This did the trick ...
    Before that I created the config file in /boot/grub/grub.cfg and that's why...
    Last edited by Hwiparam (2015-04-25 14:15:44)

  • (SOLVED) Grub2 won't boot lvm on gpt

    When i try to boot arch the grub screen comes up for a second and then my computer restarts. I followed this tutorial to the letter: http://www.youtube.com/watch?v=69X9ZYA41xU
    I've been at this for a couple days with no luck.
    Thanks
    Last edited by unilx (2012-01-30 19:09:37)

    Well i managed to get arch to boot by editing the /boot/grub/grub.cfg directly. For some reason, running the command grub-mkconfig -o /boot/grub/grub.cfg
    and grub-install won't update anything from my /etc/default/grub file or anything from my /etc/grub.d folder. What i have to do:
    grub-mkconfig > /boot/grub/grub.cfg
    Then append my menu entries
    # 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 [ "${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 {
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    set menu_color_normal=light-blue/black
    set menu_color_highlight=light-cyan/blue
    insmod part_gpt
    insmod lvm
    insmod ext2
    set root='lvm/arch-rooti'
    menuentry "Arch Linux 3.2.2-1 [Primary]" {
    insmod lvm
    insmod ext2
    insmod part_gpt
    set root=(arch-boot)
    linux /vmlinuz-linux root=/dev/arch/root vga=795 ro
    initrd /initramfs-linux.img
    menuentry "Arch Linux 3.2.2-1 [Recovery]" {
    insmod lvm
    insmod ext2
    insmod part_gpt
    set root=(arch-boot)
    linux /vmlinuz-linux root=/dev/arch/root ro
    initrd /initramfs-linux-fallback.img
    This does work  but i lose a lot of functionality

  • I installed 10.6.8 from 10.6.6 on my Macbook Pro and now can't open Safari-think it's something to do with the Intego anti-virus software. Reverted Intego software back to default state and now computer just boots ups up slowly and can't access a thing.

    I installed 10.6.8 from 10.6.6 OS on my MacBook Pro and have not been able to open secure sites on Safari.  Think it has something to do with the Intego Anti-virus installed.  Tried restoring Intego to default status and now my Mac barely boots up and does nothing else but spin.  Ugh.  Has anyone had similar issues and if so, were you able to resolve?  How?  Thanks, 

    1: Backup your user files folders of Documents, Music, Pictures etc., to a external powered drive (not TimeMachine) and disconnect.
    2: Insert the 10.6 installer disk and reboot holding c
    3: Simply reinstall OS X without erasing the drive, it will overwrite the installed version of OS X and the root level software, but leave your Applications folder contents (expect Apple bundled programs) and user files alone. (but backup anyway in case it fails)
    4: Reboot and the Integro is gone out of your system, but there may still be something laying around in Applicaitons to delete. Use Software Update to get up to date.
    5: You don't need anti-virus on a Mac, Apple provides it already for you sight unseen.
    6: If you Software update, the bad certificate issues are pulled, thus are not a threat.

  • After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.

    After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.

    Hi everyone, I have Snow Leopard 10.6.8. I have been very very frustrated by this problem. [I could not create new windows, and anything that opens new windows, such as trying to see what Add-ons you have etc would not work]. I read about changing screen alignment to the top... I have one screen so the option does not exist. The above messages would not fix this problem. I searched hard and did find a solution in the end. I read stuff about removing Add-ons until the problem is fixed, but its simply not the case.
    First of all open Firefox. next go to options: Help --- 'Restart with Add-ons disabled'. Tick the box for add-ons, restart firefox. Next go to Tools --- Add-ons. Next (In the Add-ons Manager' click on 'Plugins' on the left hand side pane. Look for the small blue writing that says 'Check to see if your plugins are up to date'.
    Now notice it should say 'Missing Flash'. "For your safety, Firefox has disabled your outdated version of Flash. Please upgrade to the latest version". I followed this, reinstalled Flash and it now works as it always did, no problems. For people where the above fix didn't work, try this one out. Hope it helps people!
    :o)

Maybe you are looking for