A reminder to install Serene Linux on RAID 0. I think that RAID1 can be done depending on the application.
It is ubuntu 18.04 based Linux developed by Japanese. Serene Linux Home Page
About building RAID0. This time, we will use RAID0 created by mdadm as the root partition.
This time, we will build a RAID with 128GB and 120GB SSDs. For RAID0, the required partitions are the following three. ** (Please check separately for RAID1.) **
--EFI partition --Boot partition --RAID partition
This time, the 128GB SSD is divided as follows.
--EFI partition 128MiB --Boot partition 700MiB --All remaining for RAID
All 120GB partitions are used as RAID partitions. This time I created it with Gparted.
--When creating an EFI partition, create it with FAT32 and set the flag to boot, esp. --Create the boot partition with EXT4.
Most ubuntu-based LiveCDs don't include mdadm. So first, install mdadm.
$ sudo apt update && sudo apt install mdadm
Next, build a RAID.
$ sudo mdadm -C /dev/md0 -l[RAID level] -n[Number of devices] [Partition for RAID 1] [Partition for RAID 2]
For RAID0, set the number after "-l" to "0". When building a RAID with two disks, use the number after "-n" as the number of disks. Specify the partition to be used for RAID after "-n". This time, I formatted the created RAID0 with XFS. Use the file system of your choice. (If you don't know, EXT4 is safe.)
Start the installer and follow the instructions to install. When you're done, select ** "Continue trial". ** **
If you reboot as it is, it will not boot, so you need to mess with the system before rebooting. Prepare to mess with the system with chroot.
$ sudo mount [Created root partition] /mnt
$ sudo mount [Created boot partition] /mnt/boot
$ sudo mount [Created EFI partition] /mnt/boot/efi
$ sudo mount -t proc none /mnt/proc
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /sys /mnt/sys
$ sudo mount --bind /run /mnt/run
Enter the system as a chroot.
$ sudo chroot /mnt
Install mdadm.
# apt update && apt install mdadm
$ sudo cp /etc/resolv.conf /mnt/etc
Getting out of the </ div> chroot and running the above command may succeed. </ details>
Once out of chroot, edit /mnt/etc/mdadm/mdadm.conf.
$ sudo mdadm -D --scan >> /mnt/etc/mdadm/mdadm.conf
Enter chroot again
$ sudo chroot /mnt
Update the initramfs and install grub.
# update-initramfs -u && grub-install [EFI partition]
Now reboot and start it and you're good to go.
~~ Honestly, does anyone use RAID0 as the root partition? ~~ Q: Why don't you use ubuntu server, Fedora or Arch in the first place? A: It's long, so please see only those who want to know. ↓
Until now, I've used ubuntu, zorin, Pop! _Os, etc., but it's not gnome, so it's light. There are also xfce desktop distros such as zorin lite and xubuntu, but zorin lite had a problem that the main feature zorin appearance could not be used. (I stopped because the colors didn't match in the first place. (Dark + blue is hard to see.)) Personally, I'm happy that the number of stylish xfce distros has increased. (~~ xubuntu was crap, so it's out of the question ~~)
I hope you can easily RAID both ubuntu and desktop version like Fedora.
http://blog.seishiono.net/entry/2014/05/03/223948 https://askubuntu.com/questions/469209/how-to-resolve-hostnames-in-chroot https://wiki.archlinux.org/index.php/Chroot#Using_chroot https://ankyo.blog.ss-blog.jp/2011-10-24
Recommended Posts