[solved] /boot/grub/grub.cfg installed as /boot/grub/grub.cfg.pacnew

Hello there,
With the latest update of grub-common I got the following message:
( 3/15) upgrading grub-common [################################################################] 100%
warning: /boot/grub/grub.cfg installed as /boot/grub/grub.cfg.pacnew
However, should I reflect the changes of grub.cfg.pacnew or simply ignore it because grub.cfg is generated automatically?
Last edited by orschiro (2013-05-29 05:08:19)

koz wrote:
cfr wrote:
Natanji wrote:I just broke my system with this, so I think the package should *at least* post a notice to the user asking him to run "grub-mkconfig -o /boot/grub/grub.cfg" - or simply doing so post-installation, even. I know, my fault, but it's still really easy to overlook...
Since automating it would make it virtually impossible to maintain a manually configured grub.cfg, I disagree. Arch does not do that stuff automatically. Even for those who do not hand edit the config file, it is likely to break things if people have more complex setups. (For example, in some cases, grub will not find an OS unless the partition is mounted and it might not be mounted.) Actually, not even Fedora does this automatically although I suspect that is considered a bug.
As for the warning, pacman does warn you. It tells you it has installed a *.pacnew file. That tells you two things: (1) you needed to customise the previous default config, and (2) the default config has changed. That copying the pacnew over your old config will break things is standard: blindly copying *any* pacnew over your old, customised file will break things. I agree that it breaks things in a bigger way in this case but the principle is exactly the same. That is not to say that I think a reminder would be out of place - other boot loaders'managers do post such messages. But being told about a pacnew or a pacsave file *is* notification from grub that user intervention is required and this is usually because somebody who knows the system and customisations made previously is required to adapt the changes to accommodate the update. i.e. it is usually because blindly overwriting stuff is very likely to break things.
It is automated! WTF?!
Not really. One can hand edit grub.cfg and the package does not interfere with that.
This is what pacman threw out at me:
warning: /etc/default/grub saved as /etc/default/grub.pacsave
warning: /boot/grub/grub.cfg saved as /boot/grub/grub.cfg.pacsave
( 1/11) upgrading cgminer [#######################################] 100%
( 2/11) upgrading e2fsprogs [#######################################] 100%
( 3/11) installing grub [#######################################] 100%
Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg
Is this intended??
It, thankfully, didn't break anything but this isn't what should have happened. I am sure it will ruin someone's day.
I agree this is strange. I have no idea why it moves your old config to a .pacsave and then copies that .pacsave back to grub.cfg. Effectively what it does is just make a copy of your config as .pacsave but I don't know why it does that.
It is in fact quite unlikely to break anything since it is very likely that an existing grub.cfg will work with the new version of grub. Obviously people should check but if somebody doesn't it is not likely to do any harm. I am not sure what you did to break your configuration but I doubt that you copied grub.cfg.pacsave to grub.cfg.

Similar Messages

  • Can't boot into Windows after installing with Boot Camp

    So I installed Windows 7 on a separate 70GB partition using Boot Camp. Everything seems fine, but once installation finished and the computer restarted for the final time, the computer shows the blinking "_" on the black screen and then promptly reboots and this cycle continues without end.

    please re-post in the more appropriate Boot Camp forum

  • Boot Camp users using XP via Boot Camp - Can you install Open Type Fonts?

    Have any of the Boot Camp 2.1 users that have been using Windows XP via Boot Camp been able to install Open Type Fonts, i.e. fonts that are sold by Adobe?
    I have now tried this on two new MacBook Pros, and I have tried three different retail versions of Windows XP on each system. It just does not work.
    I keep getting the "Unable to Install Font" message, which suggests that I contact the font vendor, which I have. I have also tried many different versions of different fonts.
    After having investigated with Adobe and Microsoft, and after having reinstalled Windows over 6 times on two different new MacBook Pros, I am starting to believe that this issue affects all new MacBook Pros and/or Boot Camp 2.1 users.
    For some points, could someone please try to install an Open Type Font in Windows XP, and let me know if you are successful?
    Thank you very much!

    Experiencing the same from a fresh install of Windows XP on Boot Camp 2.1.
    Tried 2 different scenarios. Installed Windows XP, Boot Camp Drivers, Open Type Fonts. Received an not a valid font file when trying to install. Installed Windows XP and then the Open Type Fonts. All fonts registered and accessed by the operating system without the Boot Camp Drivers. Installed the Boot Camp Drivers and checked the fonts, received error messages accessing fonts.
    Pretty sure its the Boot Camp Drivers that are causing the problems with Windows and the fonts. Hopefully there is an updat to address this issue.

  • [SOLVED]Unable to install grub "couldn't find /mnt/boot/grub/menu.lst"

    Ok so I was trying to install windows after I had arch installed, used an ubuntu cd to use gparted to create a partition, tried to go to the windows installation but it would endlessly send me back to restart the installation even after succesfully writting all files...
    So now I decided to not install it, went back into ubuntu/gparted, deleted the partition and rejoined the space with my main arch partition and then selected the "boot" flag to boot...
    Cannot boot, grub its still on /boot/ but the MBR its obviously tempered with by windows ( which coincidentally couldn't even find itself after writing mbr to its liking....*sigh* ).
    So I try to use my arch install cd to reinstall grub but i get this:
    "couldn't find /mnt/boot/grub/menu.lst is grub installed?"
    I tried to use the select packages thing to make sure the cd is mounted and mounts fine but it keeps getting me that error message. I managed to boot to my system just fine with arch root=/dev/sda1 but obviosly the kernell does not has my nvidia module which means I can't get into x which means i am using links and since my grub is not loaded i can't even get framebuffer so this is rather inconvenient.
    Im sure im missing a very simple and stupid thing but im so annoyed my brain must be saying "ok im done somebody else figure it out". I still have a backup copy of my grub menu.lst I made before. Do I just delete /bood/grub/ and try again? Am I missing something on the install procedure to be able to rewrite grub? Can I just do it from the command line or with pacman? Any help appreciate it thanks.
    Last edited by Misanthrope (2008-06-01 17:22:32)

    If you can get into your arch and cli then you should just be able to reinstall grub with
    install-grub /dev/sda
    or reinstall grub with
    pacman -S grub
    if the package is messed up or missing.

  • [Solved] Boot process hangs for installed Arch and installation usb

    Hi. I've been using Arch Linux for around 6 months now and I'm in love with it. It is now my primary OS. However, I might have done something or performed some update, and I can no longer boot into Arch. The boot process hangs right before it should show the login screen (I'm using Gnome 3.6 with GDM). I see the following messages on the screen:
    Loading Linux core repo kernel ...
    Loading initial ramdisk ...
    /dev/sda3: recovering journal
    /dev/sda3: clean, 330610/1749664 files, 5585671/6996827 blocks
    And then it hangs right there. I have to hard-reboot after this.
    I then tried to boot using the Arch Linux Installation USB (archlinux-2012.12.01-dual.img), which also hangs at a particular point, before it should show me the prompt. I took a picture of the screen where it hangs: Screen Capture. This is an issue with just my laptop, because the USB boots just fine on another laptop I tried.
    I also have Windows 7 and Ubuntu 12.10 installed on my system, and I'm able to boot into both of them.
    I have 2 hard drives: /dev/sda is a 120GB SSD, and /dev/sdb is a 500GB hard disk. My partitions are as follows:
    sda1 - Windows 7 100MB System Reserved Partition (boot flag enabled)
    sda2 - Windows 7 OS
    sda3 - ArchLinux (boot flag enabled)
    sdb1 - Ubuntu 12.10 (boot flag enabled)
    sdb2 - Just data
    I ran bootinfoscript and below is the output:
    Boot Info Script 0.61 [1 April 2012]
    ============================= Boot Info Summary: ===============================
    => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 99 for .
    => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
    the same hard drive for core.img. core.img is at this location and looks
    in partition 99 for .
    sda1: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files: /bootmgr /Boot/BCD
    sda2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System: Windows 7
    Boot files: /Windows/System32/winload.exe
    sda3: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Mounting failed: mount: /dev/sda3 already mounted or sda3 busy
    sdb1: __________________________________________________________________________
    File system: ext4
    Boot sector type: -
    Boot sector info:
    Operating System: Ubuntu 12.10
    Boot files: /boot/grub/grub.cfg /etc/fstab
    sdb2: __________________________________________________________________________
    File system: ntfs
    Boot sector type: Windows Vista/7: NTFS
    Boot sector info: No errors found in the Boot Parameter Block.
    Operating System:
    Boot files:
    ============================ Drive/Partition Info: =============================
    Drive: sda _____________________________________________________________________
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sda1 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
    /dev/sda2 206,848 178,466,084 178,259,237 7 NTFS / exFAT / HPFS
    /dev/sda3 * 178,466,085 234,440,703 55,974,619 83 Linux
    Drive: sdb _____________________________________________________________________
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    Partition Boot Start Sector End Sector # of Sectors Id System
    /dev/sdb1 * 63 20,948,759 20,948,697 83 Linux
    /dev/sdb2 20,964,824 976,771,071 955,806,248 7 NTFS / exFAT / HPFS
    "blkid" output: ________________________________________________________________
    Device UUID TYPE LABEL
    /dev/mmcblk0p1 6665-3162 vfat
    /dev/sda1 CA6A20CC6A20B75B ntfs System Reserved
    /dev/sda2 1EE242D5E242B137 ntfs
    /dev/sda3 65db0c59-9f04-46f1-975d-8a4c28132137 ext4
    /dev/sdb1 bb9818db-ce7c-43a4-8ad5-8d3702001aed ext4
    /dev/sdb2 3C2E3A4E2E3A0206 ntfs
    ================================ Mount points: =================================
    Device Mount_Point Type Options
    /dev/mmcblk0p1 /media/dhaval/6665-3162 vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)
    /dev/sdb1 / ext4 (rw,errors=remount-ro)
    =========================== sdb1/boot/grub/grub.cfg: ===========================
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
    set have_grubenv=true
    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 recordfail {
    set recordfail=1
    if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    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_output gfxterm
    if [ "${recordfail}" = 1 ]; then
    set timeout=-1
    else
    set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 13,37,73; then
    clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    ### BEGIN /etc/grub.d/10_linux ###
    function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
    set vt_handoff=vt.handoff=7
    else
    set vt_handoff=
    fi
    if [ "${recordfail}" != 1 ]; then
    if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
    if [ ${match} = 0 ]; then
    set linux_gfx_mode=keep
    else
    set linux_gfx_mode=text
    fi
    else
    set linux_gfx_mode=text
    fi
    else
    set linux_gfx_mode=keep
    fi
    else
    set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
    menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    initrd /boot/initrd.img-3.5.0-21-generic
    submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    menuentry 'Ubuntu, with Linux 3.5.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.5.0-21-generic ...'
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.5.0-21-generic
    menuentry 'Ubuntu, with Linux 3.5.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.5.0-21-generic-recovery-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.5.0-21-generic ...'
    linux /boot/vmlinuz-3.5.0-21-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro recovery nomodeset
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.5.0-21-generic
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-29-generic-advanced-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.2.0-29-generic ...'
    linux /boot/vmlinuz-3.2.0-29-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro quiet splash acpi_osi=Linux acpi_backlight=vendor $vt_handoff
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.2.0-29-generic
    menuentry 'Ubuntu, with Linux 3.2.0-29-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-29-generic-recovery-bb9818db-ce7c-43a4-8ad5-8d3702001aed' {
    recordfail
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    echo 'Loading Linux 3.2.0-29-generic ...'
    linux /boot/vmlinuz-3.2.0-29-generic root=UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed ro recovery nomodeset
    echo 'Loading initial ramdisk ...'
    initrd /boot/initrd.img-3.2.0-29-generic
    ### 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+ ###
    menuentry "Memory test (memtest86+)" {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux16 /boot/memtest86+.bin
    menuentry "Memory test (memtest86+, serial console 115200)" {
    insmod part_msdos
    insmod ext2
    set root='hd1,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 bb9818db-ce7c-43a4-8ad5-8d3702001aed
    else
    search --no-floppy --fs-uuid --set=root bb9818db-ce7c-43a4-8ad5-8d3702001aed
    fi
    linux16 /boot/memtest86+.bin console=ttyS0,115200n8
    ### END /etc/grub.d/20_memtest86+ ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-CA6A20CC6A20B75B' {
    insmod part_msdos
    insmod ntfs
    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 CA6A20CC6A20B75B
    else
    search --no-floppy --fs-uuid --set=root CA6A20CC6A20B75B
    fi
    chainloader +1
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/30_uefi-firmware ###
    ### END /etc/grub.d/30_uefi-firmware ###
    ### 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 ###
    =============================== sdb1/etc/fstab: ================================
    # /etc/fstab: static file system information.
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc nodev,noexec,nosuid 0 0
    # / was on /dev/sdb1 during installation
    UUID=bb9818db-ce7c-43a4-8ad5-8d3702001aed / ext4 errors=remount-ro 0 1
    =================== sdb1: Location of files loaded by Grub: ====================
    GiB - GB File Fragment(s)
    4.564525127 = 4.901121536 boot/grub/grub.cfg 1
    5.130507946 = 5.508840960 boot/initrd.img-3.2.0-29-generic 2
    5.851592541 = 6.283099648 boot/initrd.img-3.5.0-21-generic 2
    6.317649364 = 6.783524352 boot/vmlinuz-3.2.0-29-generic 1
    4.965751171 = 5.331934720 boot/vmlinuz-3.5.0-21-generic 2
    5.851592541 = 6.283099648 initrd.img 2
    5.851592541 = 6.283099648 initrd.img.old 2
    4.965751171 = 5.331934720 vmlinuz 2
    4.965751171 = 5.331934720 vmlinuz.old 2
    I tried adding nomodeset and acpi=off to the boot parameters, but the boot process still hangs. Please let me know if I should provide any other information.
    Last edited by dhavalparmar (2012-12-30 11:45:25)

    Ok.. So my Arch Linux randomly decided to work. I'm sure I didn't do anything between my last "not working" state and my current "working" state. Below are a few things I tried:
    I thought of trying an earlier build of ArchLinux, and downloaded archlinux-2012.11.01-dual.iso and made a bootable USB out of it. It still hung.
    I was getting error messages during Arch boot that the last access time for the disks was at a future date. I found out that Ubuntu was using localtime instead of UTC and screwing up my hardware clock. I fixed it, and thought maybe the time issues were causing the boot problem. But fixing time didn't solve my problem.
    I chrooted into Arch from my Ubuntu install, ran 'sudo pacman -Syyu' and updated my Arch install.
    I thought maybe GDM isn't starting up. I re-enabled the service using 'systemctl enable gdm.service'.
    I removed OpenNTPd and installed NTPd. Enabled the daemon using 'systemctl enable ntpd'
    None of the above solved the problem, and rebooting to Arch still hung the system. So I stopped fiddling with it yesterday. Today, as usual, I just tried logging into Arch.. And it just worked out of the blue. The solution to me is as mysterious as the problem.
    I told this to my friend who introduced me to Arch, and this is what he said:
    Damn it computers, you were supposed to be deterministic!

  • Dual boot , windows 7 keep restart after select from grub section

    Hello everyone, i am new here.
    I want to make a dual boot in my computer.
    I am using a same hardisk to install both OS.
    1st, I install arch linux , after install working well from grub.
    2nd, I install windows 7, after install , it skip the grub section , directly load windows 7.
    I boot my archlinux live cd.
    Go to grub .
    type root (hd0, and press tab to make sure my partition.
    setup (hd0).
    The grub section was recover and success to login arch linux.
    but fail to login windows 7 , then i modify /boot/grub/menu.lst . modify the windows (hd0, 1).
    My trouble probem is here, after i select the windows section , my com just like restart computer.
    Even i try change to (hd0, 2 or 3 ) also same problem, windows 7 restart computer.

    I have try to install dual boot for more than 5 time, first i install windows then only come to arch linux, but always fail to boot up windows.
    Thank for helping me ^^
    This is my fdisk -l
    I have 2 hardisk, but i install both Os in the same hardisk.
    Device Boot             Start                  End                  Block              ID              System
    /dev/sdb1                   1                      24                    192742+            83              Linux
    /dev/sdb2                   25                    37                   102400           7                    HPFS/NTFS
    Partition 2 does not end on cylinder boundry
    /dev/sdb3                   37                     8243              65939456           7                 HPFS/NTFS
    /dev/sdb4                   8247                14593               50982277+            5             Extended
    /dev/sdb5                  8247                  8368                  979933+            83             Linux
    /dev/sdb6                  8364                 10858                20000893+             83          Linux
    /dev/sdb7                  10859               14593                  20001356             82          Linux Swap / Solaris
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sd5 ro
    initrd /kernel26.img
    # (1) Arch Linux
    title Arch Linux fallback
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sd5 ro
    initrd /kernel26_fallback.img
    # (2) windows
    title windows 7
    rootnoverify (hd0, 1)
    makeactive
    chainloader +1

  • Computer won't boot after windows 7 install.... :( [Solved]

    I have 2 hard drives. The first drive is my main arch linux install. The second drive I use to install various operating systems. My school was selling windows7 for $30...I couldn't resist the cheap price...now I'm paying for it ><
    I unplugged the hard drive with my arch linux install from my computer. (sda) Then installed windows 7 on the second hard drive. I reattached the first hard drive to my computer. (this was so i could avoid having to re-install grub)
    My computer would not boot. I decided to install linux mint -- something I was going to do anyway -- that way I could boot into arch linux and fix things. Mint installed fine. But my computer STILL won't boot. I get grub error 22. What's up with that? Is this something to do with windows7?
    Hard Drives:
    /dev/sda1 ext2 /boot 100 MB
    /dev/sda2 extended
    /dev/sda5 ext3 arch / 130 GB
    /dev/sda3 ext3 arch /home 166 GB
    /dev/sda4 swap 1.72 GB
    /dev/sdb1 ntfs windows7 65 GB
    /dev/sdb4 ext3 mint / 19GB
    /dev/sdb2 swap 1GB
    /dev/sdb3 ext3 media 900 GB
    Should I install grub to the MBR?
    I checked to make sure that nothing in my arch linux install was erased using the arch install cd... I really need to get this fixed before classes on monday so any help would be appreciated.
    Last edited by Meskarune (2009-10-31 04:26:39)

    Xyne wrote:Then again, when you buy Windows, I suppose you're looking for the authentic Windows experience.
    I was going to say, even at $30 you still managed to get the full windows experience at first boot!
    Meskarune wrote:PS. I heard that windows will override the MBR when it updates... so consequently it is bad to install grub to the MBR in a dual boot system. Will I have to be reinstalling grub all the time?
    God i hope not.  just stay away from windows if that happens
    just thinking about tihs is giving me headaches.
    Last edited by toxygen (2009-10-31 03:06:12)

  • Booting error after post-install update [Solved]

    hi
    Been using Linux for a while, but wanting to learn rather than just use, so decided to give Arch a go, after the review in LinuxMagazine.
    Managed to install and boot into it after a few trial and error.
    Ran "pacman -Syu"
    pacman updated itself, then ran into the hotplug conflict. I took it from This thread that it was safe to accept to remove hotplug.
    Ran "pacman -Syu" again 
    I then ran into the the error:
    error: the following file conflicts were found
    grub: /usr/share/grub: exists in filesystem.
    Followed This thread and did
    phrakture wrote:'mv' /usr/share/grub to something like /usr/share/grub-backup
    Ran pacman -Syu again, this time, it ran properly (I think)
    Rebooted the computer, ran into  a kernel panic:
    UFS: unable to mount root on unknown-block(0,0)
    . Followed This thread and  the wiki and edited the instruction on Grub's boot screen to set
    root=/dev/hda1 ro
    and added
    initrd /initrd26.img
    to the line uderneath.
    this allows me to boot (sort off), but I then get the following error:
    /bin/sh: can't access tty; job control turned off
    From there, I get what seems to be a limited shell (get the "#" sign but not the location I am in such as "root@archbox:#" which I would expect). Here, I am snookered. If I search the wiki for this message, I get one article which refers to Cups and is not relevant to the issue, as far as I can tell, and I do not get any joy from the forum either.
    Reinstalling the system is not a problem, but I would rather understand what is happening before I do it, so that I can fix it if the issue reappears, and because it fits into the "learning" purpose of installing this distro.
    Could someone guide me on my next step?
    Thx
    Damien

    tomk wrote:Change initrd26.img to initrd26-full.img, and you should be able to boot. When you're up and running, have a look at the wiki page on initrd for more info.
    Thanks, that did it. Thought I had tired that as well, though, must have been tired and made some typos.....
    On a sidenote, it seems that after the install, there was "/dev/discs/disc0" then came the partitions: part1; part2; part3, which is now translated as hda1; hda2; hda3.  I thought partitions started with hda0..  Am I wrong or is the way Arch auto-prepares the hard drive just skips the 0 partition?

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

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

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

  • How to Restore Arch's grub after Ubuntu install to 2nd disk

    I installed Ubuntu to sdb after installing Arch to sda. Ubuntu was installed with LVM, though Arch does not use LVM.
    I want to wipe out ubuntu now, but it seems to be in control of my boot process, and as a newb, I'm not quite sure how that process transpires.  I have read the Grub article on Arch's Wiki site, but that doensn't help me.
    After booting into Arch and running:
    # grub-mkconfig -o /boot/grub/grub.cfg
    and then rebooting, I still have the Ubuntu Grub menu on the next boot.  My Arch /etc/default/grub is the same one that I used before installing Ubuntu - I'm not concerned about adding Ubuntu to the menu, so that's not an issue.
    What do I need to do to get Arch back in control of the boot process?
    Thanks in advance!

    Kilz wrote:Here is an option in case you cant figure it out. Rename the /boot directory in the ubuntu install and copy the /boot directory from Arch in its place. Reboot, if everything works fine delete everything in the Ubuntu partition but /boot. Rename the /boot directory in the Arch install then shrink the ubuntu partition and mount it in the arch install as /boot. in the end you will just have a separate boot partition that will take up little space.
    Thanks again. I finally got it working, but via a different, somewhat convoluted route. 
    I screwed things up and ended up with only a grub prompt at boot.  Following instructions found online, I was able to boot my arch disk (sda), then ran grub-install and grub-mkconfig.  The install ran without errors (as before) but grub-mkconfig reported errors.  I had been disregarding these errors, because I thought they were related to the custom font and background in my /etc/default/grub file, and another source explained that I could ignore errors when setting fonts and background there (not sure if that source was reliable).  But one of the errors on grub-mkinstall reported it couldn't find device.map.  There was no device.map in /boot/grub.
    Also of note, I had renamed the old /boot/grub/grub.cfg and left the /boot/grub directory without a proper grub.cfg file - probably why I got a grub menu at boot!
    In the end, I created a device.map in /boot/grub/ and re-ran grub-mkconfig, but still got an error.  So I commented out the font and background lines in /etc/default/grub and also renamed my old backup /boot/grub/grub.cfg-backup to the proper "grub.cfg", then re-ran grub-mkconfig.  This time there were not errors reported from grub-mkconfig and with a quick glance at the contents, I was able to figure out that the menu entries looked good. 
    I was able to reboot with the appropriate arch menu at this point!  While I'm not sure which step "fixed" my problem, I wanted to at least record my steps here for future users - perhaps one of the options above will help someone else.  Worth mentioning is that the ubuntu (sdb) drive was LVM, and I think that might have played into some of my difficulties, but I'm not sure about that.
    The device.map that I created looked like this, where sda is my arch disk and sdb is the ubuntu installation (still not sure if it is needed, though):
    (hd0) /dev/sda
    (hd1) /dev/sdb
    Last edited by stringchopper (2013-02-14 08:38:52)

  • How to install Linux on UEFI systems where GRUB fail to install?

    A few of us are asking:
    How to install Linux on UEFI systems where GRUB fail to install? Because after installing Linux, my MBR is messed up, and I get a "no operating system found" at system startup.
    abvasili
    I'm just a volunteer. I like to help others where I can. Do my ideas work? I hope so. o_O
    Who helped you today? Do not forget to thank him.
    My hardware: TP x120e 0596-2ru. Windows 7, sp1, 64Bit, English, installed in UEFI mode.
    Solved!
    Go to Solution.

    Hi again,
    I would like to answer to another question, just in case:
    Question: Can I dual boot Win7 and Linux on a UEFI capable bios?
    Answer: Yes you can. If your HDD is formatted in MBR partition table (or msdos) than you can install first windows 7 and than the distro of your choice. BUT, careful, if you install windows from a DVD media it will convert your HDD in GPT partition table and dual boot will be almost impossible... (or will give you a lot of headache) to avoid this, dump the win7 iso to an usb using Windows 7 USB/DVD Download Tool. Installing from USB will not change the hdd in GPT partition table.
    take care
    abvasili
    I'm just a volunteer. I like to help others where I can. Do my ideas work? I hope so. o_O
    Who helped you today? Do not forget to thank him.
    My hardware: TP x120e 0596-2ru. Windows 7, sp1, 64Bit, English, installed in UEFI mode.

  • Boot rescue after first install

    Hi all,
    i've installed arch on my laptop but i've a broblem after the first boot...
    This is my system configuration: SSD+GPT+BIOS(not UEFI)
    I've follow the beginne's guide...
    I've created the GPT partition table with gdisk with 'o'.
    I've aligned the disk at 6144 (best for my Samsung 840 evo).
    I've created the first partition of 2MB with code ef02 for boot, 2nd partition 225GB for / (root) and 3rd partition for swap.
    I've closed gdisk with 'w' for write the scheme, this output no errors...
    I've installed the system and configured them but when i install the grub2 this output me this error:
    https://www.dropbox.com/s/yagajwmycl1ax … 4.jpg?dl=0
    What's wrong i do?
    Thanks all and sorry for my english ;-)
    PS: This is not the 1st time i've installed arch linux...

    Thank you for reply!
    I've installed again the system to start! :-(
    At this time, for installing the grub, i've used this command:
    #grub-install --target=i386-pc --recheck --debug /mnt/sdc
    This output with no error!!! But when i restart the system the problem it's the same!
    error: no such device: 3d95f99c-bla bla...
    Entering rescue mode...
    Through an ubuntu live:  (arch installed device is sdb)
    sudo blkid
    /dev/loop0: TYPE="squashfs"
    /dev/sda1: LABEL="Storage" UUID="158d9c57-60fd-4385-8624-5d4a0ea65353" TYPE="ext4" PARTUUID="000d6c9e-01"
    /dev/sdb1: PARTUUID="46ef1da0-44dd-4549-81d9-e49494d9ea92"
    /dev/sdb2: UUID="4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6" TYPE="ext4" PARTUUID="c33a0ea0-b5bd-45a6-9642-704100589f2c"
    /dev/sdb3: UUID="837b4fa3-19f1-4f69-a309-da02eab308e6" TYPE="swap" PARTUUID="7fb8d6b5-d97f-4326-b737-41b677b678ea"
    /dev/sdc1: UUID="2014-07-22-22-36-29-00" LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660" PTUUID="1b45097d" PTTYPE="dos" PARTUUID="1b45097d-01"
    /dev/sdc2: SEC_TYPE="msdos" UUID="E63C-163E" TYPE="vfat" PARTUUID="1b45097d-02"
    sudo lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 698.7G 0 disk
    └─sda1 8:1 0 698.7G 0 part
    sdb 8:16 0 232.9G 0 disk
    ├─sdb1 8:17 0 2M 0 part
    ├─sdb2 8:18 0 225G 0 part /
    └─sdb3 8:19 0 7.9G 0 part [SWAP]
    sdc 8:32 1 14.9G 0 disk
    ├─sdc1 8:33 1 981M 0 part
    └─sdc2 8:34 1 2.3M 0 part
    loop0 7:0 0 938.7M 1 loop
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sdc2
    UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 / ext4 $
    # /dev/sdc3
    UUID=837b4fa3-19f1-4f69-a309-da02eab308e6 none swap $
    This is the grub.cfg of the installation:
    # 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='hd2,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    else
    search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd2,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    else
    search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd2,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    else
    search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd2,gpt2'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    else
    search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 rw quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###

  • Recent pacman -Sc causes no boot start(fixed re-installed kde4.5)

    Backup HDD fails to reach grub stage after pacman -Sc.
    Hangs before grub starts...cannot run fallback nor default.
    Examined grub from another boot device and find it to be normal grub menu.
    This post is similar to my other post in that it fails after pacman -Sc on a similar archlinux installed system(same version copied across with dd) and operating well for months before this occurence.
    No other indicators were encountered.
    Last edited by lilsirecho (2010-09-04 15:35:13)

    Solved my problem.
    Used console log-in and startX.
    Removed kde with pacman.
    Reinstalled kde4.5 with pacman.
    Evidently the original -Syu was not complete.  It was over 500MB.
    It begs the question :  how many packages are needed by my system to be upgraded correctly?  The present download system trusts that the mirror is downloading the right required packages.
    This download error happened twice on two hdd's.  Performed at different times.
    The error produced two different responses, both now fixed.
    It underlines the axiom that no system operates perfectly even in linux.
    At least we don't have the BSOD in Linux, the display we know and love so much!!

  • Extremely slow boot time on fresh install (Cinnamon + GDM)

    Hi,
    I have a fresh installation of Arch with Cinnamon + GDM taking about 2 minutes and 30 seconds (observed manually) from Grub menu to loading of desktop in usable condition.
    It's installed on external USB drive. Although the hardware is old but rebooted within 15 seconds in VM on internal HD drive with same Cinnamon and SDDM.
    Details are:
    #1. Hardware info:
    AMD Athlon 64 X2 Dual Core Processor 4800+ x 2
    Memory 2.7 GB
    Hard drive 149.4 GB
    GPU : nVidia Corp; GT 218 [GeForce 210]
    USB wi-fi card
    Arch vanilla kernel: 3.17.2-1
    Problems:
    a) Delay during loading of kernel modules,
    b) Extreme delay in loading of display manager for login, and
    c) Delay in loading of desktop.
    I followed these guides:
    Maximizing performance
    Improve boot performance
    Did not find any relevant tip to fix problems.
    #2. systemd-analyze
    Startup finished in 16.354s (kernel) + 10.182s (userspace) = 26.536s
    It's wrong.
    #3.  systemd-analyze blame
    4.151s wpa_supplicant.service
    4.048s NetworkManager.service
    1.623s colord.service
    1.479s accounts-daemon.service
    912ms systemd-logind.service
    886ms gdm.service
    679ms polkit.service
    571ms [email protected]
    548ms dev-hugepages.mount
    547ms sys-kernel-debug.mount
    524ms tmp.mount
    512ms udisks2.service
    475ms sys-kernel-config.mount
    448ms dev-mqueue.mount
    435ms systemd-remount-fs.service
    423ms systemd-udev-trigger.service
    409ms systemd-vconsole-setup.service
    349ms [email protected]
    330ms systemd-sysctl.service
    258ms kmod-static-nodes.service
    254ms systemd-tmpfiles-setup-dev.service
    242ms upower.service
    240ms systemd-journal-flush.service
    218ms systemd-tmpfiles-setup.service
    200ms rtkit-daemon.service
    150ms systemd-random-seed.service
    129ms home.mount
    108ms systemd-user-sessions.service
    94ms dev-sdb3.swap
    88ms [email protected]
    64ms systemd-update-utmp.service
    60ms systemd-tmpfiles-clean.service
    39ms [email protected]
    27ms systemd-udevd.service
    4ms sys-fs-fuse-connections.mount
    Seems no problem.
    #4. dmesg
    Complete : http://pastebin.com/w7sXtuKh
    Extract : Based on what I think adds delay
    [ 22.277994] systemd-journald[138]: Received request to flush runtime journal from PID 1
    [ 26.674187] r8169 0000:02:0f.0 enp2s15: link down
    [ 26.674207] r8169 0000:02:0f.0 enp2s15: link down
    [ 26.674267] IPv6: ADDRCONF(NETDEV_UP): enp2s15: link is not ready
    [ 26.700183] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
    [ 26.729912] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
    [ 27.117488] IPv6: ADDRCONF(NETDEV_UP): wlp0s19f5u3: link is not ready
    [ 53.360188] nvidia 0000:01:00.0: irq 25 for MSI/MSI-X
    [ 53.951157] NVRM: Your system is not currently configured to drive a VGA console
    [ 53.951164] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
    [ 53.951167] NVRM: requires the use of a text-mode VGA console. Use of other console
    [ 53.951170] NVRM: drivers including, but not limited to, vesafb, may result in
    [ 53.951172] NVRM: corruption and stability problems, and is not supported.
    [ 58.436865] wlp0s19f5u3: authenticate with 00:1f:fb:39:4c:24
    [ 58.467542] wlp0s19f5u3: send auth to 00:1f:fb:39:4c:24 (try 1/3)
    [ 58.469250] wlp0s19f5u3: authenticated
    [ 58.469512] rt2800usb 2-3:1.0 wlp0s19f5u3: disabling HT/VHT due to WEP/TKIP use
    [ 58.470040] wlp0s19f5u3: associate with 00:1f:fb:39:4c:24 (try 1/3)
    [ 58.478853] wlp0s19f5u3: RX AssocResp from 00:1f:fb:39:4c:24 (capab=0x411 status=0 aid=3)
    [ 58.485469] wlp0s19f5u3: associated
    [ 58.485510] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s19f5u3: link becomes ready
    [ 58.485555] cfg80211: Calling CRDA to update world regulatory domain
    [ 70.688882] fuse init (API version 7.23)
    [ 283.405686] cfg80211: Calling CRDA to update world regulatory domain
    #5. Important observation:
    hdparm -t reports 13.54 mb /sec reads for the external drive I am using for this installation. I don't face lag or slowness after boot including another distro installed on this drive had this problem.
    Please help in further analyzing and fixing this problem.
    Thanks!

    How fast does it boot to a tty? Disable gdm and boot to a tty. See if that is any faster than starting gdm. Gdm takes a while to start up if I run it on my computer and I have an SSD. But it will add several seconds to my boot time which from systemd-analyze is 9 seconds.
    So, boot to a tty and use startx to start the session and see if it's any faster. 13MB/s seems like a pretty tight bottleneck for starting big applications like gdm and a desktop environment. I run a pretty simple openbox setup as my environment and it only uses 150 MB of memory after I startx. But if I could only load 13 MB /s from memory it would add another 11 seconds to the time it took me to startx.
    So see how fast you can boot, and then see how fast you can load your desktop using startx. When I booted an install media of arch on an old computer with usb2 it took about 10 minutes to get everything going.

  • Problem booting Arch after first install on MacBook Pro

    Hi all,
    I've spent the past month intermittently trying to install Arch on an old MacBook Pro with a broken screen running in clamshell mode (I've reformatted, clean installed OSX, and run pacstrap around 20 times now). I was originally trying to install Debian, but the Arch Wiki was so good that I switched. The issue has been the same anyway.
    Every time I try to install, I get stuck at the bootloader stage, where I need to make the installation bootable. It doesn't matter what bootloader method I use, since I've tried:
    Boot from /boot partition with GRUB
    Boot from separate HFS+ GRUB partition
    Boot from Apple EFI System Partition (ESP) with GRUB
    Boot with rEFInd
    Boot with rEFInd installed to the ESP
    Arch itself works fine, but when I go to boot from rEFInd's autodetected vmlinuz-linux from 128MiB ext2 partition, I get the same error message I've gotten with every other configuration:
    :: running early hook [udev]
    :: running hook [udev]
    :: Triggering uevents...
    [ 0.558033] uhci_hcd 0000:00:1a.0: Found HC with no IRQ. Check BIOS/PCI 0000:00:1a.0 setup!
    [ 0.558097] uhci_hcd 0000:00:1a.0: init 0000:00:1a.0 fail, -19
    [ 0.558135] uhci_hcd 0000:00:1a.0: Found HC with no IRQ. Check BIOS/PCI 0000:00:1d.0 setup!
    [ 0.558189] uhci_hcd 0000:00:1a.0: init 0000:00:1b.0 fail, -19
    Waiting 10 seconds for device /dev/disk/by-uuid/2b121a89-aeb9-430a-8e6c-a05b79f08427 ...
    ERROR : device 'UUID=2b121a89-aeb9-430a-8e6c-a05b79f08427' not found. Skipping fsck.
    ERROR: Unable to find root device 'UUID=2b121a89-aeb9-430a-8e6c-a05b79f08427'.
    You are being dropped to a recovery shell
    [etc.]
    When the Arch .iso live CD boots, it gets the first uhci_hcd errors, and then just moves on with:
    :: hook [memdisk]
    :: hook [archiso]
    [etc.]
    Here are the contents of my refind.conf file (/boot/efi/ESP/refind/refind.conf) (I omit all the standard comments):
    timeout 0
    scan_all_linux_kernels
    [The example menu entries - all disabled]
    menuentry "Arch Linux" {
    icon /EFI/refind/icons/os_arch.icns
    "Arch Boot"
    loader /vmlinuz-linux
    initrd /initramfs-linux.img
    options "root=/dev/sda7 rw rootfstype=ext4"
    And my refind_linux.conf (/boot/refind-linux.conf):
    "Boot with standard options" "ro root=2b121a89-aeb9-430a-8e6c-a05b79f08427"
    "Boot to single-user mode" "ro root=2b121a89-aeb9-430a-8e6c-a05b79f08427 single"
    "Boot with minimal options" "ro root=2b121a89-aeb9-430a-8e6c-a05b79f08427"
    My custom menu entry for Arch doesn't work either (I'm still researching exactly why). I've been quite confused by different posts all over by different people on how to configure the manual refind.conf stanzas. I also tried a direct to root menu entry, where I tried the files as /boot/vmlinuz-linux, etc.
    The error I always get here is the same:
    Starting vmlinuz-linux
    Using load options "[same as above]"
    Invalid loader file!
    Error: Not Found while loading vmlinuz-linux
    I've installed GRUB as well, just to be sure. Although I haven't moved it to any other partitions or 'blessed' it in OS X. (I have blessed the HFS+/EFI partitions when I used GRUB.)
    Just FYI, I've used the following pages as guides:
    My primary guide: Cody Littlewood's installation procedure for a MacBook Pro
    The Arch Wiki MacBook Page, which was useful but a bit confusing and self-referential on the Bootloader section
    The rEFInd website, by Rod Smith. I've read it fairly extensively (including an interesting comparison of SodaStream flavours)
    A Gentoo Wiki page with a rEFInd example
    The LFS GRUB chapter, and surrounding material
    And I've largely read the Arch Wiki Beginners' Guide, Bootloaders page, GRUB page, GRUB EFI examples page, UEFI page and EFI Stub Loader page.
    There have been others, but it's been a while since I read them. I've been trying to make this work for a while.
    I've also looked at some other posts on similar subjects:
    A post on the Arch Linux subreddit matching my (previous; with GRUB) situation, but not fixing my problem
    An Arch forum post, of which there have been others, but google seems to have changed my search results.
    EFI-Booting Ubuntu on a Mac, by Rod Smith
    The Debian MacBook Pro page
    A post about booting Debian without rEFIt
    Again, there are more, but I can't find them all just now.
    I've looked EVERYWHERE for a solution.
    My question is, does anyone have any ideas on how I might make my computer bootable?
    Almost forgot; I've run
    mkinitcpio -p linux
    successfully (I get the two driver warnings that seem to be standard).
    Computer specifications are as follows:
    Model Identifier:    MacBookPro6,2 (mid 2010)
    Processor Name:    Intel i7
    Architecture:    amd64
    RAM:    4GB DDR3
    Graphics:    NVIDIA GeForce GT 330M 512MB
    Software:    OS X 10.9.2
    My disk partition table is as follows:
    $gdisk -l /dev/sda
    GPT fdisk (gdisk) version 0.8.9
    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present
    Fround valid GPT with protective MBR; using GPT.
    Disk /dev/sda: 976773168 sectors, 465.8 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): C0ADB511-F73D-404A-B128-DD01509AE6EA
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 976773134
    Partitions will be aligned on 8-sector boundaries
    Total free space is 262150 sectors (128.0MiB)
    Number Start (sector) End (sector) Size Code Name [Additional Info]
    1 * * 200.0MiB EF00 EFI System Partition rEFInd currently installed here, mounts to /boot/efi
    2 * * 185.8GiB AF00 OSX
    3 * * 619.9MiB AB00 Recovery HD
    4 * * 93.1GiB AF00 DMZ unjouranaled HFS+ shared partition
    5 * * 4.0GiB 8200 Arch Swap
    6 * * 128.0MiB 8300 Arch Boot ext2
    7 * * 50.0GiB 8300 Arch Root ext4
    8 * * 131.8GiB 8300 Arch Home ext4
    And my fstab, made with genfstab after I mounted everything (except for the swap stanza, which I had to write):
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # UUID=2b121a89-aeb9-430a-8e6c-a05b79f08427
    /dev/sda7 / ext4 rw,relatime,data=ordered 0 1
    # UUID=efb41f69-6f99-4c8b-8431-01f3cd22c9cc
    /dev/sda6 /boot ext2 rw,relatime 0 2
    # UUID=67E3-17ED LABEL=EFI
    /dev/sda1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed, errors=remount-ro 0 2
    # UUID=[another long UUID]
    /dev/sda8 /home ext4 rw,relatime,data=ordered 0 2
    # UUID=[another long UUID] LABEL=DMZ
    /dev/sda4 /dmz hfsplus rw,relatime,unmask=22,uid=0,gid=0,nls=utf8 0 0
    # UUID=[another long UUID]
    /dev/sda5 swap swap defaults 0 0
    Last edited by rjmh (2014-04-04 08:35:20)

    henriqueleng wrote:
    I don't know about Mac computers but i use a uefi motehrboard,
    To install it i created a partition with 512MB and i mounted /boot on there. all the rest of system are normal.
    I use gummiboot, i don't know if its stuff on Mac. I think that ou should try another bootloader!
    And why do you mounted two point on /boot?
    /boot and /boot/efi?
    Are you sure you're using uefi, my fstab looks just like his with the boot and efi partition. I'm pretty sure that's how the wiki says to set it up. That's the fstab for a laptop with uefi if it helps you out. I had problems with grub btw, so I had to set up gummiboot
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sdb3
    UUID=0c1c97a3-0472-4141-a756-a03c00a4a3cf / ext4 rw,relatime,data=ordered,discard 0 1
    # /dev/sda3
    UUID=8a4412fa-5d4b-4de4-91ff-a4d05b3705e1 /home ext4 rw,relatime,data=ordered 0 2
    # /dev/sdb2
    UUID=971ed3e8-394d-46b3-b0d4-e8bb86b267cf /boot ext4 rw,relatime,data=ordered,discard 0 2
    # /dev/sdb1
    UUID=095C-CB43 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    # /dev/sda1
    UUID=12a4a2b1-6338-495a-8a41-474653eb227b /var ext4 rw,relatime,data=ordered 0 2
    # /dev/sda2
    UUID=846803f1-3f5b-48ae-9945-37e9725011b2 none swap defaults 0 0

Maybe you are looking for