[Solved] Dual UEFI Booting Arch against pre-existing Ubuntu install

Hi All,
I'm new to Arch Linux and have just managed to install it on my T530 Lenovo laptop along side a pre-existing Ubuntu installation.
However, although I did consult the dual boot posting and article here on the site beforehand, those articles seemed to be about installing Grub. Since I already have it up and working, I was nervous about deleting it and so potentially loosing my working Ubuntu installation.
I tried installing mounting my pre existing /boot/efi partition but the pre-existing vmlinuz-linux file (no doubt from my Ubuntu installation) prevented it from working. My solution was to create the boot folder on the same partition as my Arch installation.
I now have an installation that works (kind of) however, it appears each time I boot up, I have to edit the Grub entry for my Arch installation to update the UUID Grub points to to get it to load up Arch. I can't find where the actual file being loaded in Grub resides (the file that it appears generates this script, is itself built from a series of predefined variables).
I admit I am playing at the moment - I'm keen to get to grips with this distro and am up for considering all options including deleting and starting again to learn to get it set up correctly. My questions are:
How should I have done this so that my Arch linux distro was loaded via Grub called by the UEFI and had the same booting file structure as the already existing Ubuntu installation (using the BOOTLOADER partition and the /boot/efi folders on it)
How do I edit the Grub file for my Arch distro so it stays edited (no more retyping all the UUIDs each time I load it up
Is there a way to get to the installation I currently have to an the more ideal state
Details taken thanks to the bootrepair application are here:
http://paste.ubuntu.com/10682898/
Thanks and regards,
Simon
Last edited by simon_sjw (2015-04-22 11:50:52)

I don't think there are any Ubuntu kernel images on your EFI system partition (they are in /boot, not /boot/efi).
If you want Arch to boot in an EFI system you should mount /boot (rather than /boot/efi) to the EFI system partition.
To do this, copy the /boot folder over to /dev/sda1 and add it to your /etc/fstab (in Arch):
/dev/sda1 /boot vfat rw,relatime,discard,nodev,nosuid,noexec,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
It's probably best to install & configure GRUB from Arch rather than Ubuntu because Arch mounts /boot to the ESP while all other distributions mount /boot/efi so the results may get confusing (ie, GRUB may create menu entries to boot Ubuntu with your Arch kernel and vice versa); also the Arch kernel image is booted read-write whereas most other kernel images are booted read-only.
https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
I find the os-prober script can fail sometimes so this is probably your problem here.
Personally, I use gummiboot to boot my Debian system by copying the kernel image & initial ramdisk to the EFI system partition using these commands in Debian (this would also work in Ubuntu):
# mount /dev/sda1 /mnt
# cp /vmlinuz /initrd.img /mnt
Then I make a gummiboot menu entry; your Ubuntu entry would look like this:
title Ubuntu
linux /vmlinuz
initrd /initrd.img
options root=/dev/sda2 ro
Add any kernel parameters after "ro" and make an entry for Arch as well (you may also need to configure /boot/loader/loader.conf as per the ArchWiki page) & install gummiboot from Arch using:
# gummiboot install
You can then create a post-install script at /etc/kernel/postinst.d/zz-update-gummiboot in your Ubuntu system to copy over the kernel image & initrd to the ESP whenever the kernel is updated:
#!/bin/sh
mount /dev/sda1 /mnt
cp /vmlinuz /initrd.img /mnt/
umount -R /mnt
Make this executable:
# chmod +x /etc/kernel/postinst.d/zz-update-gummiboot
This method will only work if you have /boot mounted to the EFI system partition (as outlined in the Beginner's Guide).

Similar Messages

  • [SOLVED] Fail to boot Arch x86_64 live CD on a HP laptop

    Hey, guys, what's up?
    Well, here's the thing: I bought a new laptop a couple days ago and I'm kind of having some trouble. Its a HP Pavilion dm4-1063cl (this model: http://www.notebookcheck.info/HP-Pavili … 579.0.html, just in case).
    I ran some tests in Windows 7 about the architecture of the processor and it clearly seems that it can support arch x86_64 bits. However, I tried to boot Arch x86_64 by a Net Installation CD and it doesn't work. The process fail in the "Loadin UDEV events" phase, something like that. PS: the i686 image boots perfectly.
    Then, I thought that was the CD I burned the reason for trouble - I did not check md5sum and stuff like that. So, I burned another dual image (with boths i686 and x86_64) and tried to run again the 64bits kernel. It did not work in the same phase.
    The only response I get is a dark screen that never seems to go away. It was a panic I've never seen before with Arch Linux.
    The only alternative I can think right now is trying an older version of the live image CD and see what happens, but it doesn't seem like a very good option. Any ideas?
    Hope someone of you can help me. Here in Brazil, most of computers we buy come with Windows installed and we don't have quite a chance of not getting - or paying for - it. I'm sure I'll have such a trouble installing dual boot with Arch Linux, but I really miss my Arch Linux...
    And, damn, I worked too hard to get a new processor. I really dont wanna use Arch i686 on a pc with x86_64 architecture, it seems like an option, but a dumb one. =p
    Cheers,
    Wilson.
    EDIT: It turns out that tt was not a kernel panic as I thought. The kernel changed the resolution of the display during this fase, and somehow it doesent work.
    The trick I used to solve this was adding "nomodeset" to the kernel line in the Live CD booting. Btw, you can do it by selecting the booting option you want in the live CD and pressing TAB. Then, you can edit the kernel line. (:
    Last edited by wilsaooo (2010-12-28 06:17:41)

    lamegaptop wrote:
    Resurrecting this post because I may help you or someone else.
    HP DM4-1265, Intel Corei5, Intel Graphics.  (Two days old, windoze wiped, Arch installed)
    At boot the brightness is, for some unexplained reason, set all the way down to 0 on these intel based DM4 laptops. A few simple <Fn>+<F3> turns the brightness back up.
    To solve this I had to put this in rc.local -
    echo 6 > /sys/class/backlight/acpi_video0/brightness
    you can enter it manually to test first (as root). Try to turn your brightness up and down with it to make sure it works.
    My fan ran like crazy too. HP chose to default a BIOS setting that keeps the fan running constantly. I disabled that and all is well. Fan only comes on when needed and lm_sensors shows my temps, right now, at 43C. Ambient is at 77F right now (I'm in Florida) and this kick butt Arch laptop is, in fact, on my lap.....
    Don't give up man.
    First of all: thanks for replying.
    I installed manually the "coretemp" kernel modules and lm-sensors now give some different response. The script "sensors-detect" does not find any answer.
    Looks like the temperature run in a regular level (50º-60º), which I consider a good sign. However, sometimes when I use arch for 24h+, it shuts down suddenly and does not let me boot my computer again - I believe it is a overheating problem. Happened a couple times, big no big deal.
    On the other hand, in Windows 7 I have no trouble at all. The temperature goes around 40º with some daily activities. It worries me out because I used - and I do use - largely and successfully Arch i686 version in crappy notebooks with no heating at all.
    I tried some tweaks in the rc.local, but none of them seemed to really work. With cpufreq, I could slow down the processors and maintain a regular temperature. Looks like I can list some of the fans speed in the /sys/ files, but much of them do not seem to have any change at all. Some of them looks like to have some "max_state" set to low values like 1, but most do have a limit like 10.
    I will keep trying. If there's anything new, I'll post here
    Cheers,
    Wilson

  • [SOLVED]Gummiboot cannot boot arch

    Hello. I've been reading the wiki guide until the end when i got stuck. I have windows 8 installed with a UEFI mobo so i just used the same ESP for arch. Now i try to boot arch but get a "vmlinuz not found" message. What did i do wrong?
    while still on live cd i mounted the EFI partition (/dev/sda2) to /boot (same root and home partition) and then installed and configured gummiboot as described.
    Do i have to add that ESP to the fstab file? Or how to fix it?
    Last edited by Juszr (2015-03-31 17:10:49)

    Load up the Arch live ISO, mount your partitions and use `arch-chroot` then post the output of:
    ls /boot
    # efibootmgr -v
    lsblk -f
    # parted -l
    You can use `sprunge` to post the output of the commands.
    <command> | curl -F 'sprunge=<-' http://sprunge.us
    https://wiki.archlinux.org/index.php/Li … in_clients

  • [Solved] Unable to boot Arch off SUSE GrUB

    Hi,
    I have several OS installed on my machine. I used to boot everything including Arch but BSD, Solaris & PCBSD with GrUB2 off UbuntuStudio. Earlier today I installed SUSE GrUB on sda and now I am unable to boot Arch. I've used SUSE GrUB earlier and was able to boot Arch off it.
    Here is my menu.lst
    # Modified by YaST2. Last modification on Sun Oct 17 18:52:19 SGT 2010
    # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
    # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
    default 0
    timeout 8
    ##YaST - generic_mbr
    gfxmenu (hd0,30)/boot/message
    ##YaST - activate
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title Desktop -- openSUSE 11.2 - 2.6.31.14-0.1
        root (hd0,30)
        kernel /boot/vmlinuz-2.6.31.14-0.1-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part31 resume=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part5 splash=silent quiet showopts vga=0x315
        initrd /boot/initrd-2.6.31.14-0.1-desktop
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 11.2 - 2.6.31.14-0.1
        root (hd0,30)
        kernel /boot/vmlinuz-2.6.31.14-0.1-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part31 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
        initrd /boot/initrd-2.6.31.14-0.1-desktop
    ###Don't change this comment - YaST2 identifier: Original name: windows 1###
    title Windows 7 Ultimate Edition x64
        rootnoverify (hd0,0)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title FreeBSD 8.1 i386
        rootnoverify (hd0,2)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title OpenSolaris 2009.06 b134 x86
        rootnoverify (hd0,3)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title PC-BSD 8.1 amd64
        rootnoverify (hd2,0)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name: CentOS (2.6.18-194.11.4.el5xen) (/dev/sda6)###
    title CentOS (2.6.18-194.11.4.el5xen) (/dev/sda6)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.18-194.11.3.el5 ro root=/dev/sda6 rhgb quiet
        initrd /boot/initrd-2.6.18-194.11.3.el5.img
    ###Don't change this comment - YaST2 identifier: Original name: Centos-base###
    title CentOS-base (2.6.18-194.el5) (on /dev/sda6)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.18-194.el5 ro root=/dev/sda6 rhgb quiet
        initrd /boot/initrd-2.6.18-194.el5.img
    ###Don't change this comment - YaST2 identifier: Original name:  linux (/dev/sda8)###
    title PCLinuxOS
        root (hd0,7)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  linux (/dev/sda10)###
    title Simply Mepis
        root (hd0,9)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  Chakra GNU/Linux (/dev/sda12)###
    title Chakra GNU/Linux (/dev/sda12)
        root (hd0,11)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  Fedora (2.6.34.7-56.fc13.x86_64) (/dev/sda14)###
    title Fedora (2.6.34.7-56.fc13.x86_64) (/dev/sda14)
        root (hd0,13)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  linux (/dev/sda16)###
    title Mandriva Spring 2010.1
        root (hd0,15)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name:  Calculate Linux Desktop x86_64 10.9 KDE (/dev/sda18)###
    title Calculate Linux Desktop x86_64 10.9 KDE (/dev/sda18)
        root (hd0,17)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title Arch linux 2010.05 x86_64
        rootnoverify (hd0,18)
        chainloader +1
    ###Don't change this comment - YaST2 identifier: Original name:  Desktop -- openSUSE 11.3 - 2.6.34.7-0.3 (/dev/sda23)###
    title openSUSE 11.3 - 2.6.34.7-0.3
        root (hd0,22)
        configfile /boot/grub/menu.lst
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title caeLinux
        root (hd0,24)
        kernel /vmlinuz root=/dev/sda25 ro quiet splash
        initrd /initrd.img
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title UbuntuStudio 10.04 amd64
        root (hd0,26)
        kernel /vmlinuz root=/dev/sda27 ro quiet splash
        initrd /initrd.img
    ###Don't change this comment - YaST2 identifier: Original name: other###
    title Linux Mint 9 amd64
        root (hd0,28)
        kernel /vmlinuz root=/dev/sda29 ro quiet splash
        initrd /initrd.img
    Here is etc/fstab from Arch -
    # /etc/fstab: static file system information
    # <file system>        <dir>         <type>    <options>          <dump> <pass>
    devpts                 /dev/pts      devpts    defaults            0      0
    shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
    #/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
    #/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
    #/dev/fd0               /media/fl   auto    user,noauto             0      0
    /dev/sda19 /boot ext2 defaults 0 1
    /dev/sda20 / ext4 defaults 0 1
    /dev/sda21 /var ext4 defaults 0 1
    /dev/sda22 /home ext4 defaults 0 1
    /dev/sda5 swap swap defaults 0 0
    I've results from bootinfo script as well but the file is big and I am unable to post all those details in here.
    Best,
    David
    Last edited by avenuemax (2010-10-18 05:30:48)

    Here is the menu list off PCLinuxOS
    timeout 15
    color black/cyan yellow/cyan
    gfxmenu (hd0,7)/boot/gfxmenu
    default 0
    title linux
    kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=77fb6caf-c436-4855-b25a-436f4f6c40f0  vmalloc=256M resume=UUID=92ecb3e1-84a1-4855-8a49-3c9616638795 splash=silent vga=788
    initrd (hd0,7)/boot/initrd.img
    title linux-nonfb
    kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=77fb6caf-c436-4855-b25a-436f4f6c40f0  vmalloc=256M resume=UUID=92ecb3e1-84a1-4855-8a49-3c9616638795
    initrd (hd0,7)/boot/initrd.img
    title failsafe
    kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=77fb6caf-c436-4855-b25a-436f4f6c40f0  failsafe vmalloc=256M
    initrd (hd0,7)/boot/initrd.img
    title Windows 7 Ultimate Edition x64
    root (hd0,0)
    map (0x81) (0x80)
    map (0x80) (0x81)
    makeactive
    chainloader +1
    title CentOS (Final)
    root (hd0,5)
    configfile /boot/grub/menu.lst
    title MEPIS Linux 8.5
    root (hd0,9)
    configfile /boot/grub/menu.lst
    title Arch
    root (hd0,18)
    configfile /grub/menu.lst
    title Fedora (Goddard)
    root (hd0,13)
    configfile /boot/grub/menu.lst
    title Mandriva Linux (Official)
    root (hd0,15)
    configfile /boot/grub/menu.lst
    title Calculate Linux sda18
    root (hd0,17)
    configfile /boot/grub/menu.lst
    title Chakra
    root (hd0,11)
    configfile /boot/grub/menu.lst
    title openSUSE 11.3 (x86_64)
    VERSION = 11.3
    root (hd0,22)
    configfile /boot/grub/menu.lst
    title PC-BSD 8.1 amd64
    root (hd2,0)
    chainloader +1
    title FreeBSD 8.1 i386
    root (hd0,2)
    chainloader +1
    title OpenSolaris 2009.06 b134 x86
    root (hd0,3)
    chainloader +1
    I can boot Arch from here, wish I get to do that from SUSE GrUB.

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

  • [Solved] archiso UEFI boot doesn't work.

    I just followed the instruction on https://wiki.archlinux.org/index.php/UE … B_from_ISO, but it doesn't work as intended. It shows just 3 menu,
    Arch Linux archiso x86_64 UEFI USB
    UEFI Shell x86_64 v1
    UEFI Shell x86_64 v2
    I thought, the first option is the way to go, but
    Error loading \arch\boot\x86_64\vmlinuz: Not found
    In fact, there is no \arch directory. The iso file downloaded was not broken, so I think something's missing either in the article or in the iso file.
    edit : I found that, the name of 'arch' directory was changed to something like "?????????". I don't know why, but when I changed it to "arch" again, it works like a charm.
    Last edited by kreoso (2012-11-01 16:54:57)

    Exactly the same thing happened to me. I think there's some filename encoding issue because I wasn't able to rename ????????? to arch, instead I moved to arch2 then renamed arch2 to arch. Happy to say that worked for me too.
    I should add that the same USB stick worked first time with my laptop, it was only when trying to boot my desktop in the same way that I hit this issue, so it seems sensitive to BIOS manufacturer/version.
    Last edited by malcolmsparks (2012-11-04 19:46:32)

  • [SOLVED] Unable to boot Arch installer

    Hello everyone.
    I am no experienced Linux user (I'm just about one year and a half), but I think that dealing with things is the way to learn about them. I'm using Debian and want to switch to Arch.
    I have an USB drive, and would like to put the installer (sorry? I'm not sure if that's the correct name. Please excuse me if I am not too concise) on it, without using a CD. I also have an Internet connection through ethernet, and I guess the "installer" will be able to use it to download any needed files.
    So, as explained in the wiki and some external guides, I have copied the ISO I downloaded to the USB drive (with dd), just after formatting it as FAT32 with MBR.
    I rebooted, with the USB plugged in, entered the BIOS menu and set the USB floppy as the first boot device. Then I exited from BIOS. I saw the LED of my pendrive flicking but no more, the BIOS stayed there (Press ESC to enter BIOS setup menu) and the light always flicking. (I waited about half an hour and nothing happened.)
    I have tried it many times, and nothing has changed. I'm now a bit scared: is there anything wrong with my motherboard? Maybe with the filesystem on the external drive? I was wondering if there were any other choices to install Arch from within another Linux distro (Debian "Squeeze" in this case). I know nothing about chroot and other advanced techniques, but (if this helps) I don't want to save anything from my hard drive, i.e., I want a clean install.
    Thank you, and, as I said, sorry if this question is very weird, or if I'm missing something important. I'm sure I've looked through many places in the web -too many, I guess; my eyes now hurt me. I'm also not very good at English so, sorry again.
    P.S.: I have just tried with a CD-R burning the ISO with Brasero, and it didn't work. The same: freezing. I have UEFI disabled in my BIOS. I'm now wondering what's happening with my computer. It has about five years, and it looks like packed rubbish, but ...
    Last edited by Kalrish (2013-03-02 18:46:23)

    It sounds like you're mixing up the methods for creating the USB install media. You mention formatting with FAT32, that's from the Without overwriting the USB drive method. But you also mention copying the iso with dd, which is from the Overwrite the USB drive method.
    You should follow one method or the other from the wiki only, and pay attention to the output for any errors. Then, if things go wrong again, you will be able to provide better detail.

  • [SOLVED] Can only boot Arch via CD

    Hi all,
    I've installed 64 bit Arch on the 2nd hard drive of a Dell Optiplex 980.
    It works very nicely, but I have a strange boot issue:
    If I boot from the Arch CD, and select "Boot other OS", hit Tab, and manually edit the grub line to "chain.c32 hd 1 0", I am taken to the grub menu on the hard drive and can select my install which boots and runs fine.
    If I select the 2nd HD in the BIOS boot menu (instead of the CD), I get to the same grub menu, but upon selecting my install, I get an Error 17.
    Has anyone run into this before?
    Thanks in advance!
    Last edited by basementhead (2010-09-24 17:52:11)

    Turns out I misunderstood how grub works.
    When I changed my menu.lst to (hd 0,0) it works.
    I thought that the 2nd drive was (hd 1,0), which was reinforced by the boot CD working with (1,0), but I guess the drives are renumbered when you boot from CD?
    The big clues were that the partition that grub said couldn't boot was 0xde (a Dell partition), and I was sure I'd wiped the entire drive, but I knew that the 1st drive was a default Dell/Windows7 install.
    Then using grub command line menu, I typed "find /sbin/init" and it found it on (hd0,2), and the mystery was solved....
    Anyway - fixed by treating the drive as if it was /dev/sda (hd 0,0) instead of /dev/sdb (hd 1,0)
    Thanks!

  • [solved] rEFInd UEFI Boot failure

    Hi,
    I just installed arch with the new installer 2012.10.06 and following the Beginners Guide step by step.
    For the bootloader I took EFISTUB and rEFInd.
    My partitions:
    /dev/sda1 -> /
    /dev/sda2 -> /home
    /dev/sda3 -> /boot/efi
    /dev/sdc1 -> /var
    But trying to boot my new Arch didn't work.
    The rEFInd seems to autodetect
    \EFI\arch\vmlinuz-arch.efi
    Running it, gives me:
    Starting vmlinuz-arch.efi
    using load options 'vmlinuz-arch.efi root=/dev/sda1 ro rootfstype=ext4 systemd.unit=graphical.target initrd=EFI\arch\initramfs-arch.img '
    the root option seems to be read from \EFI\arch\refind_linux.conf
    "Boot to X" "root=/dev/sda1 ro rootfstype=ext4 systemd.unit=graphical.target"
    "Boot to console" "root=/dev/sda1 ro rootfstype=ext4 systemd.unit=multi-user.target"
    But than, I only get the error:
    ERROR: Root device mounted successfully, but /sbin/init does not exist.
    I ran the efibootmgr using my EFI partition (sda3) first, but than I read in a thread here, it should be the root partition (sda1) so I rerun efibootmgr. But nothing changed. Does this mean, you can run it only once?
    Hopefully anyone has an idea?
    Greetings
    DerBaer
    Last edited by DerBaer (2012-10-28 14:40:58)

    Perfect.
    I didn't install systemd-sysvcompat because there were some conflicts, and forgot it than...
    Installing it now just works fine.
    Thanks for the very fast and helpful reply

  • [Solved] Can't boot arch after merge linux partition

    Before this i have issue with my partition table, but i can fix it with testdisk.
    After that, i merge all my linux partition into one. I mean like this
    Before i merge my linux partition:
    / >> /dev/sda3
    /var >> /dev/sda4
    swapfile >> /dev/sda6
    /home >> /dev/sda7
    My new partition
    / >> /dev/sda3
    swapfile >> /dev/sda6
    i can't boot my arch after i backup and moved my home and var directory to /dev/sda3 with livecd.
    How to fix this issue?
    Last edited by nizar (2009-03-28 04:18:29)

    Solved by myself! LOL
    I edit and remove /dev/sda4 and /dev/sda7 in my /etc/fstab file with livecd.
    Now, arch boot without /dev/sda4 and /dev/sda7

  • [SOLVED]Can't boot Arch after installation-grub use wrong uuid in bios

    Hello I would like to ask for Your help and say hello. I'm new here.
    I have one big problem with Arch. Can't boot it after base installation. The same problem with Arch, that was mentioned in this topic:
    https://bbs.archlinux.org/viewtopic.php … 7#p1294597
    I have the same problem and the same error:
    No such Device: ad4103fa-d940-47ca-8506-301d8071d467.
    Loading Linux core repo kernel ...
    error: no such partition.
    Loading initial ramdisk ...
    error: you need to load the kernel first.
    Press any key to continue..._
    I'm new here, and with Arch, could you explain me how to fix it? I tried the solution given in the link above, several times but with each time i have errors and warnings from the post 1 in mentioned topic. I installed my Arch from usb thumb drive. Maybe this is something to do with it? Also, my hard drive that Arch is installed on is being connected to a "raid card" named Adaptec, but during installation my disk is being found so i think that drivers is present and works ok, so it is not related to this, also there is no raid present, i use it only as a mean to connect to motherboard because there is not enough sata port, and because:
    https://bugs.archlinux.org/task/35626
    he wrote that this error is also on virtualbox, so it is not my fault and Adaptec related issue.
    I haven't tried this yet:
    Sotanaht,
    I had the exact same problem as you, but I was able to fix it by replacing the bad grub.cfg file with the grub.conf file found in the same directory. If you try this do not forget to back up your original file (just in-case smile)
    because i don't know much about it, don't want to destroy data on my hard disks or to destroy my other distros (i use Ubuntu with derrativates such as Mint, Kubntu, Lubuntu, Xubuntu, and Slackware 13.37 and 14.00).
    If you could explain it in details i would be really happy.
    I could post something about my setup, please write what. My computer is:
    -AMD X4 PII 955 runinng at 3.2GHz
    -4GB DDR2 runinng at base clock (800 if i remember correctly)
    -about 7 hard drive disk connected to a sata ports, one adaptec drive that i mentioned above and one dvd-rom
    -nvidia GTX260
    -850W PSU Chieftec
    Last edited by firekage (2013-07-02 08:11:29)

    Yes, of course. I did it several times with
    grub-mkconfig -o /boot/grub/grub.cfg
    and the result is always the same - Error posted above.
    Here is my grub.cfg file:
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    set default="0"
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_msdos
    insmod ext2
    set root='hd0,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 ad4103fa-d940-47ca-8506-301d8071d467
    else
    search --no-floppy --fs-uuid --set=root ad4103fa-d940-47ca-8506-301d8071d467
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-ad4103fa-d940-47ca-8506-301d8071d467' {
    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 ad4103fa-d940-47ca-8506-301d8071d467
    else
    search --no-floppy --fs-uuid --set=root ad4103fa-d940-47ca-8506-301d8071d467
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-ad4103fa-d940-47ca-8506-301d8071d467' {
    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 ad4103fa-d940-47ca-8506-301d8071d467
    else
    search --no-floppy --fs-uuid --set=root ad4103fa-d940-47ca-8506-301d8071d467
    fi
    echo 'Loading Linux core repo kernel ...'
    linux /boot/vmlinuz-linux root=UUID=ad4103fa-d940-47ca-8506-301d8071d467 ro quiet
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux-fallback.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    ### END /etc/grub.d/20_memtest86+ ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    It is wrong, the root partition is different than in this, we can see that this grub leads to wrong root partition, i posted my root partition at the bottom from /etc/fstab. I don't know how to fix it - i'm not familiar with the dos names (hd 0,5 and so on).
    Here is my /etc/fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sdb2
    UUID=59603166-5d8a-4aaf-81f7-5a822fd630e5 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sdb1
    UUID=20028674-d7e8-4bf4-8551-64f133641962 none swap defaults 0 0
    (END)
    Last edited by firekage (2013-07-01 06:26:59)

  • UEFI boot hangs with MSI GTX 960 installed

    Wasn't sure whether to post this in the graphics forum or the motherboard forum, since both components are MSI.
    I have a system with an MSI Z68A-GD65 (G3) motherboard with the old v23.7 BIOS, and a Core i7-2600k Sandy Bridge processor.
    I just bought an MSI GTX 960 Gaming 2G. However, after installing the new card, the boot hangs every time with a flashing cursor. If I put my old card back in (GTX 460), everything is fine.
    I've read that a BIOS update is recommended for the GTX 960 cards. However, the newer BIOS versions for this motherboard always say not to install them unless you have an Ivy Bridge processor, which I do not.
    I see the newest version of the BIOS is v25.8. There was another time I tried upgrading the BIOS in the past (to v25.6) and I had issues with it not saving my custom overclock settings for the i7-2600k, so I reverted to v23.7. So I'm reluctant to upgrade it now for that reason.
    Anyone know if the v25.8 BIOS update will fix the problem with the GTX 960? Or is there something else I can try to get it to boot with the old v23.7 BIOS?

    Updating it to v25.8 BIOS did work. The GTX 960 works fine now.
    But, I am now having the same issue I was having when I previously tried updating the BIOS: my overclock settings are never saved. Actually, that's not exactly true. I can set them in BIOS exactly how I want them, and they are always saved there. But once I boot Windows, the settings are reverted.
    I reinstalled the Intel Management Engine drivers as well, but no luck.
    However, the BIOS update did allow the GTX 960 to work properly, so I will start a different thread in the motherboard forum about this overclocking problem.

  • [SOLVED] Can't boot back into windows

    Been a while since I had to install Arch but my previous PC died so I tried installing it on my new one. When I installed it last time, there was no EUFI and it was a simple Grub installation. When I installed it, I disabled eufi from my bios to legacy grub. I installed Arch like normal but os-probe didn't seem to work. Although it detected my OS, it did not make an entry for windows in the grub, When I re-enable EUFI from bios, it just goes straight to GRUB cmd line.
    Here's the output for fdisk:
    Disk /dev/sda: 946.4 GiB, 1016218828800 bytes, 1984802400 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: gpt
    Disk identifier: A3D81761-F777-4399-9F81-01E346CDC93F
    Device Start End Size Type
    /dev/sda1 2048 1988607 970M BIOS boot partition
    /dev/sda2 1988608 3708927 840M Windows recovery environment
    /dev/sda3 3708928 4241407 260M EFI System
    /dev/sda4 4241408 4503551 128M Microsoft reserved
    /dev/sda5 4503552 1123987926 533.8G Microsoft basic data
    /dev/sda6 1905238016 1953523711 23G Windows recovery environment
    /dev/sda7 1953525168 1984798127 14.9G unknown
    /dev/sda8 1123989504 1900040191 370.1G Linux filesystem
    /dev/sda9 1900040192 1905238015 2.5G Linux swap
    and os-prober
    $ sudo os-prober
    No volume groups found
    /dev/sda3:Windows 8 (loader):Windows:chain
    Arch is installed on sda8/sda9 and wndows is on sda3/4/5/6. There also seems to be a seperate "boot" drive sdb that only shows up when eufi is enabled. Can anyone help me figure out how to boot into my windows partition? thanks
    edit: here's grub.cfg
    # DO NOT EDIT THIS FILE
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    ### BEGIN /etc/grub.d/00_header ###
    insmod part_gpt
    insmod part_msdos
    if [ -s $prefix/grubenv ]; then
    load_env
    fi
    if [ "${next_entry}" ] ; then
    set default="${next_entry}"
    set next_entry=
    save_env next_entry
    set boot_once=true
    else
    set default="0"
    fi
    if [ x"${feature_menuentry_id}" = xy ]; then
    menuentry_id_option="--id"
    else
    menuentry_id_option=""
    fi
    export menuentry_id_option
    if [ "${prev_saved_entry}" ]; then
    set saved_entry="${prev_saved_entry}"
    save_env saved_entry
    set prev_saved_entry=
    save_env prev_saved_entry
    set boot_once=true
    fi
    function savedefault {
    if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
    fi
    function load_video {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
    fi
    if [ x$feature_default_font_path = xy ] ; then
    font=unicode
    else
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt8'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 6a6f6015-3793-4978-8c19-5abd44c63aea
    else
    search --no-floppy --fs-uuid --set=root 6a6f6015-3793-4978-8c19-5abd44c63aea
    fi
    font="/usr/share/grub/unicode.pf2"
    fi
    if loadfont $font ; then
    set gfxmode=auto
    load_video
    insmod gfxterm
    set locale_dir=$prefix/locale
    set lang=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
    set timeout=5
    fi
    ### END /etc/grub.d/00_header ###
    ### BEGIN /etc/grub.d/10_archlinux ###
    menuentry "Arch Linux pkg-linux kernel" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    fi
    set gfxpayload=keep
    insmod ext2
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 6a6f6015-3793-4978-8c19-5abd44c63aea
    else
    search --no-floppy --fs-uuid --set=root 6a6f6015-3793-4978-8c19-5abd44c63aea
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /boot/vmlinuz-linux root=UUID=6a6f6015-3793-4978-8c19-5abd44c63aea rw
    echo 'Loading Arch Linux pkg-linux kernel initramfs ...'
    initrd /boot/initramfs-linux.img
    menuentry "Arch Linux pkg-linux kernel (fallback initramfs)" --class arch-linux --class arch --class gnu-linux --class gnu --class os {
    if [ x$feature_all_video_module = xy ]; then
    insmod all_video
    fi
    set gfxpayload=keep
    insmod ext2
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 6a6f6015-3793-4978-8c19-5abd44c63aea
    else
    search --no-floppy --fs-uuid --set=root 6a6f6015-3793-4978-8c19-5abd44c63aea
    fi
    echo 'Loading Arch Linux pkg-linux kernel ...'
    linux /boot/vmlinuz-linux root=UUID=6a6f6015-3793-4978-8c19-5abd44c63aea rw
    echo 'Loading Arch Linux pkg-linux kernel fallback initramfs ...'
    initrd /boot/initramfs-linux-fallback.img
    ### END /etc/grub.d/10_archlinux ###
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6a6f6015-3793-4978-8c19-5abd44c63aea' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt8'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 6a6f6015-3793-4978-8c19-5abd44c63aea
    else
    search --no-floppy --fs-uuid --set=root 6a6f6015-3793-4978-8c19-5abd44c63aea
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=6a6f6015-3793-4978-8c19-5abd44c63aea rw
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-6a6f6015-3793-4978-8c19-5abd44c63aea' {
    menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-6a6f6015-3793-4978-8c19-5abd44c63aea' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    set root='hd0,gpt8'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 6a6f6015-3793-4978-8c19-5abd44c63aea
    else
    search --no-floppy --fs-uuid --set=root 6a6f6015-3793-4978-8c19-5abd44c63aea
    fi
    echo 'Loading Linux linux ...'
    linux /boot/vmlinuz-linux root=UUID=6a6f6015-3793-4978-8c19-5abd44c63aea rw
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-linux.img
    ### END /etc/grub.d/10_linux ###
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    ### BEGIN /etc/grub.d/30_os-prober ###
    ### END /etc/grub.d/30_os-prober ###
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    if [ "${grub_platform}" == "pc" ]; then
    menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
    search --fs-uuid --no-floppy --set=root --hint-bios=hd0,gpt8 --hint-efi=hd0,gpt8 --hint-baremetal=ahci0,gpt8 6a6f6015-3793-4978-8c19-5abd44c63aea
    linux16 /boot/memtest86+/memtest.bin
    fi
    ### END /etc/grub.d/60_memtest86+ ###
    Last edited by giok13 (2014-04-24 15:20:31)

    dice wrote:
    As you have disabled UEFI during arch installation your grub was installed in mbr mode and not EFI.
    Your Windows installation is probably installed in UEFI mode.
    So when you enable UEFI grub doesn't work correctly. And in legacy mode Windows won't boot.
    See here for details https://wiki.archlinux.org/index.php/UEFI
    Yea, I figured it out last night after spending hours on it. For anyone that might be having the same problem as me: Re-installed grub with os-prober and it detected windows successfully. Added the entry into grub correctly as well. But when I tried to boot into windows, it said my bcd was corrupted. Apparently when I was trying everything, I formatted the entire /boot partition so there was no way for windows to boot. After hours of trying to figure out how to restore the partition, I went into bios and re-enabled UEFI, safe boot, fast boot. It restored the /boot partition and let me get into windows. Then disabled safe boot and fast boot, booted arch live cd and installed gummiboot.

  • Extended partition on old MBR HDD makes Windows 7 UEFI boot fail

    There seems to be a bug in Windows 7 Pro x64 that prevents it from booting on a GPT partitioned HDD when the same machine also has an MBR partitioned HDD with an extended partition.
    I have a UEFI bootable PC with two HDDs:
    Disk 0 is GPT partitioned and contains Windows 7 Pro x64 and openSUSE systems.
    Disk 1 is MBR partitioned and contains Windows XP Pro x64 systems and bootable ISO images.
    Both the disks also have separate partitions for data and for booting.
    They are normally booted via rEFInd on disk 0 as follows:
    UEFI => rEFInd  => Windows 7 or GRUB2.
    UEFI => rEFInd => disk 1 MBR => GRUB4DOS.
    I had previously installed Windows 7 when it was first released, but abandoned it in favour of XP and openSUSE instead.  With the end of support for XP I decided to re-install W7.  Before doing so I unplugged disk 1 to ensure that W7 booted completely
    independently of XP.  After installing W7 I installed SP1 and all the Windows updates.  The new W7 system could be booted without problem via rEFInd => \EFI\Microsoft\Boot\bootmgfw.efi
    However when I plugged in disk 1 W7 would no longer boot.  It displayed the message "Windows is Loading Files" as the bar progressed twice before returning to the rEFInd menu.  On selecting W7 again it presented the option to "Launch
    Startup Repair", but on doing so it too just displayed "loading files" and returned to the reEFInd menu. 
    I UEFI booted from the installation DVD and ran Repair.  When re-booted W7 presented a menu with choice of new and recovered systems, but both failed as before.  Neither could be booted in safe mode.  Booting directly from the UEFI firmware menu
    into W7, instead of via rEFInd, gave similar results. 
    Investigations showed that the problem is caused by the extended partition on disk 1.  If it is deleted, or just hidden by changing the partition type from 0x0F to 0x00, then W7 boots OK.  Plugging in an external USB HDD with logical partitions also
    prevents W7 from booting.
    This all seemed to be similar to the problem described in KB979374, so I downloaded the hotfix (404153_intl_x64_zip.exe), which is supposed to be applicable to Windows 7 as well as WindowsServer 2008 R2.  However when the hotfix was run it displayed "The
    update is not applicable to your computer" and logged the following error:
       error 2149842967 "" (Command line: ""C:\Windows\system32\wusa.exe" "<pathname>\Windows6.1-KB979374-x64.msu" ")
    Is this because the version of files mentioned in KB979374 is older (6.1.7600.20617) than the version of Winload.exe in my system (6.1.7601.17556)? 
    According to http://www.techienewsnetwork.com/247/22/ SP1 included hotfix 979374, but it doesn't appear in the list of Installed Updates given in my W7 control panel.  Should it, are hotfixes included in a service pack listed individually?  If
    not is there any way to tell whether or not hotfix 979374 has been applied? 
    How can W7 be booted without having to change the partition type code of  extended partitions every time, is there a newer hotfix that will fix the problem in Windows 7 SP1?
    Almost all the references I can find to this problem are at least 2 years old, which suggests it might have been fixed.  Does anyone else with an up to date Windows 7 SP1 have this problem with extended partitions.  An easy test is to plug in an external
    HDD with logical partitions and see if W7 will still boot.
    I don't want to convert disk 1 to GPT as that would make XP un-bootable.  Also GRUB4DOS only supports MBR, and it is very useful for booting ISO images as well as XP. 
    Cheers.

    Hi Wade,
    To be sure that openSUSE, XP, or any other software on my PC isn't part of the problem I decided to do a new install of Windows 7 on a blank HDD.  As I don't have a spare one I had to backup everything on disk 1 (MBR) and then wipe it, including the MBR,
    with zeros (using AOMEI Partition Assistant).
    I unplugged the original disk 0 so that the PC had just single completely blank HDD (previously disk 1),  UEFI booted the Windows 7 DVD and installed W7 again.  Unfortunately at this first attempt W7 partitioned the blank HDD as an MBR disk and booted
    in legacy BIOS mode, even though I had booted the DVD in UEFI mode.  So I deleted all the partitions it had just created and converted the disk to a GPT one.
    The next time I installed W7 it was a UEFI one, with an EFI system partition.  After installing SP1 and re-booting it a few times to make sure it was working OK I plugged in the external HDD with an extended partition before re-booting.  The result
    was exactly the same as reported above for the main GPT disk: it briefly flashed "Starting Windows" then displayed "Loading files" for a few seconds as the bars progressed; when Startup Repair was launched it failed as well.
    After removing the HDD I booted the new W7 and added some missing drivers and installed all the Windows Updates, including the optional ones.  Many hours later the result was a new up to date installation of Windows that worked perfectly (no errors in
    any log files), with no other software on the PC.  However as soon as the external HDD was plugged in it failed to boot, as described previously.
    I then ran Bootrec from the DVD, trying all the commands,  but the results were exactly the same: everything worked successfully but no Windows installations were found, and it didn't fix the problem. 
    The documentation on how to use Bootrec describes how to backup the BCD store that is on the C: drive (e.g. "ren c:\boot\bcd bcd.old").  However the BCD store for UEFI based systems is in the EFI system partition, NOT on the C: drive.  This suggest
    that Bootrec does not apply to UEFI based systems.
    Are you sure that the MBR is used when booting in UEFI mode?  From what I have read in several places (not MS pages) the protective MBR on the GPT isn't used, but instead the UEFI firmware runs \EFI\Microsoft\Boot\bootmgfw.efi which looks in the BCD store
    in the EFI partition.  Can you point me to any MS documentation please that explains exactly how UEFI booting works for Window 7, including its use of the MBR.
    Do you have a Windows 7 system that can boot from UEFI when an MBR disk with an extended partition is attached.  If so how is your installation different from the one I have just set up, i.e. Windows 7 installed on a PC with just
    a single empty GPT HDD?
    Do you work at Microsoft?  If so perhaps you could find out if anybody with a straightforward UEFI booted Windows 7 has problems when an MBR HDD with an extended partition is attached.
    Sorry for the delay in responding, but a lot of work was involved.

  • [SOLVED] Dual Boot Window 7 & Arch on a Uefi system.

    From the Wiki
    Windows 7 x86_64 versions support booting in x86_64 UEFI mode from GPT disk only, OR in BIOS mode from MBR/msdos disk only. They do not support IA32 (x86 32-bit) UEFI boot from GPT/MBR disk, x86_64 UEFI boot from MBR/msdos disk, or BIOS boot from GPT disk.
    I don't understand this. As stated in the title I have a ueif system so that means I have to create a GPT disk ? I already have a gpt disk which I confirmed by running Arch Live USB. Under type it said GPT. I don't understand this at all
    However if Arch is installed in BIOS-GPT in one disk and Windows is installed in BIOS-MBR mode in another disk,  then the BIOS bootloader used by Arch CAN boot the Windows in the other disk, if the bootloader itself has the ability to chainload from another disk.
    Note: If Arch and Windows are dual-booting from same disk, then Arch SHOULD follow the same firmware boot mode and partitioning combination used by the installed Windows in the disk.
    In the Note above it says both Arch and Windows follow the same boot mode if they are dual booting from same disk. I DO NOT want to do this. I have already decided to partition  my drive with 200 Gb going to Windows and 500 Gb going to Arch. Does this mean that I should install both in different modes i.e. Arch in Bios-GPT and Windows in Bios-MBR.
    The recommended way to setup a Linux/Windows dual booting system is to first install Windows, only using part of the disk for its partitions. When you have finished the Windows setup, boot into the Linux install environment where you can create additional partitions for Linux while leaving the existing Windows partitions untouched.
    UEFI systems
    Both Gummiboot and rEFInd autodetect Windows Boot Manager \EFI\Microsoft\Boot\bootmgfw.efi and show it in their boot menu, so there is no manual config required.
    For GRUB(2) follow GRUB#Windows_Installed_in_UEFI-GPT_Mode_menu_entry.
    Syslinux (as of version 6.02 and 6.03-pre9) and ELILO do not support chainloading other EFI applications, so they cannot be used to chainload \EFI\Microsoft\Boot\bootmgfw.efi .
    Computers that come with newer versions of Windows often have secure boot enabled. You will need to take extra steps to either disable secure boot or to make your installation media compatible with secure boot.
    Being a beginner should I go with Gummiboot then. GRUB made a mess last time.
    Also my secure boot is NOT enabled so is that good.
    I have read the FAQs, Beginner's guide, Installation Guide, Dual Boot wiki entry but I just don't understand the above concepts. But it looks this this is the main thing in dual booting. Almost everything else is doable but this I have to get right on account of what happened the last time I installed Arch without getting the above right.
    Last edited by Some Arch Lovin (2014-06-14 08:53:14)

    A few issues with the dual boot setup
    Hello again, I lost my dual factor authentication grid from lastpass. Opensuse was acutally overwriting new pdf files over my old pdf files so now that grid pdf is actually an Arch cheat cheet with the name last_pass_grid.pdf. And the gmail account I used to register to Arch forums is also in last pass.
    This is why I created another account. I am some arch lovin.
    The installation went smoothly but I could not dual boot Windows7 with Arch because my Win7 image is not UEFI bootable so had to dual boot win8(not a fan at all) and arch.
    Almost everything is working correctly. I have a few issues that aren't affecting how the system is working but they still need sorting out.
    I'll do them one at a time but I want to know from the admins if I should start a new thread? Because in a way this thread accomplished it job i.e. win7 and arch dual booting in uefi system.
    If the answer is yes I should create a new thread depending upon the issue then I will do that but in case its a no since I have only 2-3 problems I am going to ask help for the first one.
    My gummiboot is not working on startup. I have to press f12 and use bios booting menu to boot. The problem with that is if I put Windows at the top of the boot priority the bios does not show F12 and F2 at the time of booting up so I can't access the boot menu. I have to boot into Windows and crash it by holding the power button and then the F12 options shows up and I am able to boot into Arch. If I put Arch at the top then Windows keeps restoring back to an earlier version due to start up options.
    NOTE : I can't be sure but one it did work(only once). I checked the images online to compare with what I saw and its very similar. An all black screen with three bootloading options
    Windows
    Arch
    Opensuse(don't know why I created a completely new GPT partition table)
    This is what I did while installing Gummiboot
    # mount -t efivarfs efivarfs /sys/firmware/efi/efivars
    # pacman -S gummiboot
    # gummiboot install
    I tried going through the gummiboot to see if I can do something but it very difficult to comprehend as a beginner. All I get is the characters gummiboot understands but thats all.
    Last edited by Archer61 (2014-06-11 13:48:56)

Maybe you are looking for

  • How to create a partition table on the basis of substring of column val

    Hi All, I have table Create table Mytable ( Col1 number, Col2 number, Col3 varchar2(20) insert into mytable values(11,2,'20110901'); insert into mytable values(12,2,'20110902'); insert into mytable values(13,2,'20110903'); insert into mytable values(

  • Conversion of int to String

    hi, Do someone know which way of converting the int to String is better? In term of performance and other issues in the handset: 1. int a = 5; String b = a + ""; 2. int a = 5; String b = String.valueOf(a); Thank you!

  • REALLY SLOW SHUT DOWN!

    I'm having trouble with shutting down my MacBook. Sometimes it takes forever to shut down. One night it took 10 minutes, sometimes half an hour can go by and it'll still be in the process of thinking about it. In the end I just have to hold down the

  • Higher Level Reporting in Controlling

    Hi, I will explain the requirement here We have created the Co Codes and assigned these to multiple controlling areas(ASIA,EUROPE,AFRICA,USA) and the same which in turn assigned to Operationg Concern(single) across world wide.My questions are Can I g

  • Reading HTML / PDF / DOC  Files

    I tried to read an PDF file using FIleInputStreamReader and tried to print the contents. Some grabage value is getting printed. on tried to read the HTML filre..only the source is getting printed by the printer. How can i overcome this problem