Skip to content

Linux

Terminal window
ssh user@ip
DISPLAY=:0 chromium

Format a USB key (exFat is compatible with all OS)

Section titled “Format a USB key (exFat is compatible with all OS)”
Terminal window
diskutil eraseDisk ExFAT {NAME_OF_USB_STICK} /dev/disk{X}
  • List existing disk
Terminal window
fdisk -l
  • Get info about existing RAID
Terminal window
cat /proc/mdstat
  • Get more info about a specific RAID
Terminal window
mdadm --detail /dev/md0
  • Improve the speed of RAID creation
Terminal window
sysctl -w dev.raid.speed_limit_max=1000000
  • Create the RAID with 4 disks:
Terminal window
mdadm --create /dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
  • Format the RAID volume as a partition
Terminal window
mkfs.ext4 /dev/md0
  • Mount the RAID volume as a partition
Terminal window
mount /dev/md0 /mnt
  • To ensure that the RAID configuration is saved and can be reassembled at boot, save the configuration:
Terminal window
mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf

!> Important /!\ Verifiy the /etc/mdadm/mdadm.conf file that the config does not contains duplicate /!\

  • Update the initial RAM filesystem so that the RAID array is recognized at boot:
Terminal window
update-initramfs -u