Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Dual Booting with raid

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
legit
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jan 04, 2006 4:16 am
Location: Denver, CO
Contact:
Contact legit
Website

Dual Booting with raid

  • Quote

Post by legit » Sat Mar 13, 2010 12:30 pm

Hello,

So I've never done raid before, I plan to setup my new computer (in the bios) with raid 1 (mirroring) and dual boot gentoo with windows 7.

With windows I have to create a special "boot disk" (on a usb flash drive).

Is there any thing special I need to do for installing gentoo?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56100
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Mar 13, 2010 2:07 pm

legit,

As you set up the raid in the BIOS, you are using device mapper raid - dmraid for short.
If your root filesystem will be on the raid volume, you need an initrd including dmraid to provide access to the raid, so the kernel can mount its root.

genkernel can build you such an initrd.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
legit
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jan 04, 2006 4:16 am
Location: Denver, CO
Contact:
Contact legit
Website

  • Quote

Post by legit » Sat Mar 13, 2010 3:50 pm

If I don't want to do a genkernel?
Top
r3tep
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Sat Sep 10, 2005 2:28 pm
Contact:
Contact r3tep
Website

  • Quote

Post by r3tep » Sat Mar 13, 2010 4:24 pm

Then you'll have to create the initrd by hand.

Unfortunately, you'll have to recreate the initrd every time you change something on your kernel.
Top
legit
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jan 04, 2006 4:16 am
Location: Denver, CO
Contact:
Contact legit
Website

  • Quote

Post by legit » Sat Mar 13, 2010 4:25 pm

So it looks like I just have to install the correct drivers in the kernel for it if I build the kernel myself.

At least according to the gentoo wiki: http://en.gentoo-wiki.com/wiki/RAID/NVRAID_with_dmraid

Can someone verify that for me, I'm not sure how much to trust the gentoo-wiki these days, ever since its crash it's seemed a bit out of date.
Top
r3tep
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Sat Sep 10, 2005 2:28 pm
Contact:
Contact r3tep
Website

  • Quote

Post by r3tep » Sat Mar 13, 2010 4:47 pm

If you want to boot from that RAID, you'll have to create the initrd http://en.gentoo-wiki.com/wiki/RAID/NVR ... l_RAM_Disk

If you have a running system and you only want to add a RAID, you'll need only these drivers.

The third way, described in the wiki as "using a self-built kernel", describes how to add the self-built kernel to an initrd you have to create.
Top
legit
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jan 04, 2006 4:16 am
Location: Denver, CO
Contact:
Contact legit
Website

  • Quote

Post by legit » Mon Mar 15, 2010 10:46 pm

so I've decided to do a genkernel, will this guide be all I need to do?

http://en.gentoo-wiki.com/wiki/RAID/Onboard
Top
ndse2112
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 100
Joined: Mon May 21, 2007 10:17 pm

  • Quote

Post by ndse2112 » Tue Mar 16, 2010 12:45 am

you can use genkernel to just build the initrd, just make sure that you have support in your kernel.

eg:

Code: Select all

genkernel --luks --lvm --dmraid --kernel-config=/usr/src/linux/.config initramfs 
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

Re: Dual Booting with raid

  • Quote

Post by Yamakuzure » Tue Mar 16, 2010 10:13 am

legit wrote:With windows I have to create a special "boot disk" (on a usb flash drive).
I have Windows 7 and Gentoo on a Computer dualbooting that uses a stripeset with 4 HDs. And I do not need a special boot disk, just grub. And Neither windows vista nor windows 7 needed a special disk for the installation either. I really hope that that is true for you, too.
Edited 220,176 times by Yamakuzure
Top
paultrinity09
n00b
n00b
Posts: 1
Joined: Tue Mar 16, 2010 1:59 pm

  • Quote

Post by paultrinity09 » Tue Mar 16, 2010 2:07 pm

Thanks a lot for share\ing this been wondering how to create dual boot.
California boarding schools
Nevada military schools
Top
legit
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Wed Jan 04, 2006 4:16 am
Location: Denver, CO
Contact:
Contact legit
Website

  • Quote

Post by legit » Tue Mar 16, 2010 9:19 pm

ok, so let me make sure how to do this correctly.

I run genkernel to install the initramfs

Code: Select all

genkernel --dmraid --install --kernel-config=/root/kernel-config initramfs
Then I can install a custom built kernel in the normal fashion, making sure that I include support for dmraid?

is that correct?

OR...

I could just do a genkernel with dmraid and not worry about anything else right?

ALSO...

If i do a genkernel for the initramfs, and a custom kernel. then everytime I upgrade my kernel I have to repeat the steps of generating an initramfs with the genkernel right?

I'm getting kind of confused between all the different methods.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic