SoftwareRAID 0 on SereneLinux (Ubuntu 18.04 Desktop)

A reminder to install Serene Linux on RAID 0. I think that RAID1 can be done depending on the application.

About Serene Linux

It is ubuntu 18.04 based Linux developed by Japanese. Serene Linux Home Page

Building RAID0

About building RAID0. This time, we will use RAID0 created by mdadm as the root partition.

Create 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.

Create RAID

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". ** **

Post-installation settings

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
Here, if mdadm installation fails
$ 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. ↓

Why did you decide to do this? ** In summary, it's because of intel and NEC. ** ** I have intel wifi on my laptop, which is the worst compatibility with NEC routers. For some reason it was okay for windows, but I tried Arch, Fedora, and debian, but ** the wifi runs out when I use the internet. ** This is still acceptable. However, ** for some reason, the router will not be able to connect to the Internet unless the router is restarted **, which causes a rather dangerous problem. (For some reason ubuntu was okay, so now I'm using ubuntu-based Serene Linux.) (I personally think that the kernel is the cause.) How about using the Server version? Well, like this, ** The installer doesn't recognize wifi, new or old. ** ** So I decided to do something like this. Let's all be careful about compatibility issues. ### Impressions of Serene Linux
  • light -** I thought Setup and Startdash were good for Linux beginners. ** **

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 ~~)

Just selfish

I hope you can easily RAID both ubuntu and desktop version like Fedora.


Recommended Posts