[SOLVED]dual boot-Failed to mount real root device

Hello,
Here is my drives partition info:
/dev/sda1       2,949,122,048 3,907,028,991   957,906,944   7 NTFS / exFAT / HPFS
/dev/sda2               2,048   901,117,951   901,115,904  83 Linux
/dev/sda3    *    901,117,952 1,925,115,903 1,023,997,952   f W95 Extended (LBA)
/dev/sda5         901,120,000   901,439,487       319,488  83 Linux
/dev/sda6         901,441,536   905,648,127     4,206,592  82 Linux swap / Solaris
/dev/sda7         905,650,176 1,925,115,903 1,019,465,728  83 Linux
/dev/sda4       1,925,115,904 2,949,122,047 1,024,006,144   7 NTFS / exFAT / HPFS
/dev/sdb1               2,048     2,099,199     2,097,152  83 Linux
/dev/sdb2           2,099,200    53,299,199    51,200,000  83 Linux
/dev/sdb3          53,299,200    73,779,199    20,480,000  83 Linux
/dev/sdb4          73,779,200   224,673,791   150,894,592   7 NTFS / exFAT / HPFS
I installed Opensuse 12.1 on /dev/sda5. It is booting with Grub, working with no problems. The computer boots directly to Grub menu.
THEN, I installed Arch linux (last release) on both sda and sdb following these mounting points:
/dev/sdb1 mounted as /boot  Ext2
/dev/sdb2 mounted as /   BTRFS
/dev/sdb3 mounted as /usr  BTRFS
/dev/sda2 mounted as /home  BTRFS
Intstallation went smooth until the end. Installed the bootloader.
Now, I am trying to configure GRUB to boot Arch.
Here is what I added on /boot/grub/menu.lst, in sda5 under Opensuse:
title Arch Linux  [/boot/vmlinuz-linux]
    root (hd1,0)
    kernel /vmlinuz-linux root=/dev/sdb1 ro
    initrd /initramfs-linux.img
In Opensuse, i can check that vmlinux and grub/menu.lst are indeed in /dev/sdb1
My /etc/fstab is on /dev/sdb2
=============================== sdb2/etc/fstab: ==========
# /etc/fstab: static file system information
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
tmpfs        /tmp    tmpfs    nodev,nosuid    0    0
/dev/sda2 /home btrfs defaults 0 1
/dev/sdb1 /boot ext2 defaults 0 1
/dev/sdb2 / btrfs defaults 0 1
/dev/sdb3 /usr btrfs defaults 0 1
With this parameters, i got an message error when booting Arch:
Mounting /dev/sdb1 on /new_root failed: no such device.
Error : failed to mount the real root device.
So, at busybox prompt, I tried this command line :
ramfs # mount -t ext2 /dev/sdb1
Got an error : Can't read /etc/fstab
I tried too to give a uuid adress to sdb1 in my menu.lst file, but it didn't change anything, so I am sure partition number is correct.
It seems to me in fact that GRUB can't find fstab.
Two questions :
-Would it be better in fact to use only 1 GRUB file for both systems? If yes, shall I keep only the grub config from Opensuse?
-What do I wrong with Arch booting? Why can't I boot Arch?
EDIT :1- just realised there is no BOOT flag in my partiton table on /dev/sdb.
            2- root is on /dev/sdb2, not sdb1.
1-I toggled my first partition bootable using fdisk
2-changed root to point to /dev/sdb2
Now booting into Arch login
Last edited by gabx (2011-11-22 22:33:09)

It was a very simple problem. I used the wrong uuid for my /
Correct entry in 40_custom is:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Arch Linux uuid" {
insmod part_msdos
insmod ext2
search --fs-uuid --no-floppy --set=root 8516fa60-0d45-4f33-b269-817c5290f6cc
linux /vmlinuz26 root=/dev/disk/by-uuid/9f32e668-2548-4ed4-a10b-3fbea66a6d95 ro vga=775
initrd /kernel26.img
Now the boot is working great. Next thing was that my /home and swap was not detected.
That was simply because /etc/fstab was still using /dev/sda etc naming. changing  that to uuid solved that part as well.
To use uuid all the way and of cause the correct one solved everything
/Christer
Last edited by agkbill (2011-07-15 16:00:30)

Similar Messages

  • MacBook Pro Installation - Failed to Mount Real Root

    Hi, I've been trying to install Arch on my older MBP for years now (2009 model, I think) with a single-boot configuration. I can successfully boot from the USB, where I get to select from three shells to boot in, being:
    Arch Linux archiso x86_64 UEFI USB
    UEFI Shell x86_64 v1
    UEFI Shell x86_64 v2
    Then, I select the first, and stuff just skims by at first, until I end up at something like:
    :: Device /dev/disk/by-label/ARCH_201303' mounted successfully
    :: Mounting /run/archiso/cowspace (tmpfs) filesystem, size=75%...
    :: running late hook [archiso_pxe_common]
    :: running cleanup hook [archiso_shutdown]
    :: running cleanup hook [udev]
    ERROR: Failed to mount real root device
    Bailing out, you are on your own. Good luck.
    Then I'm stuck with a shell as root with barely any commands to use (no fdisk/gdisk/insert-any-partitioning-tool-here), etc. I'm pretty sure this isn't supposed to happen. Is there any guide on how I can fix this? Googling hasn't exactly worked, and I couldn't find anything on the Arch Wiki too easily.
    Thanks for the help!
    Important note:
    Months ago, I got stupid and did try to install CrunchBang (BIOS boot only, obviously). That erased pretty much everything (that includes the EFI partition, etc.) and left me with a few unbootable partitions. So, uh, that is to say, if any suggestion involves booting up from OS X and doing anything, or using rEFInd/rEFIt, it won't work. Thankfully, however, I am able to do most Linux commands as I am currently on my primary system, Linux Mint.
    Last edited by kyeshi_0913 (2013-06-13 23:02:15)

    @ the_isz - Thanks for the read, but no help.
    @swanson - That usb hook was added, this error happens just after the usb module scans the bus. Listing by-label while in RAMFS shows the USB devices.
    Also while in initrd environment:
    [RAMFS /]# blkid
    /dev/sda1: LABEL="BOOT" UUID="d71a5da8-fbdd-4ab9-ba5a-fa2adcda137b" TYPE="ext2"
    /dev/sda2: LABEL="SWAP" UUID="3a437fef-b143-4626-a74c-2332d3a83470" TYPE="swap"
    /dev/sda3: LABEL="SYSTEM" UUID="702e29ad-3f8a-4590-9c97-36a4f0b0262b" TYPE="ext4"
    /dev/sda4: LABEL="HOME" UUID="2ef17520-7602-4855-acee-331535fdb0c7" TYPE="ext4"
    /dev/sdb1: LABEL="USB-BOOT" UUID="3a563c48-850d-410a-afb9-bcd01ed567a5" TYPE="ext2"
    /dev/sdb2: LABEL="USB-SWAP" UUID="980f4f7e-24a2-4347-8595-c61d8f72accf" TYPE="swap"
    /dev/sdb3: LABEL="USB-SYSTEM" UUID="b6d09c53-aed8-494e-b017-df4c3c66b64b" TYPE="ext2"
    lists all partitions, that is USB and hard drive, but attempting to manually mount sdbn (USB partitions) failed.
    [RAMFS /]# mount /dev/sdb3 /new_root
    mount: mounting /dev/sdb3 on /new_root failed: no such device
    Regards,
    Brian

  • [SOLVED] Booting Arch off USB HDD fails - can't mount real root device

    I've installed Arch on the internal HDD (sda) of my laptop, and I attempted to install a second copy of Arch on partition sdb3 of an external USB HDD.  sdb3 is a primary partition that I had prepared beforehand with gparted and outfitted with the reiserfs filesystem.  I skipped section 3.2 (manually prepare hard drives) of the Arch installer.  There was no problem with section 3.3 (manually configure filesystems and mountpoints); I put all of / in sdb3.  Installing packages and configuring the system also went without a hitch.
    I wanted to boot this new install of Arch via the boot menu of GRUB that was installed in the MBR of sda with my primary install of Arch.  On the new install, I first did go through section 7 (install bootloader), thinking I would want to install GRUB in the root sector of partition sdb3 (not in the MBR of sdb where the GRUB of MintKDE resides, a boot menu that I want to keep) but that failed, so I then picked "no bootloader to be installed".  With that I exited the new install, since it appeared to have gone to completion.
    I then copied the appropriate stanza in the /boot/grub/menu.lst of this new Arch install to the /boot/grub/menu.lst of my primary Arch install on the internal HDD of my laptop.
    This stanza reads as follows:
    # (3) Arch Linux on WDPP60 blue (sdb3)
    title Arch Linux on WDPP60 blue (sdb3)
    root (hd1,2)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/191cc027-43ce-443b-8846-f265d60555ec ro
    initrd /boot/kernel26.img
    However, I'm not able to boot the new Arch install when I pick this entry from the GRUB menu list.  The new install starts booting, finds sda but not sdb and stops with the following errors, dropping me to a recovery shell:
    Root device /dev/disk/by-uuid... doesn't exist. Attempting to create it.
    ERROR: Unable to determine major/minor number of root device '/dev/disk/by-uuid...'
    mounting /dev/disk/by-uuid... on /new_root failed: No such file ...
    ERROR: Failed to mount the real root device.
    Running "mount -t reiserfs /dev/sdb3 /new_root" at the ramfs prompt also fails.
    I've tried a number of edits of the menu.lst stanza from the grub> command prompt, such as adding rootfstype=reiserfs, replacing root=/dev/disk/by-uuid..etc. with root=/dev/sdb3 (booting then fails with "/dev/sdb3  No such file"), using "initrd /boot/kernel26-fallback.img" etc., but booting always fails at the same stage with equivalent error messages.
    I have no trouble booting half a dozen other Linux/BSD distros that reside on two different external USB HDD's by the same method, i.e. choosing an entry from the GRUB boot menu of my primary Arch install, after I placed the appropriate stanza in its /boot/grub/menu.lst.
    How can I get this new Arch install to boot?
    Last edited by RobF (2010-05-17 23:03:27)

    Yes, this was in fact the solution.  I stumbled upon it in this thread:
    http://bbs.archlinux.org/viewtopic.php?id=65844
    When one wants to boot from a USB mass storage device, the initrd needs to include the modules for accessing USB devices, and in Arch this is accomplished by adding "usb" to the HOOKS array.  I simply reinstalled Arch to the USB HDD and in the system configuration step now edited /etc/mkinitcpio.conf by adding the "usb" item.  Adding "rootdelay=10" and/or "rootfstype=reiserfs" to the kernel line in the appropriate stanza in Arch's /boot/grub/menu.lst wasn't necessary in this case.  I left the stanza exactly as I posted it above.
    Thanks for your input.

  • [SOLVED] - Arch Boot Error: Unable to find Root Device /dev/sdb1

    I had Arch running perfectly using /dev/sdb1 (versus Disk Label or UUID) and decided to do a update.  After the Update I can't boot
    to a running system, and I get this error message:
    ERROR: Unable to find root device /dev/sdb1 
    You are being dropped into a recovery shell.
    Is there an easy way to convert to UUID or Disk Label since the latest Upgrade doesn't allow me to continue to use /dev/sdb1 ??
    I'd prefer not to have to rebuild both USB Flash Drives to get functional systems.
    Any Help is greatly appreciated.
    Suggestions?
    Larry
    Last edited by lkraemer (2012-02-21 15:14:02)

    Check your grub and read https://wiki.archlinux.org/index.php/UUID#By-uuid
    Edit:
    https://bbs.archlinux.org/viewtopic.php … 0#p1059160
    https://bbs.archlinux.org/viewtopic.php?pid=1059338
    https://bbs.archlinux.org/viewtopic.php?id=135288
    Last edited by karol (2012-02-21 01:07:21)

  • [SOLVED] Dual-boot Arch/Windows - 2 hard drives

    Hi Everyone
    I've just installed Arch and I'm having a bit of a problem dual-booting between Arch and Windows XP, which are each on a seperate Hard drive.
    I've done this successfully before with Mepis Linux and Windows XP, but for some reason it's not working this time.   
    The difference is that I've recently purchased a new computer and both Windows and Arch are on SATA drives whereas last time they were both on IDE drives.  Also I'm not sure whether or not to enable SATA AHCI mode in the BIOS (apparently it doesn't work with XP anyways), or SATA port 0-3 Native mode.  Although I've tried all possible combinations and it doesn't seem to work at all.
    Here is my menu.lst file:
    # (0) Arch Linux
    title  Arch Linux
    root   (hd0,0)
    kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/0df05d3b-537c-4576-ad36-1f90a6b01ec0 ro vga=773
    initrd /boot/kernel26.img
    # (1) Windows
    title Windows
    rootnoverify (hd1,0)
    makeactive
    chainloader +1
    When I boot into Arch from Grub it works fine,  but when I try to boot into Windows from Grub, I get this:
    rootnoverify (hd1,0)
    makeactive
    chainloader +1
    and then nothing....No error message or anything. It just hangs.  Does anyone have any ideas as to what's happening? Thanks in advance.
    edit:  It seems I solved the problem by adding these lines to the menu.lst file:
    map (hd0) (hd1)
    map (hd1) (hd0)
    root (hd1,0)
    I can now boot into either Arch or Windows from the Grub menu
    Last edited by axle (2008-09-30 02:35:54)

    This is a question that can very easily be answered by doing a simple google serach.  Google is your friend.  I suggest you start there and come back if you run into issues.

  • [Solved]dual boot windows 7 and arch linux

    I have successfully installed arch linux dual boot with the original win7 on my PC. If I only use linux, then the system works well. The problem is that once I boot into Win7 then after reboot, the linux boot manager will stop working and the system always boots into windows automatically. My guess is Win7 automatically repair the boot loader.
    My current solution is whenever I have finished using Windows, I'll boot with my linux USB installation, and run "gummiboot --path=/boot install". Afterwards, linux will work fine. But I believe there must be a better solution. Any help will be appreciated.
    I have UEFI board by the way.
    Last edited by jl2014 (2015-04-19 17:35:57)

    Thanks for all your help first! I have tried Head_on_a_Stick's suggestions as the first step. Here is what I did. I have created :
    $ cat /boot/loader/entries/windows.conf
    title Windows
    efi /EFI/hidden/Boot/bootmgfw.efi
    The window boot path was :
    /boot/EFI/Microsoft/Boot/bootmgfw.efi
    and I changed
    /boot/EFI/Microsoft
    to
    /boot/EFI/hidden
    After reboot, I clicked 'Windows' option on the linux boot manager. Below are the error messages:
    Windows failed to start.
    File: \EFI\Microsoft/Boot/BCD
    Info: An error occurred while attempting to read the boot configuration data.
    Any idea what goes wrong?
    I'll try other suggestions soon. Thanks all of you again.
    Last edited by jl2014 (2015-04-19 00:03:33)

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

  • [SOLVED]Dual boot Grub2 : file not found

    here is my config :
    Ubuntu 11.1 installed on sd1. It is my default system, and where the GRUB2 config is.
    I installed Archlinux on sd2, with /boot on (hd1,1) and / on (hd1,2).
    I want to set up GRUB to boot both systems.
    here is my /etc/grub.d/11_linux_arch, in the Ubuntu system :
    #!/bin/sh -e
    echo "Adding Archlinux"
    cat << EOF
    menuentry "ArchLinux"  {
    set root=(hd1,2)
    linux /boot/vmlinuz-linux
    initrd /boot/initramfs-linux.img
    EOF
    vmlinux-linux and initramfs-linux.img are well in my /boot folder on (hd1,1)
    At grub prompt, I can see Archlinux as an option. When I select it, I get an error message, "file not found".
    I can't see where is an error.
    TY for any help.
    Last edited by gabx (2011-11-29 22:41:11)

    Here is what I added to /etc/grub.d/40_custom
    # Arch Linux
    menuentry "Arch Linux" {
    set root=(hd1,1)
    linux /vmlinuz-linux root=/dev/disk/by-uuid/38616db1-366f-40f4-a728-1230e81abb21 ro
    initrd /initramfs-linux.img
    I think telling the uuid is better  but /dev/sdb2  (my / partition)  works too.
    Then :
    #sudo update-grub
    and I have been able to dual boot Archlinux and Ubuntu 11.10.
    The resolution is bad, so I will add a line about it, but I guess it is not diificult.

  • [SOLVED] Dual boot with ubuntu w/o installing GRUB? (YES)

    Hi all -
    This is my first shot at arch, tho I've installed a few other linux distros.
    So far I really appreciate the excellent documentation, especially compared to other linuxes!
    But I can't find a good answer to this question:
    I already have ubuntu installed and would like to dual-boot with arch.  (I also have Win7 but boot it from a separate disk selected via BIOS, and usually leave this disk disconnected anyway, so it's not an issue; grub doesn't know it exists).
    Q:  Before installing, can I make a new LOGICAL ext4 partition (say /dev/sda7),
    - then install arch on that **w/o installing grub** and **without messing with the MBR**,
    - then edit ubuntu's existing menu.lst to add arch to the boot options?
    Current $ fdisk -l
    /dev/sda1    ext4 primary/boot (/ for ubuntu)
    /dev/sda2    extended
    --/dev/sda6  linux-swap
    --/dev/sda5  NTFS (data - mp3s, etc)
    unallocated  480GB  --> Create new ext4 partition /dev/sda7,  (logical or primary? Prefer logical)
    Current menu.lst entry that I normally boot:
    title       Ubuntu 12.04 LTS, kernel 3.2.0-24-generic REGULAR
    uuid        UUIDforSDA1 (file has actual UUID number...)
    kernel      /boot/vmlinuz-3.2.0-24-generic root=UUID=UUIDforSDA1 ro
    initrd      /boot/initrd.img-3.2.0-24-generic
    and add something like this to menu.lst:
    title  Arch Linux
    uuid  UUIDforSDA7
    kernel /boot/vmlinuz-linux root=/dev/sda7/ARCH ro  (??? - from example in arch docs)
    initrd /boot/initramfs-linux.img
    or
    kernel /boot/vmlinuz-linux root=UUID=UUIDforSDA7 ro  (??? - like the ubuntu entry)
    I'd really like to NOT mess up booting ubuntu!  (Another option might be install arch to a separate disk with the ubuntu disk disconnected, then copy the whole install over via a USB adapter...I've done worse!)
    TIA for any help!
    Edit: so I guess there's three questions:
    1 - Can I install arch w/o installing grub & MBR messing-wth?
    2 - What's the correct syntax for menu.lst to access and boot arch?
    3 - Will this work?
    Last edited by Flemur (2012-05-25 15:24:18)

    Well, it worked and booted up first time - no grub install.
    The main hassle was merely creating a new ext4 partitions because "Partition Wizard" boot CD screwed up and I kept getting "Unable to update kernel until reboot" messages until I deleted and rebuilt all the partitions in the extended partition with puppy linux & gparted instead of Partition Wizard.
    In case others stumble upon this trhread, here's some info:
    The entry in the ubuntu (original) menu.lst was this:
       title           Arch Linux
       uuid          af7...etc...9f3c
       kernel        /boot/vmlinuz-linux root=UUID=af7...etc.f3c ro
       initrd          /boot/initramfs-linux.img
    I'm even posting this from arch/fluxbox/Firefox, although getting X set up with nvidia (PITA!) apparently required using a different pacman source:
    File "mirrorlist" now points to
        Server = http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch
    which wasn't in the original file.
    Then
    $ pacman -Su --> "/etc/mtab exists" --> delete it and something else broke,
    so
    $ pacman -Su --force --> worked fine (against official advice)
    Also: needed to install nvidia-utils and xorg-xinit
    Thanks again!

  • [SOLVED] dual booting windows 7 with btrfs on grub-bios -- core.img

    I am trying to install arch in a dual boot configuration with an existing windows 7 partition. I have everything from the beginner's guide done but the bootloader. When I run grub-install it tells me that core.img is too big.
    Some googling tells me that this is relatively common with btrfs, and it seems the only work around is to switch to gpt mode and use a grub bios partition. But the info I've seen indicates that I need to use MBR mode to dual boot windows.
    Is it safe to do this with windows? Is there another workaround? Or will I have to settle for ext4?
    Last edited by jorenko (2013-06-09 03:53:24)

    Well there's your problem, your first partition starts at sector 63.  With recent versions of windows and fdisk (and every other partitioning tool I can think of off the top of my head) things now align themselves correctly.  Also because there is now GPT, the first partition typically starts later as the GPT partition table will typically sit between the MBR and the first partition. 
    On a MBR partitioned system, grub2 will actually use the first 446 bytes like normal, but will then also use the space that is empty where GPT would sit.  This is why when you have a GPT partitioned system, it will require you to create a 1-2MB grub boot partition, as it needs somewhere else to put its bloat.  GPT actually still uses the MBR section, but simply creates one large partition covering the whole disk.  This is so that tools that are not GPT aware will not think that they have a whole free disk to use as they please.
    For comparison, here is whe I get from fdisk:
    # fdisk -l /dev/sda
    sudo fdisk -l /dev/sda
    [sudo] password for curtisshima:
    WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
    Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: gpt
    # Start End Size Type Name
    1 2048 2099199 1G EFI System EFI System
    2 2099200 252166798 119.2G Linux filesyste arch-btrfs-1
    3 252168192 488397134 112.7G Linux filesyste arch-btrfs-3
    Note that I do use GPT.  But that is not the point here. What I am trying to show is where my first partition starts.  This is also where fdisk will start partitions these days.  This is to ensure compatibility with 4k advanced format disks.
    If you are not dead set on Grub2, you could try using syslinux.  I really like it much better, though if you are booting more than one Linux, you need to either employ chainloading to various partition boot records, or have a shared /boot.  Having a windows partition doens't really matter, as you are simply chainloading to that funky reserved partition anyway. 
    The other option is to use grub-legacy, which can still be found in the AUR.  I actually liked the orginal Grub, as it provided a nice feature set, but was still configurable by hand and it actually fit into the MBR.

  • [SOLVED] Dual boot with Windows 8, problems after updating Windows

    Hi all,
    I have been maintaining a dual boot of arch and Windows 8 for some time. I recently updated Windows to 8.1, and found that the update process had two side effects:
    1) The update added a new partition in the middle of my file table, so my /etc/fstab which referenced "/dev/sda6" was wrong because that partition is now "/dev/sda7."
    2) The default boot device was switched to the Windows Boot Loader instead of grub. But, this is not a problem because I can work around this by using the "Choose boot device" feature of my bios at start up.
    So, neither of these problems are critical for me at the moment. I can fix my fstab and just press a hotkey at startup.
    EDIT: I have avoided the /etc/fstab issue by referencing my partitions using UUID as specified in https://wiki.archlinux.org/index.php/Fstab.
    How do I set the default boot device back to grub? There is some weirdness here, I think windows is using UEFI booting and my grub uses the old booting system.
    Last edited by bjmnbraun (2014-05-14 19:00:36)

    Rex: I tried that command, got some warning messages regarding blocklists, but no dice.
    Loqs: You are right about windows using a ESP and UEFI while my linux is not booting using UEFI. My bios is configured to try "Legacy boot" first before trying UEFI. Getting linux to boot using UEFI seemed like a pain, so...
    I went into my BIOS settings and found that the Windows Boot Manager boot device was listed in front of my hard disk (which boots linux). I don't think this used to be the case, so something about the update caused my BIOS to reorder the boot devices (probably because the partitions changed).
    Switching my hard disk to be above the Windows Boot Manager in the boot device list now makes me boot into linux by default, and I can boot into windows by pressing a hotkey at bootup and selecting the windows boot manager.

  • [SOLVED] Dual boot windows 7 and arch Linux with seperate hard drives

    Ok so I'm stuck trying to get my computer to dual boot windows 7 and arch. They are installed on different hard drives and I have grub 2 as the boot loader. I can't find any tutorials on how to do it with seperate hard drives I know how to do it if they are on the same hard drive. Also I want windows on the "first" hard drive how do I check to see which one it considers the first?
    Last edited by bdawg (2012-09-21 23:15:37)

    DSpider wrote:
    drobole wrote:If you want to change it so that sda becomes sdb and sdb becomes sda, you should be able to do that in BIOS.
    Not from the BIOS. He would need to physically open up the computer and switch the cables between them (or add another drive).
    There's no actual performance increase in changing this order. Performance increase is when you have the partitions as close to the beginning of a HDD as possible, where the platters spin faster (basic mechanics, not to be confused with CD/DVD, which are being written from the inside-out to prevent errors after extended usage), and it especially doesn't apply to SSDs whatsoever.
    You may be right about that. I remember I had to do this a while back but I probably switched the cables. It also messed up the drive mapping in Windows 98 if I remember correctly.

  • [solved] Dual Boot OCZ RevoDrive 3

    I just received an OCZ RevoDrive 3 for christmas and was wondering why it wasn't showing up under Arch when it was definitely being detected by the BIOS. I found a thread from last year about the original RevoDrive that said it needed dmraid to work correctly and I assumed that was problem and that the modules weren't built into the CK kernel I was using. So I rebooted to the stock kernel and it still wasn't listed with  fdisk -l, so I googled stuff about it and saw on the OCZ forums that Linux was supported!! Luckily some Canadian guy wrote drivers for it and said they were accepted into the mainline kernel as of 3.2-rc1 but dual-booting was supported yet (this was from 12/8/2011).
    Before I waste a few hours on trying to get Arch and Windows 7 installed on it (it's 120GB), does anyone know if this works yet? Thanks!
    edit: I can't seem to build a working 3.2-rc7 kernel image. I tried building it twice with this script but I got kernel panics each time. So I decided to manually compile it and not use my current .config but all that does is hang after "loading linux.....", I really don't want to return this drive because it's going to be absolutely amazing when it works!
    edit: Here's better support
    Last edited by brando56894 (2012-01-09 21:40:36)

    How should I be compiling my new kernel? Should I be copying my currently running config or should I start fresh? Whenever I try and use my old config it just results in a kernl panic, even with the dmraid package installed. If I start fresh it will boot but some of my devices don't work (because I forgot to select them during the config, it was a test run).
    mkinitcpio.conf
    HOOKS="base udev autodetect scsi sata dmraid filesystems usbinput"
    rc.conf
    MODULES=(vboxdrv snd_seq_oss snd_pcm_oss snd_mixer_oss dm_mod)
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="yes"
    Last edited by brando56894 (2011-12-27 19:02:59)

  • [SOLVED] Dual booting arch onto an SSD that already has W7 in MBR?

    I currently have windows 7 64bit installed onto a 256gb m4 SSD. I would like to be able to dual-boot W7 and Archlinux, but so far I've been getting wildly varying accounts of doom and data deletion from every source that I've looked at- and unfortunately, the Archwiki's guide to dualbooting is out of date.
    So here's the questions:
    First, is UEFI something I need to look at? At the moment W7 seems to be on MBR. I'm getting conflicting accounts on whether this is not even an issue or if it will attempt to make my computer eat my dog.
    Next, what is going on with sectors and alignment and such? Some people ignore them, some people delve so far into it that I think I vaguely know they're still talking about a hard drive.
    Which leads me into partitioning, and not doing it in a way that's terrible. I can't find any information on this anywhere that isn't buried within the above-mentioned posts, along with incredibly vague warnings of GParted moving a partition, spoken of in a way as if that data is lost to the twilight zone.
    Finally... pulling all this together is the largest issue.
    Do any of you know good, factual resources where I can look into this stuff?
    Last edited by ilar (2013-04-03 03:53:31)

    1) If you knew what UEFI was you should have known it wasn't an option, and shouldn't have asked about it.
    2) (G)parted and gdisk (if you go with GPT at some point) handle SSD sector alignment automatically, and have for some time.  A google search could have revealed that.
    3) Whether one uses an SSD or HDD, dual-booting will be the same: 2+ partitions devoted to separate operating systems.  While SSDs and HDDs may be fundamentally different constructs, booting from them is not different at all.  That's why you aren't finding anything saying such.
    4) As for the wiki being out-of-date, the specific reason (as stated page's in the header) is that GRUB legacy is no longer officially supported in Arch.  Disregard that information and use GRUB2/Syslinux/LILO and the process remains the same: Install the operating systems side-by-side and chainload the secondary OS.  It doesn't matter one bit: I've dual-booted every Linux distro I've used over the past four years with Windows, from Ubuntu to Mint to SuSE to Sabayon to Arch to whatever, and I've done it all the exact same way, using HDDs and an SSDs and both in combination.  There's plenty of information out there on this, and your time could better have been spent looking it up rather than arguing with people here. 
    5) Welcome to Arch.

  • [SOLVED] dual boot partitions

    I have four partitions for my arch install.  Does this mean that I won't be able to dual boot another distribution without having to reinstall arch?  There can only be 4 partitions right?  Or is there some way around it?
    Thanks
    Last edited by acidic (2012-04-20 11:06:23)

    There can be only 4 primary partitions  on a disk. However, one of the partitions can be made 'extended'. In that you can have any number of logical partitions. So there is no problem for multibooting. I believe Windows and BSD need a primary partition for installation.  Obviously one of the primary partitions has to go. You can install full Arch system on one partition. I am not sure if this can be done without need for reinstalling arch. Following link of full system backup may be of help:
    https://wiki.archlinux.org/index.php/Fu … with_rsync
    Also see:
    https://wiki.archlinux.org/index.php/Ad … Partitions
    Output of 'sudo fdisk -l' will show you if all your partitions are primary or there is an extended one also. You may post the output here.
    If there is a swap partition, that can be deleted, converted to extended, logical partitions made in extended, one of them made swap, and other distributions can be added. This should not cause any loss of data but this will require partitions to be resized.
    Last edited by rnarch (2012-04-19 11:40:59)

Maybe you are looking for

  • PO print

    Dear Gurus, The user is unable to  get the print of some pos. In the messages, the print parameters are not getting defaulted for some PO. Pls help. Regards, Nitin

  • Yosemite OS 10.10 printer drivers?

    Are Canon behind the curve with their printer drivers for Mac OS? Have a great image runner C1028i. Great printer but I would love to use it. What are we supposed to do, put it out on the pavement?  All help appreciated

  • Connection has uncommited change in sql developer

    Team, i am getting the message in sql developer connection has uncommited change and please select one of the option 1)commit changes 2)rollback changes 3)abort connection disconnect we are querying the view which takes data from remote database usin

  • BDC PROGRAM WITH OUT USING A FM?

    Hi Experts, I need wirte a BDC program for tcode PA30. i did the screen recording part using tcode-shdb. i need to use field i recorded as input fields. Now the main part is how to write code? with out using a class/method? class/method which i earli

  • Can't update JDeveloper 11.1.1.6.0 with the SOA Composite Editor

    Greetings, I've installed the Jdeveloper 11.1.1.6.0 and want now to update it with the SOA Composite Editor. After having gone to Help->Check for updates, selected "Search update centers" and checked "Oracle Fusion Middleware Products" and "Official