LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2013, 11:25 PM   #1
cypher_zero
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Rep: Reputation: Disabled
[Solved] Unable to install Grub on Software Raid – Mint 14.1


So I've been having some trouble getting my setup to work. I've tried various different things that I've found (some of them listed below) but I still can't get the OS to load; screen just comes up black and the monitor goes to sleep with a 'no input detected' message.

Some of the things I've tried/looked at to do this:
http://forums.linuxmint.com/viewtopi...=90878#p522997
http://forums.linuxmint.com/viewtopic.php?f=46&t=119832

Here's what my setup looks like:
  • Computer is an HP Z400 with 16gb RAM
  • 4 - 500gb HDDs all partitioned the same
Partitions:
  • sd[abcd]: 1mb free space at front of drive
  • sd[abcd]1: 1mb unformatted => flagged as ‘bios_grub’
  • sd[abcd]2: 4096mb Swap => Raid1 on md3, formatted as Swap
  • sd[abcd]3: 122880mb unformatted => Raid10 on md0, formatted as EXT4 (root partition)
  • sd[abcd]4: 500mb unformatted => Raid 1 on md2, formatted as EXT4 (/boot partition)
  • sd[abcd]5: (rest of the drive) unformatted => Raid6 on md1, formatted as EXT4 (mounted to: /home/Data)
  • sd[abcd]: 1mb free space at end of drive
Here are the steps I took to get to where I am:
1) Installed hard drives and wiped completely before starting (no errors detected)

2) Booted into Mint 14.1 x64 Live CD

3) Used Gparted to create GPT partition table and partitions as listed above. Flag the ‘bios_grub’ portion and flag the drives to be raided as ‘raid’

4) Installed mdadm and created partitions as listed above
Code:
sudo apt-get install mdadm
sudo mdadm --create /dev/md0 --level=10 –c 512 --layout=f2 --raid-devices=4 /dev/sd[abcd]3
sudo mdadm --create /dev/md1 --level=6 –c 512 --raid-devices=4 /dev/sd[abc]5
sudo mdadm --create /dev/md2 --level=1 –c 512 --raid-devices=4 /dev/sd[abc]4
sudo mdadm --create /dev/md3 --level=10 –c 512 --raid-devices=4 /dev/sd[abc]2
5) Format md3 as Swap and md0-2 as EXT4
Code:
sudo su
mke2fs -t ext4 -E stride=128,stripe_width=512 /dev/md0
mke2fs -t ext4 /dev/md1
mke2fs -t ext4 /dev/md2
mkswap /dev/md3
6) Ran Mint install and selected 'Do something else' for hard-drive partitioning

7) In the partitioner, I selected md0 as my Root [/] partition, gave md1 a mount point of /home/Data, and marked the Swap partition on each hard drive (sda, sdb, sdc, sdd) as 'do not use' [the logic of this being that it would use the Raided Swap partition (md3)].

8) Install completed as normal and Grub failed to install (as expected).
Code:
When you receive an error that installer cannot install bootloader to the disks choose OK,
and on the next window called "Bootloader install failed" the OK button isn't active!
Do move forward you have to:
    a) click first position "Choose a different device to install the bootloader on:"
    b) open the list with disks and choose something, for example /dev/sda
OK button is now active!
    c) click "Continue without a bootloader"
    d) click OK
9) Open up terminal and get in as root
Code:
sudo su
10) Mount the raided partitions so I can Chroot to finish raid setup and install Grub
Code:
mkdir /mnt/temp
mount /dev/md0 /mnt/temp
mount /dev/md2 /mnt/temp/boot
mount /dev/md1 /mnt/temp/home/Data
mount --bind /dev /mnt/temp/dev
mount --bind /dev/pts /mnt/temp/dev/pts
mount --bind /proc /mnt/temp/proc
mount --bind /sys /mnt/temp/sys
mount --bind /tmp /mnt/temp/tmp
chroot /mnt/temp
11) Install mdadm on new root. When reconfiguring mdadm, select the option to allows boot from a degraded array.
Code:
cp /etc/resolvconf/resolv.conf.d/tail /etc/resolv.conf
apt-get update
apt-get install -y mdadm
dpkg-reconfigure mdadm
Note: You may get an error connecting to the package server because the /etc/resolv.conf file gets emptied of its DNS servers at some point in the installation process. You can either rebuild that with something from your ISP, or use the ‘cp’ command above to copy it from elsewhere.

12) Install grub (This didn't work apparently, but this is what I did)
Code:
update-initramfs -uv
update-grub
grub-install --recheck --debug /dev/sda
grub-install --recheck --debug /dev/sdb
grub-install --recheck --debug /dev/sdc
grub-install --recheck --debug /dev/sdd
13) Create symbolic link to md0 from /dev/root
Code:
ln -s /dev/md0 /dev/root
grub-mkconfig -o /boot/grub/grub.cfg
14) Unmount new install
Code:
exit
umount /mnt/temp/dev
umount /mnt/temp/dev/pts
umount /mnt/temp/proc
umount /mnt/temp/sys
umount /mnt/temp/tmp
*Note: unmounting /mnt/tmp/dev failed saying files were still in use. I’ve started using umount –l on that mount instead

15) Wait for Raid to sync:
Code:
echo 200000 > /proc/sys/dev/raid/speed_limit_min
watch -n1 cat /proc/mdstat
16) Reboot

At this point the computer did not boot into Mint or Grub or, well anything really and just sat there with a black screen after getting past the bios before the monitors shut off saying no input detected.

Some of the things I noticed in doing this:
After the initial install, when booting back into the Live CD you have to re-install mdadm in order for the Live CD to be able to work with the Raid partitions. To get the CD to see them, run:
Code:
sudo apt-get install mdadm
sudo mdadm --assemble --scan
For whatever reason though, when doing this only md0, md1, and md2 are identified. Md3 is nowhere to be seen, however if you look at /etc/mdadm/mdadm.conf of the newly installed Mint, md3 is listed.

I'm fairly certain that the root of the problem is that the Grub still isn't installed properly.

So, does anyone have any other suggestions or advice?

cypher

Last edited by cypher_zero; 02-25-2013 at 10:47 AM.
 
Old 02-20-2013, 12:32 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I haven't done a raid setup yet so pardon me if I'm wrong, but I don't think you can intermix different raid configurations.
Look at this
http://www.thegeekstuff.com/2010/08/...vels-tutorial/
 
Old 02-20-2013, 01:27 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
My apologies I read the links that you provided & am wrong about mixing raid arrays, but, in the both links boot partition is not setup in raid array. It's only on sda1
The OP has it seperate partition so bios can read it.
 
Old 02-20-2013, 10:42 AM   #4
cypher_zero
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for the response!

I am aware that I could set up the boot partition on a non-raid, but I would prefer not to. Specifically, I'm trying to take advantage of the moderate speed boost provided by striping on Raid0 for my boot Partition so setting up a non-raid boot partition would defeat the purpose of that.

Since I'm posting here, a quick update:
Based on what I've read here, it looks like I might need to set up another partition on each disk set aside for bios_grub. To do that, you need a GPT partition on the drives, so I just re-partitioned and am going through the process. Also, as I mentioned above, I'm not raiding Swap this time, so perhaps that will solve another issue.

Last edited by cypher_zero; 02-20-2013 at 05:39 PM.
 
Old 02-20-2013, 05:37 PM   #5
cypher_zero
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
After playing around, Googling a bit more, and trying a few different things, I believe I've now got the Grub installed, however I still can't boot. On startup I get this:
Code:
error: disk 'mduuid/(buncha hex)' not found
grub rescue>
Doing an 'ls' from this prompt only returns the 3 hard drives (hd0, hd1, hd2).

What I changed from above to get to this point:
1) Switched to using a GPT parition table
2) I now have a 10mb parition on each drive with a flag for 'bios_grub'
3) Did not raid Swap partitions together.

Anyone have any suggestions at all? I've been fighting with this for a few days now.
 
Old 02-20-2013, 06:16 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, I don't know about mint, but there is a note in the RH docs saying the only RAID type you can use for the /boot partition is RAID1...
 
Old 02-20-2013, 06:33 PM   #7
cypher_zero
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
I'm fairly certain that's not/is no longer the case with Mint, but I could be wrong. Anyone know for Mint specifically?

EDIT: Apparently it still is.

Last edited by cypher_zero; 02-22-2013 at 02:14 PM.
 
Old 02-20-2013, 06:45 PM   #8
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Code:
grub-install --target=i386-pc --recheck --debug /dev/sda
bash-4.2# ln -s /dev/md0 /dev/root
bash-4.2# grub-mkconfig -o /boot/grub/grub.cfg
My root partition is with metadata version 0.9 but that was not necessary I discovered later but I did not bother to change it yet.
Code:
root@dimmel:~# cat /etc/mdadm.conf 
mailaddr root@localhost
ARRAY /dev/md0 metadata=0.90 UUID=5fc08dc9:45be61b5:950f9dea:d7ce0e55
ARRAY /dev/md/home metadata=1.2 name=Dimmel:home UUID=a905e896:4424561f:93ba06b5:56733ee3
ARRAY /dev/md/swap metadata=1.2 name=Dimmel:swap UUID=f317b0de:8065d6b7:902ce5c7:9f399743
ARRAY /dev/md/boot metadata=1.2 name=dimmel:boot UUID=37d1af24:90f292f3:d33fdb3f:b442a055
Code:
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 0CC1F602-66C8-4966-92C9-1AEF8EE22ECB
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 64-sector boundaries
Total free space is 655 sectors (327.5 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              64            2047   992.0 KiB   EF02  bios_grub
   2            2048         4196351   2.0 GiB     FD00  swap
   3         4196352         4237311   20.0 MiB    FD00  boot
Code:
root@dimmel:~# mdadm -D /dev/md/boot
/dev/md/boot:
        Version : 1.2
  Creation Time : Mon Aug  6 20:38:35 2012
     Raid Level : raid10
     Array Size : 38912 (38.01 MiB 39.85 MB)
  Used Dev Size : 19456 (19.00 MiB 19.92 MB)
   Raid Devices : 4
  Total Devices : 4
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Feb 20 09:00:14 2013
          State : active 
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : far=2
     Chunk Size : 512K

           Name : dimmel:boot  (local to host dimmel)
           UUID : 37d1af24:90f292f3:d33fdb3f:b442a055
         Events : 27

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3
       2       8       35        2      active sync   /dev/sdc3
       3       8       51        3      active sync   /dev/sdd3
Code:
root@dimmel:~# cat /boot/grub/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 ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"

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 part_gpt
insmod part_gpt
insmod part_gpt
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/56f2b51b02cbc2e12ee26cf6474c5d34'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/56f2b51b02cbc2e12ee26cf6474c5d34'  73666226-4124-4438-9497-8ff38d786555
else
  search --no-floppy --fs-uuid --set=root 73666226-4124-4438-9497-8ff38d786555
fi
    font="/grub/unifont.pf2"
fi

if loadfont $font ; then
  set gfxmode=1920�1200
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-14.0 GNU/Linux' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
	else
	  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
	fi
	echo	'Loading Linux 3.7.1 ...'
	linux	/vmlinuz-huge-3.7.1 root=/dev/md0 ro  vt.default_utf8=1
}
submenu 'Advanced options for Slackware-14.0 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.7.1' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.1-advanced-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.7.1 ...'
		linux	/vmlinuz-huge-3.7.1 root=/dev/md0 ro  vt.default_utf8=1
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.7.1 (recovery mode)' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.1-recovery-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.7.1 ...'
		linux	/vmlinuz-huge-3.7.1 root=/dev/md0 ro single 
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.7.1' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.1-advanced-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.7.1 ...'
		linux	/vmlinuz-generic-3.7.1 root=/dev/md0 ro  vt.default_utf8=1
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.7.1 (recovery mode)' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.1-recovery-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.7.1 ...'
		linux	/vmlinuz-generic-3.7.1 root=/dev/md0 ro single 
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.7.1-whiz' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.1-whiz-advanced-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.7.1-whiz ...'
		linux	/vmlinuz-3.7.1-whiz root=/dev/md0 ro  vt.default_utf8=1
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.7.1-whiz (recovery mode)' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.1-whiz-recovery-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.7.1-whiz ...'
		linux	/vmlinuz-3.7.1-whiz root=/dev/md0 ro single 
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.6-rc5-whiz' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6-rc5-whiz-advanced-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.6-rc5-whiz ...'
		linux	/vmlinuz-3.6-rc5-whiz root=/dev/md0 ro  vt.default_utf8=1
	}
	menuentry 'Slackware-14.0 GNU/Linux, with Linux 3.6-rc5-whiz (recovery mode)' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6-rc5-whiz-recovery-7c2e5ea1-8aeb-465e-b175-f30f3620bf19' {
		load_video
		insmod gzio
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/37d1af2490f292f3d33fdb3fb442a055'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/37d1af2490f292f3d33fdb3fb442a055'  35e9880d-66f1-49a9-9798-e3239f049c9f
		else
		  search --no-floppy --fs-uuid --set=root 35e9880d-66f1-49a9-9798-e3239f049c9f
		fi
		echo	'Loading Linux 3.6-rc5-whiz ...'
		linux	/vmlinuz-3.6-rc5-whiz root=/dev/md0 ro single 
	}
}

