LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-24-2013, 11:17 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Rep: Reputation: 31
UEFI / GPT boot with software raid (Ubuntu 13)


So I'm tackling an ambition project (to me, anyway). I have 4 3TB drives and a server I'm building. The goal is to have a single Raid 10 (6TB) system for my new server.

I have a UEFI motherboard (ASRock Z77), and I was able to set up the raid (using mdraid, I set up a single "5.46 TiB" drive) with GPT as the basis for each 3TB drive, but the install and boot isn't working. I've found a lot of outdated information on installing and booting to GPT, but nothing seems to work. I tried building a small partition for /boot and for the grub install as fat32 partitions. With grub installing to a 1MiB partition, I got grub (non UEFI ... grub on the UEFI boot doesn't seem to install) to install and even find the linux installation, but then it doesn't boot. Nothing showed up in the dmesg log or anywher else I knew to look, so I'm sure it never actually hit the file system.

I know I can give up on GPT as the main partition and install Ubuntu (or whatever) to a simple ext4 non-raided partition, then load GPT on everything else. Sure. But I'd like to figure this out and not have separate drives sitting out there.

I'm guessing, but don't know, that there's some magic in how I need to partition the system and then some more magic in how it needs to be installed. I'm ok with blowing away the raid and starting over (even though it takes 8 hours), but I'd really like to get the max size on this raid.

Any help would be appreciated at this point.
 
Old 09-14-2013, 09:23 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Hi:JohnLocke

Quote:
But I'd like to figure this out and not have separate drives sitting out there.
Are those 4 3TB drives external or did you install them inside of your computer tower?

Quote:
I set up a single "5.46 TiB" drive) with GPT as the basis for each 3TB drive, but the install and boot isn't working
I am pretty sure that the OS 'journaling EXT 4 filesystem' and 'swap' has to be on the drive that you want to use.
It sounds by your description that the 5.46 ToB is a seperate drive and you formatted it with GPT but somehow I don't think that communicates to the other 3 drives. (I don't have RAID experience)

If you want to you can also use one or more of those drives for storage-
http://pysdm.sourceforge.net/

With the newer motherboards that have UEFI BIOS only the Linux distro's with a key will install.
I found this out the hard way by building my own computer a few weeks ago.
Ubuntu 12.04 distributions and Fedora will work on a mobo that has UEFI BIOS-
http://linux.slashdot.org/story/12/0...i-restrictions

If you have another operating system on the HDD or TB Drive that you are installing Ubuntu on than you will have to shrink that OS's partition
if you want to dual boot with it and Linux.

To veiw all partitions on your machine as 'root'Run:

Code:
fdisk -l
 
Old 09-14-2013, 10:34 PM   #3
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
No ... those four drives are internal drives and the 5.46TB is the raided combination of those drives. I got this working (to some extent) by making a separate vfat partition on one of the drives before raiding them which I used as the EFI boot drive. The running OS is on the GPT raided partition (~5.5 TB).

I still don't know if I need the separate grub partition I made (both the EFI and grub partitions are < 50MB) and I put a 1GB swap partition on each drive (those are non-raided) that I'll set to equal priority.

I need to do some more experimenting still to find /exactly/ the right combinations and sizes needed of these partitions, but it at least "works" with this combination.

I did have to use the new "boot-repair" program to fix the EFI boot partition after installation ... auto-install of Ubuntu 13.04 didn't work to install the bootloader into grub nicely on a GPT partition (or on the other partitions available).
 
Old 09-14-2013, 11:55 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Quote:
I still don't know if I need the separate grub partition
I am not sure if you need a separate grub partition or not-
Generally the GNU GRUB MENU can hold up to 3 operating systems on one HDD-

Perhaps the Grub Manual: PDF will prove as useful and help you to find out if you should or shouldn't create another grub paritition:-

http://www.gnu.org/software/grub/manual/grub.pdf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware uefi gpt install porphyry5 Slackware - Installation 18 09-18-2013 04:06 PM
Accessing installed Ubuntu partition on UEFI, GPT and Secure boot enabled ultrabook kamesh419 Ubuntu 5 07-14-2013 03:20 AM
GPT, UEFI and BIOS Legacy slaka Linux - Laptop and Netbook 8 04-17-2013 07:28 AM
Booting Slackware 14 with UEFI and GPT rkelsen Slackware 4 02-10-2013 05:43 AM
[SOLVED] Boot Loader Problem on Slackware64 13.37 (UEFI & GPT disk) ack_iix Slackware 22 07-12-2012 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration