Update to GRUB2

Since GRUB2 shall be the next generation boot manager, i am considering in doing the change right now.....
How long time do you think it will take for grub to become grub legacy and everyone be forced to update to grub2?
Is the migration difficult?
Is it recommended?
The only improvement i see now is the better looking new grub... (i think its the one used in ubuntu, if im right)

Many linux distributions are using Grub2.  There is also a thread here talking about Grub2, with pros and cons.  I myself have had not good time using Grub2, in special to my current installation that has more than one Linux flavor and I need to install using logical partition to boot from.  It seems, IMHO,  that Grub2 was built for /dev/mbr so I prefer to use Grub legacy.

Similar Messages

  • Need to repair grub/update to grub2 on old standard disk.

    Yes, I've botched the recent update. But I'm prepairing to chroot from an arch live disk and follow all the steps. But firstly it seems that my hastily grub update went wrong and I can only boot into the grub prompt. Almost no commands work from there, like 'ls' - Command not found.
    Reading the wiki it doesn't clearly state how to update to grub2 (in chroot) on an old standard disk. Only for modern GPT's or UEFI disks. As far as I understand anyway. (My understandning might be limited since I've had no need for GPT or UEFI yet)
    So where can I read up on updating to grub2 in the old standard way, with MBR? I've been using grub2 on other distros so no problem handling it.

    The wiki, naturally https://wiki.archlinux.org/index.php/Gr … ode_region
    Not an Installation issue; moving to NC...

  • Befuddled after update to GRUB2

    Hi all (I could really use some help)!
    I recently installed GRUB2 using
    pacman -Sy grub2
    , and it said grub was delted and everything installed fine.  I edited grub.cfg to uncomment the Arch Linux and Windows XP partitions that I currently have on my computer.  The problem is, I shutdown the computer and rebooted to test out if it worked, and it is booting into GRUB 0.97 and the only thing visible says this:
    [Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ]
    grub>_
    It seems that I need to somehow get to GRUB2, how do I resolve this?

    Pacman doesn't overwrite the MBR when you install grub2 (or any boot loader). So you removed the grub 0.97 config file and didn't install grub2 to the MBR. See the grub documentation to boot into your system from the grub command line, then read the arch wiki page about grub2.

  • Care to play with grub2-graphical?

    UPDATES:
    November 2, 2009:
         1) Added a section to troubleshooting for flickering graphical menus
    October 28, 2009:
         1) Added a section to troubleshooting for failing to parse the block device
         2) Fixed a few outdated pieces and typos
    October 10, 2009:
         1) Added grub2-icons-circlestarts to AUR, a nice set of many different OS icons
             * It will be in the binary repos when I get the chance (and if I don't forget!)
    July 5, 2009:
         1) Troubleshooting section for an error reading /dev/fd0 nag and a small tip on the install section
    OVERVIEW:
    I've been working on (and succeeded in) getting Colin Bennett's code http://grub.gibibit.com/ to run in Arch. I hadn't seen it elsewhere, even from the major distros (except ubuntu's launchpad https://code.launchpad.net/~colinb/grub/gfxmenu ). I've only seen legacy grub wallpaper mods (grub-gfxboot) and animation patches (grub-gfxmenu, which the ubuntu2 theme and my hack theme mimic btw), not THIS grub2 mod. So, I figured I might as well try to get it working. The good news is, it appears to be slowly merging into the official grub2.
    Non-Arch distros: All of this can be done on a non-Arch distro in a similar way. Instead of using the given makepkg commands, you would need to manually handle dependencies listed in my PKGBUILD files (the right Ruby stuff is especially important; it will compile without ruby, but not correctly) and then use the typical "./configure; make; sudo make install" (or your distro's standard packaging method if you want to do that) on the source tarballs listed in the PKGBUILD source=() lines. If you have no idea what any of that jargon means, you should ask on your OS's forums and I'm sure someone will assist you. Non-Arch distros can also grab the theme tarballs from http://hateanthem.dreamhosters.com/arch/build/ and either extract them to /boot/grub/themes/ or package them for your OS if you can (I'm sure others will appreciate it). If you do so, you are welcome to send them to me if you wish and I can put them up on the same server as all of these files. For those of you on Ubuntu, to answer your question: no, Ubuntu's grub2 does not have gfxmenu capabilities yet. Either wait for it to be merged into grub2 or ask someone to package this for you (be sure to mention when you are asking however that grub2-gfxmenu is not the same as just grub, grub2, grub-gfx, grub-gfxboot, or grub-gfxmenu, as there is understandable confusion to the difference). As for troubleshooting, most of the troubleshooting here will also work on other distributions except for pacman commands, which you would need to deal with yourself accordingly (fyi, pacman -U installs a local Arch package; you would sudo make install or dpkg -i somePackage or rpm -i somePackage or whatever in your case).
    Below are the author's default themes (awesome!) and the quick Arch "concept theme" I made (crappy, but works; hence "concept"):
    [EDIT: I removed these screenshots from photobucket.. just see the author's page screenshots for a good idea]
    http://grub.gibibit.com/Themes
    INTRO NOTES:
    A [Assumptions]: This how-to assumes that you already know/have:
        1) Your hard drive device names/numbers (ie /dev/sdXY) for your /boot and / partition(s)
            * See /etc/fstab or the mount command and your grub.cfg/menu.lst
        2) GENERAL Arch Linux experience/knowledge for:
            * PKGBUILDS: http://wiki.archlinux.org/index.php/ABS … he_ABS_way
            * PACMAN: http://wiki.archlinux.org/index.php/Pacman
            * AUR: http://wiki.archlinux.org/index.php/AUR
            * YAOURT: http://wiki.archlinux.org/index.php/Yaourt
            * GRUB: http://wiki.archlinux.org/index.php/GRUB
            * GRUB2: http://wiki.archlinux.org/index.php/GRUB2
               * See your /boot/grub/grub.cfg or /boot/grub/menu.lst
    B [Miscellaneous]: Things you should know before starting:
        1) There are TWO pkgbuilds/packages needed: grub2-gfxmenu-overlay and grub2-gfxmenu
            * The former is mandatory themes, icons, etc. The latter is the grub2 patched with gfxmenu stuff
        2) Grub2's numbering/ordering is different than legacy grub's and, sometimes, your system's
            * Hard drives still start at 0, but partitions start from 1
            * For some, "/dev/sdb" is "hd0" in grub, counter-intuitively
        3) Only try this if you have time/patience/experience/knowledge to fix it
            * However, this is NOT as hard/long/tedious as it looks; I'm very thorough
            * Oh, and for whatever reason, this loads/works PAINFULLY slowly in VirtualBox
               * Don't bother outside of practice..
        4) VERY IMPORTANT: Old posts here use an outdated menuentry format!
            * It can crash grub2
            * NEW, CORRECT lines look like: menuentry "Arch Linux" --class "arch" {
            * OLD, INCORRECT lines look like: menuentry "Arch|class=linuxmint,linux,os" { 
               * Grub2-gfxmenu-bzr used this
            * Grub2-gfxmenu-bzr package is OLD. I use self-contained src pkgs the author provides now
               * Don't use that old stuff any more
    INSTALLATION & SPECIAL SETUP INFO:
    * Split Boot = Separate / and /boot partitions
    * If you're Split Boot, 64 Bit, LVM, some special setup, or confused/lost, see the respective areas before proceeding
    * You can skip Install Steps 1-7 if you use binaries or yaourt a'la Intro Notes A
       * If you have yaourt installed and ready, just yaourt -S grub2-gfxmenu and skip to step 8
       * If you want to use binaries in pacman, add to /etc/pacman.conf and pacman -Sy grub2-gfxmenu:
          * For 32 Bit:
             [archfox]                                                                               
             Server = http://hateanthem.dreamhosters.com/arch/i686
          * For 64 Bit:
             [archfox]                                                                               
             Server = http://hateanthem.dreamhosters.com/arch/x86_64
    Typical Installation (esp. 32 Bit Arch):
        1) See Intro Notes A & B
        2) Back up /boot/grub/grub.cfg, /boot/grub/menu.lst, or whatever you use
        3) Remove your bootloader via pacman -R [grub, grub2, whatever]
        4) Download the grub2-gfxmenu-overlay files:
            * http://aur.archlinux.org/packages/grub2 … u-overlay/
        5) Put them in $HOME/abs/local/grub2-gfxmenu-overlay
        6) Make and install the package via makepkg -c -i -s from that directory
        7) Repeat steps 4-6 for the grub2-gfxmenu files
            * http://aur.archlinux.org/packages/grub2 … 2-gfxmenu/
        8) As sudo/root, run: /sbin/grub-install /dev/sda
            * If you have multiple HD's, change this to the drive you want to boot grub from
        9) Edit /boot/grub/grub.cfg to match your partition setup (if necessary)
       10) Double check your work before rebooting
            * pacman -Qs grub2 should show grub2-gfxmenu-overlay AND grub2-gfxmenu [1-7]
            * ls /boot/grub should show a bunch of "mod" files [8]
            * be sure /boot/grub/grub.cfg points to the right partitions [9]
       :D) Finished!
            * The default themes have a pretty low res, and aren't as cool as some of the others
               * Make sure you have the proper gfxmode for your theme in grub.cfg if you use non-defaults
               * See the latter half of this tutorial for help and custom theme/icon stuff
    Installation on 64 Bit Arch:
        * FYI, I hear grub2 svn, and thus the next version of gfxmenu, adds native 64 bit support
        * For the least hassle, use binaries, then follow Typical Install #8-10:
           * The 64 bit binary repository info is above the Typical Install section
        * Alternatively, if you still want to COMPILE this with makepkg.. [Steps 1-7]
           * You'll need either a 32 bit chroot/environment..
              * http://wiki.archlinux.org/index.php/Arc … _Arch64.3F
           * .. or you can use a regular 32 bit install
           * Either way, change DESTARCH in the pkgbuild to x86_64
        * Further help: Shaika-dzari's posts in this thread may be useful, but using his "-bzr" files is not advised!
           * His syntax and grub2-gfxmenu-bzr are OLD; the former can crash new Grub2! (See Intro Notes B #4)
           * If you're determined to use his -bzr, use the old syntax! If you use the new pkgs, don't use his syntax!
    Notes for a Split Boot, LVM, maybe RAID:
        * All of these users will likely need a similar grub.cfg
           * Example Split Boot cfgs in Troubleshooting and later in this thread
        * You will likely run into multiple problems listed under Troubleshooting; relax and expect it
           * You might spare yourself problems by following Troubleshooting #6 before rebooting
              * ... or cause problems you might not have had! Probably prevent 'em, though :)
        * Split Booters: if that doesn't help, try looking at boriscougar's posts here
           * His syntax is outdated and will crash Grub2, however! (See Intro Notes B #4)
        * LVM/RAIDers:
           * You need the kernel root= parts pointing to /dev/mapper/blahblah
           * See lssjbrolli's posts here, esp. #19, for other grub.cfgs IF you have trouble
              * His syntax is outdated and will crash Grub2, however! (See Intro Notes B #4)
    Notes for Others:
        * If you are lost/confused, please post here
        * If you have another "special case", I'm afraid I probably can't help you
           * You are welcome to try anyway and report your results; it might help someone else
    TROUBLESHOOTING:
    * Check ALL of the instructions and the Intro Notes A & B again
    * Press 't' in graphical mode to switch to text mode, it's more forgiving with errors
    * Press 'e' in text mode to edit an entry. Useful key combinations are shown there
    * See post #78 or #63 for starting over from the Live CD; modify it to restore legacy grub
       * Be sure your device node/name is correct, as per the Intro Notes
    * Here is an example Split Boot grub.cfg menuentry with descriptions:
       # Entry 0 - Arch Linux                                           
       menuentry "Arch Linux" --class "arch" {
           # Below should be /boot, where the kernel/initrd/bootloader is. Here, it's HD 1, Partition 5 
           set root=(hd0,5)
           # Below is /, where most of your installation is. HD 1, partition 6
           # Note the backwards drive lettering/order on my pc!
           # Grub calls my drive "hd0" while Arch labels the drive "/dev/sdb"
           # Yours MAY or MAY NOT do that
           # Also note, BECAUSE this is for a Split Boot, there is no /boot prefix
           # Lastly, some distros seem to fail with /dev/disk/by-label entries, others work fine
           linux /vmlinuz26 root=/dev/sdb6 ro
           initrd /kernel26.img
    1) During grub-install, you get a nag about not being able to read /boot/grub/core.img
        * I think this is fixed in a grub2 svn release, so hopefully the next grub2-gfxmenu will remove this section..
        * Two methods.. both are hackish, but either 'works'.. I prefer Method 2, but it's more work + empty space..
        * METHOD #1:
           * This installs grub to your root partition instead of /boot (method obviously assumes a Split Boot):
              * It will obviously not properly coincide with pacman installs/updates of grub2-gfxmenu stuff normally
                 * You can unmount /boot to upgrade/install grub2-gfxmenu stuff for now with pacman
                 * Re-mount /boot when you're done installing/upgrading said grub2-gfxmenu stuff
                 * If grub2-gfxmenu is updated, try installing again normally WITH /boot mounted first
              * Your old grub folder is still on your /boot partition; I think it may be moved to avoid confusion
              * If you move/remove the grub partition on ROOT (until properly installed of course), grub will break
           1) mkdir /mnt/tmp
           2) umount /dev/sda1 (assuming your /boot is sda1 of course from here)
           3) mount /dev/sda1 /mnt/tmp
           4) cp -r /mnt/tmp/grub /boot
           5) Check ls /boot/grub shows the expected mod files and such, then try /sbin/grub-install /dev/sda again
           6) Edit /boot/grub/grub.cfg before you reboot; follow the tutorial otherwise
           7) Be sure to re-mount /boot if you're not going to reboot after this tutorial / installing gfxmenu stuff
        * METHOD #2:
           * This installs grub2-gfxmenu "correctly", but puts a little empty space in front of your /boot partition
           1) Boot into a LiveCD and resize your /boot partition; graphically (gparted) or CLI if you know how
               * I decreased its size by 10 megs, which is likely MAJOR overkill, but it worked, and I can spare 10mb
           2) Move the resized partition to the right, so the space you freed up is in front of it
           3) Boot into the Arch LiveCD if you aren't there already, and go root
           4) mkdir /mnt/root
           5) mount /dev/sda3 /mnt/root (assuming sda3 is your root partition)
           6) mount -t proc proc /mnt/root/proc
           7) mount -t sysfs sys /mnt/root/sys
           8) mount -o bind /dev /mnt/root/dev
           9) chroot /mnt/root /bin/bash
          10) mount /dev/sda1 /boot   (assuming sda1 is /boot.. you can mount /home now too, if needed)
          11) pacman -U /path/to/grub2-gfxmenu*pkg.tar.gz (only if its the only grub2-gfxmenu pkg there)
          12) pacman -U /path/to/kernel26*pkg.tar.gz (only if its the only kernel pkg there)
          13) Edit /boot/grub/grub.cfg before you reboot; follow the tutorial otherwise
    2) During grub-install, you get a nag about /dev/fd0 or something of the sort
        * Your device map is wrong; edit /boot/grub/device.map accordingly and remove/edit such incorrect entries
           * You may also need to run grub-mkdevicemap BEFORE doing this, but probably not
           * Fd0 is the floppy disk, remove it if you don't actually have such a drive
        * Alternatively, try adding --recheck to the grub-install /dev/yourDevice command
    3) The text menu won't load, and you're dropped to a limited prompt
        * Check that you are using the new/correct grub2-gfxmenu menuentry format (See Intro Notes B #4)
        * You may have run the command incorrectly (or not at all) in Step 8, or your /boot changed numbers/letters
           * You would probably need to start over from a livecd, if so
    4) The graphical menu won't load, but the text one does
        * Check that stuff exists in /boot/grub/themes
        * Check that your set theme= line is properly suited to your system in grub.cfg:
           * Most people need: set theme="/boot/grub/themes/themeName"
           * A Split Boot / LVM / RAID / etc needs: set theme="/grub/themes/themeName/theme.txt"
        * Split Boots / LVM/ RAID/ etc should check that set root= exists near the top and points to /boot
    5) The graphical menu loads, but you have boxes/squares where fonts should be
        * Add this (set to match YOUR /boot) somewhere near the TOP of your grub.cfg:
           * set root=(hd0,5)
        * Your loadfont lines ALL probably need to look like this (no /boot prefix):
           * loadfont /grub/fonts/10x20.pf2
           * This command with sudo/root permissions should be able to do it for you (make a backup!):
              * cd /boot/grub/ && sed -i 's|/boot||g' grub.cfg
              * This -could- affect (good or bad) other things. Fix if needed, before or after rebooting
    6) The graphical menu loads, but when you select the os, it sits at "Press any key to continue"
        * Check that grub.cfg's "set root=" line you have for that menuentry points to /boot
           * Grub numbering has changed in grub2 (See Intro Notes B #2)
           * Try [inc/dec]rementing the [drive/partition] by 1 number/letter
           * Remove /boot from the front of stuff if you are running a Split Boot / LVM / RAID / etc
    7) The graphical menu loads, but you get a nag about a failure to parse the block device
        * Check all of the other troubleshooting first to see if it applies / works first
        * Check that your kernel/initrd lines point to the correct places (remember partitions start from 1 now!)
        * Check /etc/mkinitcpio.conf for hooks you no longer use (like fbsplash perhaps)
           * Packages used by your hooks must be installed, like fbsplash for the fbsplash hook
    8) The graphical menu loads, but you get a nag about finding root / init not found, or a similar error
        * Check that grub.cfg is pointing to the right place in that menuentry's "linux" and "initrd" lines
           * Grub numbering has changed in grub2 (See Intro Notes B #2)
           * Try [inc/dec]rementing the [drive/partition] by 1 number/letter
           * Remove /boot from the front if you are running a Split Boot / LVM / RAID / etc
        * Try running the fallback/failsafe entry
           * If it works, you need to mkinitcpio -p kernel26 from there
    9) The graphical menu loads, but flickers horribly
        * Try changing the resolution, perhaps to a default/1024x768
    10) You're on an eeePC or use an intel 800/900 graphics chipset and can't use your native resolution
        * NOTE: I've had reports that this no longer works or compiles or something recently, so YMMV
        * Workaround until someone tries patching and reporting via grub2-915resolution's patch(es):
           1) Compile (NOT install!) grub2-915resolution from AUR via makepkg (or yaourt and cancelling)
               * Or grab 915resolution.mod from someone/somewhere else, perhaps
           2) Install grub2-gfxmenu
           3) Copy 915resolution.mod from step 1's MAIN source directory to /boot/grub/
               * If you used yaourt and cancelled before installing, try /tmp/yaourt-tmp-yourname
           4) Insert/change the following in grub.cfg [order matters I guess?]:
               * insmod 915resolution
               * 915resolution 34 1024 600 (or whatever else you want)
               * set gfxmode 1024x600 (or whatever else you want)
           5) Edit your theme's theme.txt file to look nice on the new res, if it's not already made for it
    TWEAKING:
    1) Changing the resolution
        * Edit /boot/grub/grub.cfg, it's one of the first lines (set gfxmode=)
           * I'm not sure what it supports, but I got up to 1280x1024 without problems
           * You may need to change your theme's configuration file for it to look decent under a new res
    2) Changing the theme
        * Edit /boot/grub/grub.cfg, it's one of the earlier lines (set theme=)
        * Themes are in /boot/grub/themes
    3) Changing the icons (Thanks to kholddagger post #97)
        * /boot/grub/themes/icons , seemingly PNG only, scaled according to theme/resolution in use
        * Add your OS icon by changing the --class option in your menuentry to MATCH the .png
           * Ie, for /boot/grub/themes/icons/fedora.png:
              * menuentry "Fedora Linux" --class "fedora" {
           * Don't like a default icon, but don't want them overwritten by updates?
              * Make it "distro2". Ie distro2.png and --class "distro2"
        * I am partial to http://gnome-look.org/content/show.php/ … tent=95970 "Circle Starts"
    4) Adding new distros
        * See Tweaking #3 for changing/adding icons
        * Clone Arch's menuentry and tweak it to match your other OS
           * Search your other OS's /boot folder/partition for kernel and init filenames
    5) Advanced theme tweaking
        * See the author's website and documentation:
           * http://grub.gibibit.com/Theme_format
           * http://grub.gibibit.com/gfxmenu_design
    6) Advanced font tweaking
        * See the author's website and documentation:
           * http://grub.gibibit.com/New_font_format
           * The newest version "supports UTF-8 fonts", but I'm not sure what that even means :D
    KNOWN AVAILABLE THEMES:
    * All custom themes so far are set up for 1024x768 and the defaults for 640x480
       * Most of them are made by Xabz, and packaged by me
       * If you have alternate resolution layouts for any of them, PLEASE share!
    * If you make any new ones, PLEASE share! :)
    1) The first two screenshots are defaults
    2) The third blue screenshot is my theme, aftermathblue (previously archfox), a tweak of the defaults
        * It has since been updated to 0.2 and looks a little different; certainly much less hackish
        * The name refers to the wallpaper "Aftermath" from the arch linux wallpapers package, turned blue.
        * The screenshot's icons are tweaked Google Images results for "windows icon" and "arch linux icon"
        * If you have suggestions, post 'em
    3) There are several really nice ones made by a guy in Chile named "xabz":
        * See above "Typical Install" for binary repositories containing these theme packages
           * You can also find them in the AUR; they are prefixed with "grub2-theme-"
        * You can see screenshots of them on page 4 of this thread, post #94
    4) There is another awesome one here by some presumably German person:
        * http://forum.ubuntuusers.de/topic/grub2 … st-1835914
        * I can't seem to find a download link for it, only a picture :(
    Last edited by FrozenFox (2010-04-01 16:41:21)

    set gfxmode=1024x768
    insmod ext2
    insmod biosdisk
    insmod pc
    insmod font
    insmod vbe
    insmod gfxterm
    insmod videotest
    insmod tga
    insmod png
    insmod gfxmenu
    #set menuviewer="terminal"
    set menuviewer="gfxmenu"
    set theme="/grub/themes/ubuntu2/theme.txt"
    #set theme="/boot/grub/themes/ubuntu1/theme.txt"
    #set theme="/boot/grub/themes/winter/theme.txt"
    #set theme="/boot/grub/themes/proto/theme.txt"
    # TODO: fix GRUB script parser -- it doesn't handle a space at the end of the line in a menu entry.
    #### BEGIN MENU ####
    set timeout=8
    set default="0"
    set fallback="0 1"
    menuentry "Arch Linux|class=ubuntu,linux,os" {
    linux /vmlinuz26 root=/dev/mapper/volgroup0-lvolroot ro quiet
    initrd /kernel26.img
    menuentry "Arch Linux Fallback|class=linuxmint,linux,os" {
    set root=(hd0,1)
    linux /vmlinuz26 root=/dev/mapper/volgroup0-lvolroot ro
    initrd /kernel26-fallback.img
    menuentry "Bitmap graphics test" {
    videotest -d bitmaps
    #### END MENU ####
    # Choose the font for gfxterm.
    set gfxterm_font="smoothansi"
    # Load fonts.
    # Generated with:
    # ls *.pf2 | perl -pe 's{^}{loadfont /boot/grub/fonts/}'
    loadfont /grub/fonts/10x20.pf2
    loadfont /grub/fonts/4x6.pf2
    loadfont /grub/fonts/5x7.pf2
    loadfont /grub/fonts/5x8.pf2
    loadfont /grub/fonts/6x10.pf2
    loadfont /grub/fonts/6x12.pf2
    loadfont /grub/fonts/6x13.pf2
    loadfont /grub/fonts/6x13B.pf2
    loadfont /grub/fonts/6x13O.pf2
    loadfont /grub/fonts/6x9.pf2
    loadfont /grub/fonts/7x13.pf2
    loadfont /grub/fonts/7x13B.pf2
    loadfont /grub/fonts/7x13O.pf2
    loadfont /grub/fonts/7x14.pf2
    loadfont /grub/fonts/7x14B.pf2
    loadfont /grub/fonts/8x13.pf2
    loadfont /grub/fonts/8x13B.pf2
    loadfont /grub/fonts/8x13O.pf2
    loadfont /grub/fonts/9x15.pf2
    loadfont /grub/fonts/9x15B.pf2
    loadfont /grub/fonts/9x18.pf2
    loadfont /grub/fonts/9x18B.pf2
    loadfont /grub/fonts/Helvetica-10.pf2
    loadfont /grub/fonts/Helvetica-12.pf2
    loadfont /grub/fonts/Helvetica-14.pf2
    loadfont /grub/fonts/Helvetica-18.pf2
    loadfont /grub/fonts/Helvetica-24.pf2
    loadfont /grub/fonts/Helvetica-8.pf2
    loadfont /grub/fonts/Helvetica-Bold-10.pf2
    loadfont /grub/fonts/Helvetica-Bold-12.pf2
    loadfont /grub/fonts/Helvetica-Bold-14.pf2
    loadfont /grub/fonts/Helvetica-Bold-18.pf2
    loadfont /grub/fonts/Helvetica-Bold-24.pf2
    loadfont /grub/fonts/Helvetica-Bold-8.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-10.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-12.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-14.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-18.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-24.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-8.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-Bold-10.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-Bold-12.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-Bold-14.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-Bold-18.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-Bold-24.pf2
    loadfont /grub/fonts/New_Century_Schoolbook-Bold-8.pf2
    loadfont /grub/fonts/anorexia.pf2
    loadfont /grub/fonts/aqui.pf2
    loadfont /grub/fonts/clR6x12.pf2
    loadfont /grub/fonts/cure.pf2
    loadfont /grub/fonts/drift.pf2
    loadfont /grub/fonts/edges.pf2
    loadfont /grub/fonts/fkp.pf2
    loadfont /grub/fonts/gelly.pf2
    loadfont /grub/fonts/glisp-bold.pf2
    loadfont /grub/fonts/glisp.pf2
    loadfont /grub/fonts/helvR12.pf2
    loadfont /grub/fonts/kates.pf2
    loadfont /grub/fonts/lime.pf2
    loadfont /grub/fonts/mints-mild.pf2
    loadfont /grub/fonts/mints-strong.pf2
    loadfont /grub/fonts/nu.pf2
    loadfont /grub/fonts/smoothansi.pf2
    loadfont /grub/fonts/snap.pf2
    i use 2 hdd. From the first hdd i use a 100MB for /boot with ext2 -> set root=(hd0,1) <- ,
    and the rest from the first hdd and the second is used in a LVM configuration with 2 partitions lvolhome and lvolroot -> root=/dev/mapper/volgroup0-lvolroot <-
    and my fstab
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    #/dev/cdrom /media/cdrom auto ro,user,noauto,unhide 0 0
    #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    /dev/mapper/volgroup0-lvolhome /home ext3 defaults,noatime 0 1
    /dev/mapper/volgroup0-lvolroot / ext3 defaults,noatime 0 1
    UUID=1c16c6e9-1459-4547-a4ab-04b8f45daca6 /boot ext2 defaults,noatime 0 1
    UUID=bf143434-eb96-4155-9339-5b83521520d7 swap swap defaults,noatime 0 0

  • [x86_64] Let's fix grub issues - help wanted

    We have some issues with our grub bootloader. Lilo is working well but need to be recalled for every kernel update. Grub2 is not ready for x86_64 and still under heavy developement. So we should get grub (legacy) working. Arch32 is not patching it at all. It looks like we need to do this now.
    I myself have two systems: one with GeForce 6100 chipset (nforce4) booting from IDE hard disc very well. No issues there. The other system with Uli1695 chipset booting form IDE or SATA installs grub fine but cannot find the right partition when booting, even not in grub-shell. I cannot play to much with it as it is my main system.
    Read more on the mailing lists: http://savannah.gnu.org/mail/?group=grub
    You can base any testing package on this PKGBUILD
    The Package has to be build on i686 (Arch32) as it will not compile on x86_64 natively.
    So I've tried to collect all important patches and it's up to you to test them and report which will help!
    CLFS http://cross-lfs.org/view/svn/x86_64/bo … build.html
    1) http://cross-lfs.org/files/patches/svn/ … es-1.patch
    Description: Contains various fixes and enhancements
    Graphics mode support
    Fixes for Raid Support
    XFS Filesystem Boot Freeze Fixes
    Removed 2GB Memory Limitation
    Freebsd support
    Fixes for initrd support
    Grub installation Fixes
    Linux 2.6 geometry Fixes
    Intel Mac Support
    Autoconf and aclocal updates
    2) http://cross-lfs.org/files/patches/svn/ … ap-1.patch
    Description: This patch fixes the following issues on x86_64
    1) malloc'd pages seem to lack the execute bit on x86_64;
    2) grub seems to use some stack pointer diversion to malloc'd pages;
    3) nested functions execute data on the stack;
    4) this causes a segfault (at least on my machine)
    Frugalware http://darcs.frugalware.org/darcsweb/da … /base/grub
    They patch for better network support, cd support and a graphical menu.
    Gentoo
    http://www.gentoo.org/cgi-bin/viewcvs.c … iew=markup
    http://ftp.ucsb.edu/pub/mirrors/linux/g … .2.tar.bz2
    The patchset includes fixes for: splash, PIC, bounced checks, unsigned adresses, i2o raid, nxstac, netboot-pic, reiser4, netboot-gcc4.
    So user with grub issues - come on - test the patches and report if you got  it working for you :!:

    @gs:judd is mainating the installer. if you wanna see something new in there open a featurew request in flyspray ;-)
    I will checkin the fixed grub package. Then I will make new isos for a (hopefully) short testing period.
    @gs, here are some small fixes you can locally test if they fix your issues:
    Submitted By: Jim Gifford <jim>
    Date: 07-14-2006
    Initial Package Version: 0.97
    Upstream Status: Unknown
    Origin: Grub Bug Report - http://savannah.gnu.org/bugs/?func=detailitem&item_id=11312
    Description: This patch fixes the following issues on x86_64
    1) malloc'd pages seem to lack the execute bit on x86_64;
    2) grub seems to use some stack pointer diversion to malloc'd pages;
    3) nested functions execute data on the stack;
    4) this causes a segfault (at least on my machine)
    diff -Naur grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c
    --- grub-0.97.orig/grub/asmstub.c 2005-02-16 12:45:14.000000000 -0800
    +++ grub-0.97/grub/asmstub.c 2006-07-14 12:38:08.305902933 -0700
    @@ -43,6 +43,8 @@
    #include <termios>
    #include <signal>
    +#include <sys>
    +
    #ifdef __linux__
    # include <sys> /* ioctl */
    # if !defined(__GLIBC__) ||
    @@ -142,14 +144,25 @@
    assert (grub_scratch_mem == 0);
    - scratch = malloc (0x100000 + EXTENDED_MEMSIZE + 15);
    + scratch = mmap(NULL,
    + 0x100000 + EXTENDED_MEMSIZE + 15,
    + PROT_EXEC | PROT_READ | PROT_WRITE,
    + MAP_PRIVATE | MAP_GROWSDOWN | MAP_ANONYMOUS | MAP_32BIT,
    + -1,
    + 0);
    +
    assert (scratch);
    grub_scratch_mem = (char *) ((((int) scratch) >> 4) << 4);
    /* FIXME: simulate the memory holes using mprot, if available. */
    assert (disks == 0);
    - disks = malloc (NUM_DISKS * sizeof (*disks));
    + disks = mmap(NULL,
    + NUM_DISKS * sizeof (*disks),
    + PROT_EXEC | PROT_READ | PROT_WRITE,
    + MAP_PRIVATE | MAP_GROWSDOWN | MAP_ANONYMOUS | MAP_32BIT,
    + -1,
    + 0);
    assert (disks);
    /* Initialize DISKS. */
    for (i = 0; i < NUM_DISKS; i++)
    @@ -215,9 +228,9 @@
    /* Release memory. */
    restore_device_map (device_map);
    device_map = 0;
    - free (disks);
    + munmap(disks, NUM_DISKS * sizeof (*disks));
    disks = 0;
    - free (scratch);
    + munmap(scratch, 0x100000 + EXTENDED_MEMSIZE + 15);
    grub_scratch_mem = 0;
    if (serial_device)
    or this one, a part from http://ftp.jg555.com/grub-0.97-disk_geometry-2.patch
    diff -Naur grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c
    --- grub-0.97.orig/grub/asmstub.c 2005-02-16 12:45:14.000000000 -0800
    +++ grub-0.97/grub/asmstub.c 2006-07-14 12:38:08.305902933 -0700
    @@ -43,6 +43,8 @@
    #include <termios>
    #include <signal>
    +#include <sys>
    +
    #ifdef __linux__
    # include <sys> /* ioctl */
    # if !defined(__GLIBC__) ||
    @@ -142,14 +144,25 @@
    assert (grub_scratch_mem == 0);
    - scratch = malloc (0x100000 + EXTENDED_MEMSIZE + 15);
    + scratch = mmap(NULL,
    + 0x100000 + EXTENDED_MEMSIZE + 15,
    + PROT_EXEC | PROT_READ | PROT_WRITE,
    + MAP_PRIVATE | MAP_GROWSDOWN | MAP_ANONYMOUS | MAP_32BIT,
    + -1,
    + 0);
    +
    assert (scratch);
    grub_scratch_mem = (char *) ((((int) scratch) >> 4) << 4);
    /* FIXME: simulate the memory holes using mprot, if available. */
    assert (disks == 0);
    - disks = malloc (NUM_DISKS * sizeof (*disks));
    + disks = mmap(NULL,
    + NUM_DISKS * sizeof (*disks),
    + PROT_EXEC | PROT_READ | PROT_WRITE,
    + MAP_PRIVATE | MAP_GROWSDOWN | MAP_ANONYMOUS | MAP_32BIT,
    + -1,
    + 0);
    assert (disks);
    /* Initialize DISKS. */
    for (i = 0; i < NUM_DISKS; i++)
    @@ -215,9 +228,9 @@
    /* Release memory. */
    restore_device_map (device_map);
    device_map = 0;
    - free (disks);
    + munmap(disks, NUM_DISKS * sizeof (*disks));
    disks = 0;
    - free (scratch);
    + munmap(scratch, 0x100000 + EXTENDED_MEMSIZE + 15);
    grub_scratch_mem = 0;
    if (serial_device)
    diff -Naur grub-0.97.orig/lib/device.c grub-0.97/lib/device.c
    --- grub-0.97.orig/lib/device.c 2005-03-27 15:14:25.000000000 -0800
    +++ grub-0.97/lib/device.c 2006-07-14 12:37:02.523614144 -0700
    @@ -131,6 +131,152 @@
    #include <shared>
    #include <device>
    +#if defined(__linux__)
    +/* The 2.6 kernel has removed all of the geometry handling for IDE drives
    + * that did fixups for LBA, etc. This means that the geometry we get
    + * with the ioctl has a good chance of being wrong. So, we get to
    + * also know about partition tables and try to read what the geometry
    + * is there. *grumble* Very closely based on code from cfdisk
    + */
    +static void get_kernel_geometry(int fd, long long *cyl, int *heads, int *sectors) {
    + struct hd_geometry hdg;
    +
    + if (ioctl (fd, HDIO_GETGEO, &hdg))
    + return;
    +
    + *cyl = hdg.cylinders;
    + *heads = hdg.heads;
    + *sectors = hdg.sectors;
    +}
    +
    +struct partition {
    + unsigned char boot_ind; /* 0x80 - active */
    + unsigned char head; /* starting head */
    + unsigned char sector; /* starting sector */
    + unsigned char cyl; /* starting cylinder */
    + unsigned char sys_ind; /* What partition type */
    + unsigned char end_head; /* end head */
    + unsigned char end_sector; /* end sector */
    + unsigned char end_cyl; /* end cylinder */
    + unsigned char start4[4]; /* starting sector counting from 0 */
    + unsigned char size4[4]; /* nr of sectors in partition */
    +};
    +
    +#define ALIGNMENT 2
    +typedef union {
    + struct {
    + unsigned char align[ALIGNMENT];
    + unsigned char b[SECTOR_SIZE];
    + } c;
    + struct {
    + unsigned char align[ALIGNMENT];
    + unsigned char buffer[0x1BE];
    + struct partition part[4];
    + unsigned char magicflag[2];
    + } p;
    +} partition_table;
    +
    +#define PART_TABLE_FLAG0 0x55
    +#define PART_TABLE_FLAG1 0xAA
    +
    +static void
    +get_partition_table_geometry(partition_table *bufp, long long *cyl, int *heads,
    + int *sectors) {
    + struct partition *p;
    + int i,h,s,hh,ss;
    + int first = 1;
    + int bad = 0;
    +
    + if (bufp->p.magicflag[0] != PART_TABLE_FLAG0 ||
    + bufp->p.magicflag[1] != PART_TABLE_FLAG1) {
    + /* Matthew Wilcox: slightly friendlier version of
    + fatal(_("Bad signature on partition table"), 3);
    + */
    + fprintf(stderr, "Unknown partition table signaturen");
    + return;
    + }
    +
    + hh = ss = 0;
    + for (i=0; i<4>p.part[i]);
    + if (p->sys_ind != 0) {
    + h = p->end_head + 1;
    + s = (p->end_sector & 077);
    + if (first) {
    + hh = h;
    + ss = s;
    + first = 0;
    + } else if (hh != h || ss != s)
    + bad = 1;
    + }
    + }
    +
    + if (!first && !bad) {
    + *heads = hh;
    + *sectors = ss;
    + }
    +}
    +
    +static long long my_lseek (unsigned int fd, long long offset,
    + unsigned int origin)
    +{
    +#if defined(__linux__) && (!defined(__GLIBC__) ||
    + ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ <1>> 32, offset & 0xffffffff, &result, SEEK_SET))
    - errnum = ERR_DEV_VALUES;
    - return 0;
    -#else
    - off_t offset = (off_t) sector * (off_t) SECTOR_SIZE;
    - if (lseek (fd, offset, SEEK_SET) != offset)
    - errnum = ERR_DEV_VALUES;
    - return 0;
    -#endif
    + if (my_lseek(fd, offset, SEEK_SET) != offset)
    + {
    + errnum = ERR_DEV_VALUES;
    + return 0;
    + }
    if (write (fd, buf, size * SECTOR_SIZE) != (size * SECTOR_SIZE))
    diff -Naur grub-0.97.orig/util/grub-install.in grub-0.97/util/grub-install.in
    --- grub-0.97.orig/util/grub-install.in 2004-07-24 11:57:31.000000000 -0700
    +++ grub-0.97/util/grub-install.in 2006-07-14 12:37:02.535613832 -0700
    @@ -336,6 +336,10 @@
    # Create a safe temporary file.
    test -n "$mklog" && log_file=`$mklog`
    + # Before all invocations of the grub shell, call sync to make sure
    + # the raw device is in sync with any bufferring in filesystems.
    + sync
    +
    $grub_shell --batch $no_floppy --device-map=$device_map <<EOF>$log_file
    quit
    EOF
    @@ -450,6 +454,10 @@
    # Create a safe temporary file.
    test -n "$mklog" && log_file=`$mklog`
    +# Before all invocations of the grub shell, call sync to make sure
    +# the raw device is in sync with any bufferring in filesystems.
    +sync
    +
    # Now perform the installation.
    $grub_shell --batch $no_floppy --device-map=$device_map <<EOF>$log_file
    root $root_drive

  • Load new kernel

    I am running arch on Thinkpad x230t and I found this guide with recommendations for running arch on this particular laptop:
    https://wiki.archlinux.org/index.php/Le … nkPad_X230
    I am trying to install the linux-ck kernel and am having some trouble. I downloaded the tarball and ran the PKGBUILD and ran for a while and finished without doinging anything alarming.
    I made the recomended changes to:
    /etc/mkinitcpio.conf
    /etc/modprobe.d/modprobe.conf
    And then tried to run:
    mkinitcpio -p linux && mkinitcpio -p linux-ck
    It created the first linux image without any problems but failed on the linux-ck, here is the full post:
    mkinitcpio -p linux && mkinitcpio -p linux-ck
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
      -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.10.9-1-ARCH
      -> Running build hook: [base]
      -> Running build hook: [udev]
      -> Running build hook: [autodetect]
      -> Running build hook: [modconf]
      -> Running build hook: [block]
      -> Running build hook: [filesystems]
      -> Running build hook: [keyboard]
      -> Running build hook: [fsck]
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
      -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.10.9-1-ARCH
      -> Running build hook: [base]
      -> Running build hook: [udev]
      -> Running build hook: [modconf]
      -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: bfa
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
      -> Running build hook: [filesystems]
      -> Running build hook: [keyboard]
      -> Running build hook: [fsck]
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    [john@X230T-John ld.so.conf.d]$ sudo mkinitcpio -p linux-ck
    ==> Building image from preset: /etc/mkinitcpio.d/linux-ck.preset: 'default'
      -> -k /boot/vmlinuz-linux-ck -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-ck.img
    ==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux-ck'
    ==> Building image from preset: /etc/mkinitcpio.d/linux-ck.preset: 'fallback'
      -> -k /boot/vmlinuz-linux-ck -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-ck-fallback.img -S autodetect
    ==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-linux-ck'
    (Also, what do the 3 warning lines, on the linux image mean?)
    What's going on here? Thanks for any help.
    Last edited by lampwins (2013-08-27 18:36:13)

    What is the output of
    # pacman -Qm
    From the error that you posted, it clearly states that it can't find the specified linux-ck kernel, which if you installed should be hanging out inside of your /boot directory.
    You  might as well post the output of
    ls /boot/
    As for installing/compiling the linux-ck kernel, the Linux-ck ArchWiki, gives you a general idea, however its the same as installing any custom package (for me at least).  Below are the steps that I personally do, keep in mind that there might be other/easier ways. 
    1. Download the latest linux-ck tarball from the AUR, and if you are using an nvidia card you can also grab the proper nvidia-ck package. 
    2. Extract the tarball, and cd into the newly created folder
    3. edit the PKGBUILD, the only things I change in this file, are the variables in the code below that are set equal to y (enabling the option)
    ### PATCH AND BUILD OPTIONS
    # Set these variables to ANYTHING that is not null (y or hello or 2 or "I like icecream") to enable them
    _pstates_pat=y # Enable Haswell support for the new Intel pstate drive
    _makenconfig= # Tweak kernel options prior to a build via nconfig
    _localmodcfg=y # Compile ONLY probed modules
    _use_current= # Use the current kernel's .config file
    _BFQ_enable_=y # Enable BFQ as the default I/O scheduler
    _NUMAdisable=y # Disable NUMA in kernel config
    I personally have just started messing around with the kernel configuration so I'm using localmodconfig as a starting point.  You can however load your own config, or start one from scratch.
    4.Save & quit the file, then I personally run the command below, which compiles the package and if successful it installs it.  Keep in mind I'm pretty sure you have to have 'Sudo' set up on the system.
    makepkg -ci
    If you don't have 'Sudo' or whatever, you can still just run
    $ makepkg
    # pacman -U pkgname-pkgver.pkg.tar.xz
    5. If all is well, I update my grub2
    # grub-mkconfig -o /boot/grub/grub.cfg
    At this point, you should be able to boot into your new kernel.  Hopefully you use nvidia, and will notice that you have no X working.  You can follow the same outline to compile and install the proper nvidia-ck driver package.
    Hope this helps.
    Last edited by luisgmarine (2013-08-29 21:34:37)

  • 2012.01-1 archboot "2k12-R1" ISO hybrid image released

    Hi Arch community,
    Arch Linux (archboot creation tool) 2012.01-1, "2k12-R1" has been released.
    To avoid confusion, this is not an official arch linux iso release!
    Homepage and for more information on archboot:
    http://wiki.archlinux.org/index.php/Archboot
    Summary:
    - pacman4 introduction, new LTS 3.0.x kernel and uefi shell
    Hybrid image file and torrent is provided, which include
    i686 and x86_64 core repository. Please check md5sum before using it.
    Hybrid image file is a standard CD-burnable image and also a raw disk image.
        - Can be burned to CD(RW) media using most CD-burning utilities.
        - Can be raw-written to a drive using 'dd' or similar utilities.
          This method is intended for use with USB thumb drives.
    Please get it from your favorite arch linux mirror:
    https://downloads.archlinux.de/iso/archboot/2012.01/
    <yourmirror>/iso/archboot/2012.01/
    /boot for PXE/Rescue files are provided here:
    https://downloads.archlinux.de/iso/arch … 12.01/boot
    <yourmirror>/iso/archboot/2012.01/boot
    Changelog:
    GENERAL:
    - kernel 3.2.1 / LTS kernel 3.0.17
    - pacman 4.0.1 usage
    - RAM recommendations: 512 MB
    Kernel changes:
    - bump to latest 3.2.x series and bump lts to latest 3.0.x series
    Removed features:
    - None
    Environment changes:
    - added pacman4
    - bumped lts kernel
    - added kmod insted of module-init-tools
    - synced with latest mkinitcpio changes
    - added uefi shell
    hwdetect changes:
    - added fsck hook
    - added shutdown hook
    setup changes:
    - adopt pacman4 changes
    - adopt lts kernel changes
    - added btrfs compression option
    - allow btrfs on lts kernel
    - added separate /usr detection
    - fixed manual mounting of install media
    - try to detect (using dmidecode) whether the UEFI boot has occured in a Mac
    quickinst changes:
    - adopt pacman4 changes
    - adopt lts kernel changes
    Further documentation can be found on-disk and on the wiki.
    Have fun!
    greetings
    tpowa
    Last edited by tpowa (2012-01-28 10:45:14)

    clu wrote:
    DoubleEdit: This issue is apparently solved in grub r3807
    10:34 < CIA-133> GNU GRUB: Vladimir 'phcoder' Serbinenko <[email protected]> * r3807 grub/ (4 files in 3 dirs): (log message trimmed)
    10:34 < CIA-133> GNU GRUB: * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
    10:34 < CIA-133> GNU GRUB: (grub_scsi_read_capacity10): ... this.
    10:34 < CIA-133> GNU GRUB: (grub_scsi_read_capacity16): New function.
    10:34 < CIA-133> GNU GRUB: (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
    10:34 < CIA-133> GNU GRUB: 0xffffffff.
    10:34 < CIA-133> GNU GRUB: Fix off-by-one error.
    No. Thats not the fix. That message is for devs in the irc channel to know that the bzr repo has been updated with a new commit (which may/may not be relevant to the issue discussed). I have compiled grub2-efi-x86_64 r3804 (needs few changes in the PKGBUILD) but that alone is not enough for updating the grub2 code in Archboot, especially if you don't know how Archboot's grub2 is setup or how grub2 uefi booting works internally.
    To update the iso:
    Download the files from http://db.tt/gZT4rifS .
    Extract Archboot iso to (EXTDIR) (replace EXTDIR with actual extracted dir path)
    Replace (EXTDIR)/efi/boot/bootx64.efi , (EXTDIR)/efi/grub2/grub2_uefi.bin , (EXTDIR)/efi/shell/shellx64.efi (optional) with the corresponding downloaded files.
    Install extra/libisoburn and core/syslinux packages and run (to generate new iso - copy paste with relevant paths modified)
    xorriso -as mkisofs \
    -iso-level 3 -rock -joliet \
    -max-iso9660-filenames -omit-period \
    -omit-version-number -allow-leading-dots \
    -relaxed-filenames -allow-lowercase -allow-multidot \
    -volid "ARCHBOOT" \
    -p "prepared by custom" \
    -eltorito-boot boot/syslinux/isolinux.bin \
    -eltorito-catalog boot/syslinux/boot.cat \
    -no-emul-boot -boot-load-size 4 -boot-info-table \
    -eltorito-alt-boot --efi-boot efi/grub2/grub2_uefi.bin -no-emul-boot \
    -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin \
    -output ./archboot.iso (EXTDIR)
    Burn the iso to a cd and try again. AFAIK this issue does not occur with USB right?
    Last edited by the.ridikulus.rat (2012-01-30 18:41:59)

  • High System Temperature

    Hi,
    I am running Arch Linux with XFCE4. My system is really high on temperature which forces fan to run 24X7 and hence poor battery life. I usually get 45-50 degree Celsius on windows but i am getting around 65 with just browser open on Arch. I have configured TLP, Powertop (would be nice if it could permanently save its recommendation), thinkfan and power regression solution suggested by phoronix. I have a Thinkpad T420.
    http://imageshack.us/photo/my-images/52 … reenl.png/
    Uploaded with ImageShack.us
    Thanks.
    mod edit: Hello donniezazen, "thumbnail" is still too big. Please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd
    Last edited by fsckd (2011-09-08 19:48:37)

    dhave wrote:
    I might be able to work with you a little on this since I have the same machine. Also, I'm currently running xfce.
    What processor and video chip do you have? Are you using a spinning-disk hard drive or an SSD?
    Also, how do you have your sensors configured?
    Thanks for replying. I have Thinkpad T420i (4177CTO) with i7 Dual Core 2620M 2.7 Ghz Intel processor, 8 GB RAM, Intel HD 3000 (integrated) and Nvidia NVS 4200 1 Ghz GPU, and 500 GB 7200 RPM spinning-disk hard drive.
    I mostly tried these two webpages to setup thinkfan/sensors.
    http://thinkpad-wiki.org/Thinkfan#Keine … nel_2.6.38
    http://ubuntuforums.org/showpost.php?p= … ostcount=3
    Installed lm_sensors and ran sensor-detect to locate sensors using command find /sys/devices -type f -name "temp*_input"
    I have thinkpad_acpi, tp_smapi, coretemp in modules section of rc.conf and thinkfan in daemons.
    Installed thinkfan and added options thinkpad_acpi fan_control=1 to /etc/modprobe.d/modprobe.d.conf and created /etc/defualt/thinkfan with START=yes
    I have TLP installed and added it to daemons.
    I came from Ubuntu due to heat problems. I think this laptop suffers from power regression issues. I updates to grub2 and added pcie_aspm=force to /etc/default/grub but i couldn't do sudo update-grub but pcie_aspm=force seems to have replicated itself to kernel line of grub.cfg
    I have ran Powertop. I wish if i could make it permanent.
    Thanks.

  • [SOLVED] impossible to boot (UEFI-grub2) after update

    Hi,
    problem : after update my computer refuses to boot. It doesn't get to the grub2 (actually 1.99) menu, it just says : no boot device found.
    My hardware : Asus M8Z77-V LX motherboard with 1 SSD.
    In the bios I disabled the bios legacy option to force it to boot with UEFI.
    As I hadn't moved to systemd yet, I waited to update a while(2 months).
    Last week I updated several pacakges by hand (kernel, vlc, ...) : All updates that according to me didn't involve with systemd.
    Then I rebooted and ... problem.
    I have tried a whole weekend to solve it by browsing through the wiki's but to no avail.
    I can boot with live-cd and access my SSD. All data is there. I can also chroot and do stuff.
    The SSD is partitionned in GPT as follows :
    sda1 : 1 gb fat 32
    sda2 : 20 gb ext4 root
    sda3 : 20 gb ext4 var
    sda4 : 79 gb ext4 home
    I did not do any update of my bios or changed anything on my hardware.
    It seems that my bios does not see my SSD as UEFI-bootable device anymore.
    When I installed Arch in June on my brand new computer I made a backup with redobackup (partclone) of a working installation.
    As a final ressort I put back the image I created then.
    But it doesn't work either!
    Then I updated my bios but same problem.
    My bios can see the fat 32 partition. I know this because to update the bios it looks for attached fat 32 storage and there is shows the partition .
    I there anywone who can point me in a good direction?
    Thanks a lot in advance.
    Last edited by BelgiumArcher (2013-01-08 16:20:43)

    I am sorry if I lost your confidence. I can't find any contradictory info in my post.
    The Arch Wiki-Grub 2 says that you need to boot in UEFI before you can (re)install grub2.
    As my live-cd won't boot in UEFI mode, the only option is that I make a live-usb stick and see if that one will boot in UEFI.
    But in the end it is still strange that a software update breaks my Asus UEFI-boot.
    I just found another unlucky guy with a simular problem. I'll try his solution tonight.
    http://superuser.com/questions/372962/w … ot-manager
    http://superuser.com/questions/376470/h … -grub2-efi
    I will try the live-usb method and report on it later.

  • [SOLVED] Send diff Parameters to diff kernels w/GRUB2 &survive updates

    1. Installed LMDE.
    2. Loaded the core ARCH and all went well - loaded necessary drivers for my soundcard and video and all is well
    3. Discovered early with the first distro installs that the linux kernel does not handle synaptic touchpad devices well during the PM suspend and resume process.
    4. The cure is to add atkbd.reset to a command line in the grub file  - then update grub and end result - touchpad works great after resume.
    5. Now, since grub was already installed I bypassed that during ARCH setup. Went into LMDE and mounted the root for ARCH and then installed OS-prober - ran update-grub and now when my comp starts up I have a grub menu the allows me to choose which distro to choose.
    SO QUESTION IS - How do i get grub to send parameters to the kernel for ARCH that are different from parameters being sent to LMDE??
    Temporary Solution is to edit the grub.cfg file directly - Just worried about updates to grub erasing my manual adjustments!!!
    Permanent Solution you will find at the bottom of this topic post #22.
    Last edited by iamk2 (2013-03-27 00:50:07)

    [RESOLVED]  - How to Send different Parameters to diff. kernels with grub?  AND retain these setting automatically even after using update-grub. NOTE this will not prevent any overwrites to your grub.d scripts via pacman. Wonder ho often this actually occurs???
    For any one out there that has two or more Linux distro's installed on one PC and uses OS-Prober to locate the 2nd, 3rd, etc.., distro's for the grub2 menu, here is a risk free solution that allows you to send parameters to other kernels as well as your first installed one (or the one you have installed with grub2).
    (I say risk free because if your into ARCH, I would believe you have some skill and competence)
    1. Edit /etc/grub.d/30_os-prober with root permission
        find the code line containing
    linux ${LKERNEL} ${LPARAMS}
        append ${GRUB_CMDLINE_LINUX_DEFAULT} to the end of this line
    It should now look like this:
    linux ${LKERNEL} ${LPARAMS} ${GRUB_CMDLINE_LINUX_DEFAULT}
    Save the file
    2. Open terminal if need be and
    sudo update-grub
    This will attach the same parameters form your existing GRUB_CMDLINE_LINUX_DEFAULT in the /etc/default grub file to other distro's found by OS-Prober.
    3. Now if you wanted to send different parameters to the distro's found by OS-Prober, then instead of
    linux ${LKERNEL} ${LPARAMS} ${GRUB_CMDLINE_LINUX_DEFAULT}
    make it like something like this
    linux ${LKERNEL} ${LPARAMS} ${GRUB_CMDLINE_OS_PROBER_FINDS_DEFAULT}
    Then got to your /etc/defaults grub file and insert
    GRUB_CMDLINE_OS_PROBER_FINDS_DEFAULT
    so that your grub file now looks like this
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset acpi_osi=\"Linux\""
    GRUB_CMDLINE_LINUX="atkbd.reset"
    GRUB_CMDLINE_OS-PROBER-FINDS_DEFAULT="your parameters"
    Now to send completely different parameters to each and every kernel is a game I wonder about but not interested at this time in solving.
    Last edited by iamk2 (2013-03-27 01:55:56)

  • [Grub2] cannot update to version 1.99-2

    Hello.
    I want to do my daily update (I know I'm crazy), but I cannot get grub2 to be updated. Here is what I get using yaourt (it speaks english, pacman speaks french on my system), with this command line : yaourt -Syu --aur :
    error: failed to prepare transaction (could not satisfy dependencies)
    :: Starting full system upgrade...
    :: grub2-bios: requires grub2-common=1.99
    Any idea to fix this problem ? I don't want to use --force option.
    Thanks.

    Is this due to the epoch=1 being set in http://projects.archlinux.org/svntogit/ … k/PKGBUILD ? I think pacman assumes the version to be 1:1.99-2
    Name : grub2-bios
    Version : 1:1.99-2
    URL : http://www.gnu.org/software/grub/
    Licenses : GPL3
    Groups : None
    Provides : grub2
    Depends On : grub2-common=1.99
    Optional Deps : None
    Required By : boot-update
    Conflicts With : None
    Replaces : grub2
    Installed Size : 2468.00 K
    Packager : Ronald van Haren <[email protected]>
    Architecture : x86_64
    Build Date : Sun 12 Jun 2011 03:53:24 PM IST
    Install Date : Sun 12 Jun 2011 09:00:03 PM IST
    Install Reason : Explicitly installed
    Install Script : No
    Description : The GNU GRand Unified Bootloader version 2 - Built for PC BIOS
    Is the epoch set/working correctly? Shouldn't the 'Version' be just 1.99-2 ?

  • [Solved] Grub2 Update deletes menu.lst

    [2013-06-24 18:07] [ALPM] warning: /boot/grub/menu.lst saved as /boot/grub/menu.lst.pacsave
    [2013-06-24 18:07] [PACMAN] upgraded grub (0.97-21 -> 2.00-1)
    After that I couldn't boot because menu.lst was gone. So I had to boot from a rescue disk and rename menu.lst.pacsave back to menu.lst.

    There kinda already is one thread about it: https://bbs.archlinux.org/viewtopic.php?id=165721

  • Blank screen after kernel update

    Dear Archers, I'm sorry for asking your help  but I'm really stuck here.
    What happened? I did an update like usual and a new updated kernel was installed. The pacman process 'pacman -Syu' did not completely finish for one reason or another and hang on the part 'linux', so I had to abort it after an hour by using CTRL+C. After this, I was left with an unbootable system saying at TTY1 "Unable to find root device..." and "failed to load ...modules'. Even switching to TTY2 or typing in the terminal was not possible.
    Gladly for me I was able to fix this problem by booting the Arch live USB and chroot in my system. From there I ran 'mkinitcpio -p linux', re-installed my GRUB2 (there were some problems with it) and now it's all fine and booting well. The only problem remaining is the fact that the system boots into a blank screen. No error message, nothing.
    When trying to consult 'journalctl' there is nothing mentioned about an error or problem. So my initial thought was that there was something wrong with X. But nothing had changed for the Xorg.conf file so I thought that maybe the Nvidia modules where not loaded/configured correctly. Which makes me install 'nvidia-hook' as described in the Wiki and I've added 'nivida' to my 'hooks' in mkinitcpio. After running the command again all went well and the modules are configured. But I still arrive at a blank screen and now I'm really out of ideas what could be the culprit here...
    Extra info: I use GDM that boots straight into Gnome. It says after boot:
    [OK] ...
    [OK] Started GNOME display manager
    [OK] Reached target graphical interface
    and then a blank screen
    Thank you for any guidance or help you could give me.
    Last edited by DarkLite1 (2014-06-09 12:24:31)

    X still exists, I tried:
    systemctl disable gdm
    systemctl enable lightdm
    After this change I rebooted and the system fires up lightdm after wich I see the lightdm interface graphically and I can enter my username and password. When clicking on OK to logon, I arrive on a black screen with a sad face saying 'Oh no! Something has gone wrong. A problem has occured and the system can't recover. All extensions have been disables as a precaution.' with a 'Log Out' button. On top of this screen my Conky screen pops-up.
    When I try to logon with Gnome-Classic, I have the same sad face greeting me after lightdm received my credentials. It's the same as this problem described here https://bbs.archlinux.org/viewtopic.php?pid=1270468
    The fact that I can see this as a non terminal thing, means my X is fine. So it might be related to a problem within Gnome or the Gnome session... No one else has this problem? Isn't there a way to re-initialise Gnome or it's session?
    I tried already reinstalling Gnome, the Gnome-Bluetooth package a resported in the other thread but to no avail.
    Last edited by DarkLite1 (2014-06-09 14:45:50)

  • System freezes and wireless stopped working after update

    Yesterday I ran my updates and the following were updated:
    [2012-06-29 21:03] Running 'pacman -Syu'
    [2012-06-29 21:03] synchronizing package lists
    [2012-06-29 21:03] starting full system upgrade
    [2012-06-29 21:08] upgraded ca-certificates-java (20120524-1 -> 20120608-1)
    [2012-06-29 21:08] upgraded chromium (20.0.1132.43-1 -> 20.0.1132.47-1)
    [2012-06-29 21:08] upgraded cryptsetup (1.4.2-2 -> 1.4.3-1)
    [2012-06-29 21:08] upgraded docbook-xsl (1.77.0-1 -> 1.77.1-2)
    [2012-06-29 21:08] upgraded grub2-common (1:2.00beta6-1 -> 1:2.00rc1-1)
    [2012-06-29 21:08] upgraded grub2-bios (1:2.00beta6-1 -> 1:2.00rc1-1)
    [2012-06-29 21:08] upgraded hplip (3.12.6-2 -> 3.12.6-3)
    [2012-06-29 21:08] upgraded hyphen (2.8.3-1 -> 2.8.4-1)
    [2012-06-29 21:08] upgraded imagemagick (6.7.7.7-1 -> 6.7.7.10-1)
    [2012-06-29 21:08] upgraded libsystemd (185-3 -> 185-4)
    [2012-06-29 21:08] upgraded systemd-tools (185-3 -> 185-4)
    [2012-06-29 21:08] upgraded sysvinit (2.88-3 -> 2.88-6)
    [2012-06-29 21:08] upgraded initscripts (2012.06.1-1 -> 2012.06.2-1)
    [2012-06-29 21:08] upgraded keyutils (1.5.5-2 -> 1.5.5-3)
    [2012-06-29 21:08] upgraded libnl (3.2.9-1 -> 3.2.11-1)
    [2012-06-29 21:08] upgraded libusbx (1.0.12-1 -> 1.0.12-2)
    [2012-06-29 21:08] upgraded libpcap (1.2.1-2 -> 1.3.0-1)
    [2012-06-29 21:08] upgraded libquvi-scripts (0.4.5-1 -> 0.4.6-1)
    [2012-06-29 21:08] upgraded linux-firmware (20120227-2 -> 20120625-1)
    [2012-06-29 21:08] upgraded netcfg (2.8.3-1 -> 2.8.5-1)
    [2012-06-29 21:08] upgraded pciutils (3.1.9-2 -> 3.1.10-1)
    [2012-06-29 21:08] upgraded psmisc (22.18-2 -> 22.19-1)
    [2012-06-29 21:08] upgraded qt (4.8.2-1 -> 4.8.2-2)
    [2012-06-29 21:08] upgraded raptor (2.0.7-2 -> 2.0.8-1)
    [2012-06-29 21:08] upgraded whois (5.0.16-1 -> 5.0.17-1)
    Now today, after a reboot, my wireless card won't activate (I normally run on wired, but I needed to hook my printer up and its wireless) and the system locks up and freezes at random times (it just stops...the display displays everything as normal except nothing responds. there are no log messages in everything.log about it).
    I have determined that the wireless problem probably came from the firmware update since when I tried to start the wireless card it said:
    phy0 -> rt2x00lib_request_firmware: Error - Failed to request firmware
    My wireless shows up in lspci as an Ralink Corp. RT2800 802.11n PCI which is correct.
    How do I go about troubleshooting these issues? I am very new to Arch Linux (it's been a week or so now) so I think this will probably be a handy skill to have.

    Looking at my currently loaded modules (using lsmod) it would seem that my wireless driver is loaded at the module level:
    rt2800pci 9681 0
    rt2800lib 43247 1 rt2800pci
    rt2x00pci 5050 1 rt2800pci
    rt2x00lib 35928 3 rt2x00pci,rt2800lib,rt2800pci
    mac80211 395680 3 rt2x00lib,rt2x00pci,rt2800lib
    cfg80211 170074 2 mac80211,rt2x00lib
    I also found some handy output from dmesg:
    [ 702.101074] systemd-udevd[4835]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 762.590997] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
    [ 762.591584] systemd-udevd[4878]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 1285.067769] systemd-udevd[928]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 1345.615907] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
    [ 1345.616427] systemd-udevd[931]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 2377.442112] systemd-udevd[24961]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 2438.494258] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
    [ 2438.494770] systemd-udevd[26660]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 2606.966231] systemd-udevd[3796]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    [ 2667.394993] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
    [ 2667.395348] systemd-udevd[3807]: segfault at 20 ip 000000000040dac7 sp 00007fff334e3580 error 4 in systemd-udevd[400000+2c000]
    Since the firmware for this update just came out on the 27th is it possible something made its way in there and broke this? I can't seem to find anyone else who has had this problem and from all appearances it looks like it should be working (and it used to work quite well).
    EDIT: One thing I am not sure about is that the firmware is in the firmware directory. Here are all the rt* firmwares. Is this correct or should there be an rt2x00 firmware in there?
    -rw-r--r-- 1 root root 8192 Jun 14 20:10 rt2561.bin
    -rw-r--r-- 1 root root 8192 Jun 14 20:10 rt2561s.bin
    -rw-r--r-- 1 root root 8192 Jun 14 20:10 rt2661.bin
    -rw-r--r-- 1 root root 8192 Jun 14 20:10 rt2860.bin
    -rw-r--r-- 1 root root 8192 Jun 14 20:10 rt2870.bin
    lrwxrwxrwx 1 root root 10 Jun 14 20:10 rt3070.bin -> rt2870.bin
    -rw-r--r-- 1 root root 4096 Jun 14 20:10 rt3071.bin
    lrwxrwxrwx 1 root root 10 Jun 14 20:10 rt3090.bin -> rt2860.bin
    -rw-r--r-- 1 root root 4096 Jun 14 20:10 rt3290.bin
    -rw-r--r-- 1 root root 2048 Jun 14 20:10 rt73.bin
    rtl_nic:
    total 44
    -rw-r--r-- 1 root root 2076 Jun 14 20:10 rtl8105e-1.fw
    -rw-r--r-- 1 root root 1492 Jun 14 20:10 rtl8168d-1.fw
    -rw-r--r-- 1 root root 1324 Jun 14 20:10 rtl8168d-2.fw
    -rw-r--r-- 1 root root 5500 Jun 14 20:10 rtl8168e-1.fw
    -rw-r--r-- 1 root root 3920 Jun 14 20:10 rtl8168e-2.fw
    -rw-r--r-- 1 root root 3872 Jun 14 20:10 rtl8168e-3.fw
    -rw-r--r-- 1 root root 3136 Jun 14 20:10 rtl8168f-1.fw
    -rw-r--r-- 1 root root 1232 Jun 14 20:10 rtl8168f-2.fw
    -rw-r--r-- 1 root root 1824 Jun 14 20:10 rtl8402-1.fw
    -rw-r--r-- 1 root root 1840 Jun 14 20:10 rtl8411-1.fw
    rtlwifi:
    total 272
    -rw-r--r-- 1 root root 13540 Jun 14 20:10 rtl8192cfw.bin
    -rw-r--r-- 1 root root 16014 Jun 14 20:10 rtl8192cufw.bin
    -rw-r--r-- 1 root root 20526 Jun 14 20:10 rtl8192defw.bin
    -rw-r--r-- 1 root root 88856 Jun 14 20:10 rtl8192sefw.bin
    -rw-r--r-- 1 root root 129304 Jun 14 20:10 rtl8712u.bin
    Last edited by Los Frijoles (2012-06-30 16:18:17)

  • [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)

Maybe you are looking for

  • AP with PO and AP without PO

    Does anyone has documentation on AP with PO and AP without PO? Thanks

  • XRPM: replace 'item dashboard' by customer webdynpro for abap application

    Hi guys, I want to replace my item dashboard application to be replaced by a customer WD4A. Within this application I will select from a tree structure a project. Now the questions: How to controll the standard context menu in the portal during this

  • Flicker on Scrolling Text

    I have a problem with flicker on scrolling text in a movie after the DVD has been burned (on the computer monitor or TV it doesn't matter). Before burning but after encoding, the movie plays the MPEG file fine with no flicker. Even with DVDSP simulat

  • EBP Purchase Order

    Hi, I would like to know, how to remove GR Non Valuated Indicator in a EBP Purchase Order? Thanks Manoj

  • Downloaded new updates, problem printing

    I downloaded some new updates. I have a HP officejet 6110xi printer with driver version 2.2.9. I'm using OS 10.3.9. I used the older version of the driver because the newer one had caused some printing problems. The HP tech told me to use it and I ha