### 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  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Last edited by whizje; 02-20-2013 at 06:55 PM.
 
Old 02-20-2013, 11:03 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I wouldn't use RAID0 anyway, because that's just striped without parity, so zero resiliency.
 
Old 02-22-2013, 01:58 PM   #10
cypher_zero
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Well, I had it working briefly after a list of changes that I really should have documented. Then I messed up my Mint install by messing around with ATI drivers and KDE (not sure which killed it) and went to re-install and I can't get it working again. I'm updating the main post with the updated setup of how I'm trying to do it now. I'll edit this post when I've finished editing the first post.

Thanks all for all your help so far!

EDIT: I've updated the first post with my current process as best i recall.

Last edited by cypher_zero; 02-22-2013 at 02:26 PM.
 
Old 02-22-2013, 02:52 PM   #11
cypher_zero
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Here is what I'm currently trying so that I don't have to go through the whole re-partitioning of the drives and such again:
Code:
sudo su
swapoff /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2
apt-get install -y mdadm
mdadm --assemble --scan
  mdadm: /dev/md/3 has been started with 4 drives
  mdadm: /dev/md/0 has been started with 4 drives
  mdadm: /dev/md2 has been started with 4 drives
  mdadm: /dev/md/1 has been started with 4 drives
swapon /dev/md3
mke2fs -t ext4 /dev/md0
mke2fs -t ext4 /dev/md1
mke2fs -t ext4 /dev/md2
Then continue from step 6 in first post
 
Old 02-22-2013, 04:09 PM   #12
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
What about grub-mkconfig after grub-install
Code:
grub-install --target=i386-pc --recheck --debug /dev/sda
bash-4.2# grub-mkconfig -o /boot/grub/grub.cfg
 
Old 02-22-2013, 04:14 PM   #13
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Could be that you have to add raid support to grub boot.
 
Old 02-22-2013, 04:19 PM   #14
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Here is a tip howto install mint with raid and this.

Last edited by whizje; 02-22-2013 at 04:25 PM.
 
Old 02-22-2013, 04:39 PM   #15
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Mount the critical virtual filesystems. Run the following as a single command:

for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

Chroot into your normal system device:

sudo chroot /mnt
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mint install booting into grub? golightly Linux Mint 4 10-09-2012 11:22 PM
Raid0, Mint 7, and Windows 7 ratiohack Linux - Newbie 3 09-05-2009 12:35 AM
Software raid0 & grub Braveheart1980 Linux - General 2 09-09-2007 09:46 PM
unable to install grub when installing Mint 3.0 holyct Ubuntu 1 08-29-2007 05:30 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 PM.

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