How should I install GRUB to dual-boot 2 distros on two diff hd drves?

Well, I actually have two questions.  I'm using the FTP install CD and noticed I don't have the Install Kernel Option after Configure System.  Does this mean that the kernel was installed when I did Configure System automatically?  Or that it wants me to run make && make modules_install manually?  I couldn't quite figure that one out. 
Now as for my main question... I pretty much got through the install okay but am a bit paranoid about just saying Install Bootloader.  I currently have Gentoo on another hard drive on my computer and don't want to wipe out GRUB on Gentoo.
If this helps, this is my partition scheme:
/dev/hda1 swap (for both Gentoo and Arch)
/dev/hda2 / for Gentoo
/dev/hdb1 /usr/portage for Gentoo
/dev/hdb2 / for arch
So how should I go about installing the boot loader?   And I am assuming I would have to appropriately edit the lines of my grub.conf in Gentoo.... this is it currently...
title=Gentoo Linux 2.6.23-r3
# Partition where the kernel image (or operating system) is located
root (hd0,1)
kernel /boot/kernel-2.6.23-gentoo-r3 root=/dev/hda2
title=Gentoo Linux 2.6.23-r3 (rescue)
# Partition where the kernel image (or operating system) is located
root (hd0,1)
kernel /boot/kernel-2.6.23-gentoo-r3 root=/dev/hda2 init=/bin/bb
So would I just add
title=Arch Linux
root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/hdb2 initrd /boot/kernel26.img
to my Gentoo's grub.conf? Or am I just completely off here?  Then in addition to that what else would I have to do to get it to dual boot without overwriting my Gentoo's GRUB?    I'm just afraid I'll mess it up.
PS: In Arch, all my hard drives are showing up as /dev/sda1, etc., not hda1, if that makes a difference.  :-p  I was like SCSI?  *blinks*  XDDDDD  But that's normal, right?  But I figured since it's Gentoo's GRUB I should use hd*
So woud I just choose to install GRUB for Arch on /dev/sdb2 then, the partition that it's on, since I'm planning on using Gentoo's bootloader, and then just edit gentoo's grub.conf file?
Last edited by violagirl23 (2008-01-30 04:12:20)

tesjo wrote:
Basically right but you should add
title= Arch Linux
root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/hdb2 ro
initrd /boot/kernel26.img
Arch uses a newer library I forget the name, which identifies drives as sdX instead of hdX
Well, I got it working.  Thanks!  Turns out this is what I needed:
root (hd1,1)
kernel /boot/vmlinuz26 root=/dev/sdb2 ro
initrd /boot/kernel26.img
I tried (sd1,1) and root=/dev/sdb2 at first but it barked at me for the (sd1,1), so I changed it back, and with root=/dev/sdb2 all seems to be well.  Thanks!

Similar Messages

  • Reinstall grub for dual boot...

    Hi all,
    I've got Archlinux64 & WinVista64 installed as dual boot... but I'm going to have to re-install Vista again from fresh, so once it's all on again Vista will start to boot auto* 'cos it'll over written grub.
    How do I install grub again... do I insert the Archlinux64 disc & ignore all the settings & just install grub?!
    many TIA

    if you manually mount your root partition on /mnt after booting from the arch install disc, going to setup and then choose to install grub should work I guess (not tested though )

  • Installing Arch WinXP Dual-Boot

    Hello! I'm new with Arch-Linux.
    I'm trying to install Arch with Windows XP. I looked at the guide and several threads but I can not solve my problem. I make an installation in "Legacy" because my drive is IDE. I have installed Win XP. I do manually the partitions partitions / boot, /, / swap, / home, all logic, after the XP ntfs. And then I install  the grub in the MBR which is on the XP partition. When booting, I get a dual-boot XP and I started without problems, but when I boot Arch I get the following problem:
    FileSystem CHECK FAILED
    And here  I have not managed to solve anything, I have consulted several forum threads where people could think the same thing, wiki, but I have not been solved. If anyone can help me with the installation, or if I am wrong partition table or something, I would be very helpful.
    Sorry about my English, it isn't my frist language.
    Last edited by xunele (2009-11-13 11:48:32)

    I can see two issues here:
    I install  the grub in the MBR which is on the XP partition
    The MBR is not on any partition, is sits at the beginning of your disk. Partitions have bootsectors. And you should not install anything into the boot sector of the XP partition, since that will make XP unable to boot. Wikipedia is quite good on these topics.
    Secondly, /boot must be on a primary partition.

  • Arch does not show up in Grub when dual booting with windows 8

    I just installed Arch linux, dual booting with windows 8 using the beginners guide[https://wiki.archlinux.org/index.php/Beginners'_Guide] itself. Now Grub is installed and i can only find Windows 8 and I cannot find Arch. Is there a way I can find if arch linux has been installed and show up in Grub.
    Sorry, I am a newbie, but i chose to post this topic here and not newbie corner as it is installation related.
    My windows 8 is installed on /dev/sda1 with ntfs partition type. Arch Linux is installed on /dev/sda6 and it is ext4 partition. I dont know if this info helps.  I am using Thinkpad R61
    Last edited by sutro_droid (2013-03-06 00:30:48)

    ivokosir wrote:It may be that you didn't install os-prober before running grub-mkconfig. This happened to me once, I hope I'm not too late to warn you.
    I am sorry, yes you are too late. I have wiped windows 8 and performed clean install. No regrets. And as a matter of fact, I did grub-config and then installed os-prober. That could be the problem. Thanks. I will try this again another time.

  • Hello, I am trying to upgrade to yosemite, but I get the "disk cannot be used to startup your computer" error. Resizing the partition does not work, I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot

    Hello, I am trying to upgrade my macbook pro to yosemite, but I get the "disk cannot be used to startup your computer" error.
    Resizing the partition does not work for me and I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot and the disk manager is lost.
    Anyway to tell the yosemite installer that it should not pay attention whether the disk is bootable or not ?
    If I am doomed, any way to delete the installer and downloaded OS from my hard drive ?
    Thanks for your help

    As usual, the Linux installer wrecked the partition table. You would have to boot from your OS X installation disc and repartition. Doing so will of course remove all data from the drive, so you must back up first if you haven't already done so.

  • How do I install Windows XP with boot camp assistant, on my IMac?

    How do I install Windows XP with boot camp assistant, on my IMac?

    Lion cannot BootCamp XP.
    You can install XP under virtual machine software (Parallels, VM Fusion, VirtualBox).
    And Windows 7 Pro has XP mode.  XP will requires probably days of pathing after install and will be completely unsupported by MS within 1 year, but Windows 7 Pro still has great support from MS.

  • How can I install windows XP with Boot Camp 4.0.4 in Mac OS X 10.7.5?

    How can I install windows XP with Boot Camp 4.0.4 in Mac OS X 10.7.5?

    You can't. Only Windows 7 is supported in that configuration.

  • How should I install extra Perl modules?

    I thinking about using Munin from Linpro (http://munin.projects.linpro.no/) to monitor my OCS-servers that are running on RedHat Advanced Server 2.1 (and soon-to-come RedHat Enterprise latest version), but this program needs a module called perl-Net-Server.
    How should I install this? There is a perl-installation under the $ORACLE_HOME, but Munin will run as root. Will I mess up something in OCS if I just install the RPM package Munin recomends? (from the DAG archive http://dag.wieers.com/rpm/packages/perl-Net-Server/ )

    Apache/Oracle HTTP Server is on the Companion CD
    and is not installed with the DB

  • Is i cloud already available in Mexico? if it is, how should i install it in my mac os x version 10.6.8? Does i cloud have a cost?, how much is that?

    Is i cloud already available in Mexico? if it is, how should i install it in my mac os x version 10.6.8? Does i cloud have a cost?, how much is that?

    Read here >  Sign up to be notified when iOS 5 and iCloud are available.

  • Can Tiger run a dual boot system with the two internal hard drives

    Can Mac run a dual boot system with the two internal hard drives both running Tiger?
    Dual 2.5GHz G5
    I am wanting to use one hard drive with Tiger to run my graphics stuff and then reboot and use the other hard drive for video.

    Yes, you can set that configuration up.
    (26293)

  • How to install Arch for dual-boot with Win 7 (on 2 hard drives)?

    Hello,
    the TLDR first: how exactly should I proceed when setting up GRUB for 2 hard drives to dual-boot Arch (64 bit)and Win 7 (64 bit)?
    Long version: So, I have the following hard drive & partition layout:
    On my first hard drive (250 GB big) I have: Win 7 64 bit, all the programs for Windows and of course the EFI partition
    My second hard drive is 1 TB big and formatted in NTFS and it only contains data. It has 2 partitions, one is about 750 GB big and used for simple storage.
    Sidenote 1: sometimes my disk management (Windows' own gparted) shows either the little disk or the big one as disk 0. Don't know what exactly this means, but I have never ever experienced any problems whatsoever during use.
    Sidenote 2: the UEFI motherboard (ASRock H67M) cannot boot into Legacy mode.
    I want to install Arch on a ~200 GB partition on the second hard drive (the one with 1 TB). (click here if you want to see a screenshot) I am posting this because I am confused with how exactly I should deal with the whole "2 hdds & UEFI" thing.
    So how exactly should I proceed when setting up GRUB for this setup?
    For partitioning I suppose I would have to use fdisk or cgdisk. I used cgdisk before and found it to be straightforward. Then, because I have experienced my fair share of problems with rEFInd, I'd like to use GRUB.
    Last edited by jones (2013-06-29 14:36:56)

    First thing you should do is become familiar with your motherboard.
    http://www.asrock.com/mb/manual.asp?Model=H67M
    This will probably help you out in understanding the sidenote 1 thingie (hdd's on sata3 and/or sata2 connectors)
    As on sidenote 2, according to the manual it seems to be possible to boot legacy mode,  see Storage Configuration.

  • [SOLVED] Advice for Arch install with rEFInd dual boot Lenovo laptop?

    I am trying to plan an Arch install on a new laptop for dual boot with Windows 8.1, but I know there is a potential to cause huge problems so I have been trying to read and learn about the hard disk partition structure and how I might install the rEFInd boot files so that I am still able to boot Windows once Arch is installed. (Unfortunately for some tasks such as updating the maps on my satnav box Windows is essential). However I am really quite unsure if I am doing the right thing in the way I am thinking about the Arch install so I would appreciate any help from experts on the forum.
    The laptop is a Lenovo IdeaPad Y510p which came with Windows 8 pre-installed, with the option to upgrade to Windows 8.1.  The upgrade was completed without issue and I then looked into the question of hard drive partitions and boot.  I had read posts on the Ubuntu forums about users who had installed Ubuntu on this same laptop and ended up being unable to boot Windows afterwards so I wanted to tread very carefully before executing anything which might cause really major damage. I had also read on the Lenovo forums replies about people who had replaced the hard drive and installed linux only to find that they could  not boot to the recovery partitions, with replies from Lenovo moderators saying that if the partition structure had been changed then the laptop would have to be sent back to Lenovo for a factory repair.
    On this laptop to get into the bios or boot options you do not just press the power button and hit an F key, but instead there is a special small "OneKey Recovery" button next to the power jack, which opens up with options for BIOS setup and boot options as well as normal boot or recovery. This OneKey Recovery button is therefore needed to boot a usbkey - the power button only allows it to boot to windows presumably until/unless a different bootloader and NVRAM entry is amended.
    I have done all the initial ( safe!)changes necessary to move to the point at which I can execute the Arch install. From within Windows (switched off fastboot, and shrunk the "C:" drive to make space for linux partitions).  I have also switched off Secure Boot from the BIOS, and made sure that Windows still boots up fine.
    The current arch install iso (February 2014) boots under uefi just fine - and of course once booted I have access to the gdisk programme.  That certainly showed the pre-existing partitions on the drive (8 partitions with partition number 2 being the EFI partition, and three recovery partitions!) with a GPT partition table, and it should therefore be possible to make the necessary new linux partitions in the now unallocated space on the disk that was freed up with the internal disk management facility within Windows 8.1.  So at that point I created three partitions for a root partition (type 8300), a swap partition (type 8200) and another type 8300 partition which will become /opt in the installed Arch system.
    In order to try and not make any changes to the partition structure I let the three new linux partitions be number 9, 10 and 11.
    I am told that for a GPT disk it is a definite no-no to try to create more than one EFI partition. So I will need to use the existing EFI partition to place the rEFInd files and the kernel once I install Arch.
    In this (Y510p) laptop the EFI partition contains the following structure:
    BOOT/ - containing only boot.sdi
    BOOTSECT.BAK
    EFI/ which contains two directories Boot/ and Microsoft/
    so EFI/Boot/ contains only Boot64.efi which is likely a fallback copy of the Windows 8.1 bootloader
    and EFI/Microsoft/ contains a Boot/ directory - so
    EFI/Microsoft/Boot/ contains loads of language specific directories like en-GB/
    plus bootmgfw.efi (which I believe is the Windows main efi loader file)
    bootmgr.efi
    memtest.efi
    The scheme that I am planning to use which I have previously used in pure Arch uefi machines, is that /boot is a directory in the root partition, /. That way /boot is an ext4 directory and will contain the kernel and initramfs plus the rEFInd linux config file.
    Then I can mount the EFI (vfat) partition as /boot/efi and so I can then make a /boot partition under /.  Then the EFI /BOOT/ directory would be seen in Linux as /boot/efi/BOOT/ and the Windows efi stuff would be in /boot/efi/EFI/Boot/Microsoft/Boot/ in which case I would presume that I have to make a new directory in /boot/efi/EFI/refind/ and put the refind stuff including the filesystem drivers there, and let the kernel go into the (ext4) /boot/ directory which would be preferred!  However I am not 100% confident that this is what will work and I need to read more before trying to do the install. The thing that concerns me is how the system will handle the uefi boot process, and whether it would auto-detect the Windows efi file as well as the Arch refind efi file once the system has started up?
    ... and then there is the issue of the NVRAM entries and I am no longer confident that if I use the usual tools to create an entry (efiboomgr or bcfg), that I will get a successful dual boot system!
    There is still a chance that I would irrevocably damage being able to boot to the Windows and Recovery partition boot options by messing up the EFI and/or the NVRAM so I have to tread very very carefully with this.
    If anyone has gone through this kind of dual boot install with a Windows 8 or 8.1 machine using rEFInd for the bootloader, and can offer advice or help here I would very much appreciate it.  I have another pure Arch system which uses rEFInd that works extremely well, but it seems that dual boot with uefi is a rather more complex animal than a pure linux system!
    Last edited by mcloaked (2014-02-22 10:06:03)

    vipin wrote:I have recently bought the y510p , im planning to install Arch , this is my 4th laptop , i had installed Arch in all the other 3 with no problems, but im a bit worried with the installation as this is the first laptop which has EFI , im a linux user for the past 6 years , i started with fedora , now i like Arch , mike documentation is excellent, i just had one question when i had grub , it automatically finds the new kernel when i update (grub.conf/menu.lst gets updated), does rEFInd also do that.
    When there is an update to the rEFInd package you need to copy the files across to your ESP from the files contained in /usr/share/refind/  usually you need to copy the refind_x64.efi binary as well as the icons, fonts, and drivers directories.  Since there is flexibility in how you configure the kernel and initrd files in terms of where they are located whether you need to do anything else when a new kernel update arrives depends on how you set your system up.  If you have the /boot directory as your ESP partition which will then have the kernel and initrd files updated by default then there no need to do anything else when there is a kernel update. If the ESP is then at /boot/EFI and within that is your refind/ directory then that is where the replacement files go if refind-efi gets a pacman update. So it is actually fairly straight forward. If you configure rEFInd to look for kernels in some other directory than /boot/ then you may need to copy the files there after a kernel update but there is more information in the arch wiki about this.
    During a refind-efi package update there are helpful files in the pacman output (and log) reminding you of what you need to do.  eg for the latest refind-efi update you get:
    [2014-06-18 18:48] [PACMAN] upgraded radvd (1.12-1 -> 1.13-1)
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] rEFInd UEFI application has been installed at /usr/share/refind/refind_*.efi
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] Other UEFI applications have been installed at /usr/share/refind/tools_*/
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] UEFI drivers have been installed at /usr/share/refind/drivers_*/
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] Copy the efi application (according to your UEFI ARCH)
    [2014-06-18 18:48] [ALPM-SCRIPTLET] and /usr/share/refind/refind.conf-sample to a sub-directory of <EFISYS>/EFI/
    [2014-06-18 18:48] [ALPM-SCRIPTLET] as refind.conf and add an entry to firmware boot menu using efibootmgr
    [2014-06-18 18:48] [ALPM-SCRIPTLET] or mactel-boot (for Macs)
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] rEFInd Icons have been installed at /usr/share/refind/icons/
    [2014-06-18 18:48] [ALPM-SCRIPTLET] rEFInd Fonts have been installed at /usr/share/refind/fonts/
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] HTML Documentation is available at /usr/share/refind/docs/html/
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [ALPM-SCRIPTLET] More info: [url]https://wiki.archlinux.org/index.php/UEFI_Bootloaders#Using_rEFInd[/url]
    [2014-06-18 18:48] [ALPM-SCRIPTLET]
    [2014-06-18 18:48] [PACMAN] upgraded refind-efi (0.8.1-1 -> 0.8.2-1)
    I hope that helps.
    By the way you can also boot uefi using grub and in fact you can get rEFInd to chainload grub as a backup bootloader as an added safety factor and have both rEFInd as well as grub installed simultaneously. How that can be done is explained in the thread at https://bbs.archlinux.org/viewtopic.php?id=181906
    Last edited by mcloaked (2014-06-25 17:41:12)

  • How do i set up a dual boot with windows

    I am trying to set up a dual boot system with both the snow leapard and win 7,  I have partioned the drive and have windows booting up.  How do I get the drivers for the machine that windows will recognize.  I am researching this for my dad his I mac is one of the new 21 inch models.

    If you want dual boot you would use Boot Camp which is built into Snow Leopard. You will need a license of WIndows 7. You can install it by using Boot Camp Assistant however prior to doing so you probably should look at how it's correctly done, here is a You Tube Boot Camp instructions video I would recommend you watch first.
    If your dad wants to run Windows 7 & OS X simultaneously then he will need either Parallels or VMWare Fusion. Both are virtualization applications that allow one to run Windows and OS X side by side. This is a great solution unless he is a gamer or needs to run graphics intensive applications like CAD/CAM or 3D Games or anything that is 3D intensive. For all other types of applications virtualization is an excellent solution.
    If you choose the Boot Camp solution there is a forum specifically for that which is where I'd recommend posting questions.
    Roger

  • How do I set up a dual boot with 10.8 and 10.7

    I want to set u a dual boot system using so10.8 and os 10.7 I have my disk for 10.7 and 10.8 is curently my os. I have an empety hard drive partition I want to install 10.7 on to but when I try to start up my computer with the instalation disk it gives me the "this computer needs to restart please push and hold your power button" message. Can any one help?
    Thank you
    Mike

    How to create an OS X Lion installation disc
    OS X Lion Install to Different Drive
    Your system (OS) selection of where has to be done BEFORE any restart.
    And you want to backup and retain a copy of the installer ".ESD" package first.
    On restart it will self destruct the package.
    A clean install on another drive or another partition.
    I prefer to go with pulling the old drive.
    Always retain backup boot ability and dual drive dual boot is just... safer.
    If you're looking for an OSX installation disc, and, like me, you upgraded to Lion through the app store, you will have to go through a back-door process in order to create this disc. Here's an article on this. http://www.macworld.com/article/161069/2011/07/make_a_bootable_lion_installer.ht ml (I can't guarantee it works. I made a disc like this because I thought I needed it to reload from a Time Machine backup, but it turns out that Lion doesn't require the disc for this, so I never used it.)
    When I installed Boot Camp and Windows, I didn't need the OSX installation disc. I'm not sure why you would, in this process. It should only ask for your Windows disc.
    If for some reason you downloaded Windows from Microsoft instead of buying a package with a disc, you need to download the ISO version and burn it to a DVD. See this article on downloading the ISO: http://www.mydigitallife.info/windows-7-iso-x86-and-x64-official-direct-download -links-ultimate-professional-and-home-premium/ (Make sure you choose the ISO that matches the version you bought).
    Here's instructions on burning an ISO with Disk Utility: http://lifehacker.com/251758/mac-tip--how-to-burn-an-iso-or-dmg-file-to-disc And this thread on burning a Windows DVD in OSX: https://discussions.apple.com/thread/2039118?start=0&tstart=0 (Summary: you can use Disk Utility to burn the ISO, but choose a slow burn speed)

  • [solved] Cannot complete install, grub fails to boot the new install

    I'm using the 2009.08 USB image.
    I've tried this 2 weeks ago, tried it again today, same result. (I'm on Win7 meanwhile).
    I'm installing arch, everything goes fine.
    I've tried 2 setups:
    a)
    100GB ext4 /
    12GB swap
    (no separate /boot, should work)
    b)
    100MB ext3 /boot
    100GB ext4 /
    12GB swap
    Neither a) or b) will boot.
    When the newly installed grub boots, I get a error saying:
    filesystem type unknown, partition type 0x7
    I get this for the ext3, ext4, and windows partitions.
    I get it for both a) and b) setups.
    I have doublechecked the menu.lst file. I've even created another entry setting root=/dev/sdb1 (as opposed to the default /dev/disks/by-uuid/..).
    I should mention, I have two disks, the first (sda) is currently with a Win7 installation, the 2nd (sdb) is the one I'm trying to install Arch again (and failing).
    After the reboot, I've tried booting into the livecd again and manually trying to mount /dev/sdb1 /mnt, it works.
    Why isn't my grub boothing from ext{3,4}?
    Last edited by Frantic (2009-11-05 18:35:15)

    Rede wrote:
    I was getting that error but after re-installing grub and making some changes to the menu.lst file it was fixed.
    I was able to at one stage boot into arch but it gave problems with the root. Now it just seems to freeze while trying to load grub.
    I am currently trying yet another install of grub. I have been noticing though that my menu.lst file has been rolling back or not updating when I chroot back into my install after changing it earlier.
    Try mounting your /boot partition under /mnt/boot.

Maybe you are looking for