*****************************************************************************
Please read all comments before just running commands - Make sure you understand what you are doing before doing it
To install mint 17 to a mdadm raid array (existing) -
Code: Select all
mint@mint:~ $ sudo su -
root@mint:~ # apt-get install mdadm
Code: Select all
root@mint:~ # mdadm --assemble --scan
Now from this point, if you tried to run the installer, it will show you the raid drive(s) and will seem like all is well. It will fail when it goes to install grub-efi-amd64-signed because the chroot it created to install to does not have mdadm installed, and the installer will bail out, not finishing the install process including cleanup.
To avoid this mess, launch the installer from the command line with the option -b.
Open a terminal (on most systems, CTRL-ALT-T is a shortcut for this, otherwise open Mate Terminal) and then run the following:
Code: Select all
root@mint:~ # ubiquity -b
Next you will need to do the manual chroot setup / install of grub.
Code: Select all
root@mint:~ # mount /dev/md127p1 /mnt; mount /dev/sda2 /mnt/boot/efi
root@mint:~ # for i in /dev /dev/pts /sys /proc; do mount --bind $i /mnt$i; done
root@mint:~ # echo "nameserver 4.2.2.4" > /mnt/etc/resolv.conf
root@mint:~ # chroot /mnt
Assuming that /dev/md127p1 is my / raid partition (yours could be different)
/dev/sda2 is my EFI boot partition (which mounts at /boot/efi normally) (yours could be different)
/mnt is an empty folder which exists, functioning as our place to "build" our directory structure for the new system. You could use any folder which exists, and replace /mnt in the following commands with the full path to the folder you choose.
The following line:
Code: Select all
root@mint:~ # mount /dev/md127p1 /mnt; mount /dev/sda2 /mnt/boot/efi
/dev/sda2 would change to whatever partition you set for your EFI boot partiton
The following:
Code: Select all
root@mint:~ # for i in /dev /dev/pts /sys /proc; do mount --bind $i /mnt$i; done
The following:
Code: Select all
root@mint:~ # echo "nameserver 4.2.2.4" > /mnt/etc/resolv.conf
The following:
Code: Select all
root@mint:~ # chroot /mnt
man pages are a great resource for finding out about commands as well, if what I have said does not make sense...
e.g.
Code: Select all
$ man chroot
$ man mount
At this point, you should be looking at the directory structure of your new install on your new drive (PLEASE remember to replace the devices, including the raid devices with names that fit your system) I figure if you are following this, you are at least a little knowledgeable about these kinds of things.
Next install mdadm into your chroot:
Code: Select all
root@mint:/ # apt-get install mdadm
...
root@mint:/ # apt-get install shim-signed grub-efi-amd64-signed
Code: Select all
root@mint:/ # exit
root@mint:~ #for i in dev/pts dev sys proc; do umount /mnt/$i; done
root@mint:~ # exit
mint@mint:~ $
Then you should be ready to install grub to your /dev/sda (fill in the proper device for your system)
this should match whatever you have as your boot drive. It could be /dev/sdb or /dev/sdc etc...
Code: Select all
mint@mint:~ $ sudo grub-install /dev/sda
Hope this helps!