Contet
1. How to upgrate to 20.04
https://ubuntu.com/blog/how-to-upgrade-from-ubuntu-18-04-lts-to-20-04-lts-today
2. How to set raid0
https://www.tecmint.com/create-raid0-in-linux/
https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-18-04
some history commands when setting raid0:
sudo fdisk /dev/sdd
sudo fdisk /dev/sde
sudo fdisk /dev/sdb
sudo mdadm -C /dev/md0 -l raid0 -n 5 /dev/sd[b-f]
cat /proc/mdstat
lsblk
sudo mkfs.ext4 -F /dev/md0
sudo mkdir -p /mnt/md0
sudo mount /dev/md0 /mnt/md0
df -h
vim /etc/mdadm/mdadm.conf
sudo mdadm -detail -scan | sudo tee -a /etc/mdadm/mdadm.conf
sudo update-initramfs -u
sudo reboot
lsblk
3. how to disable sleep mode(never sleep)
https://blog.csdn.net/m0_52650517/article/details/119811966
check sleep.target status:
systemctl status sleep.target
close auto sleep function
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
check sleep.target status again:
systemctl status sleep.target
4. How to check UUID
~$ ls -l /dev/disk/by-uuid/
5. Quota
5.1 set quota
sudo setquota -u zhengli 50G 1050G 0 0 /data
Note: 50G is for /users/zhengli
1050G is for /data/zhengli
5.2 get quota(1)
~$ sudo quota -u zhengli
5.3 get quota(2)
~$ sudo repquota -s /users/
5.4 get quota(3)
~$ sudo repquota -a
5.5 enable/disable quota
~$ sudo quotaoff /data
6. How to set swapfile
https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-20-04/
check swap file size:
~$ free -h
7. How to solve unmet issue when using apt-get
if apt-get meet some unmet issue, you can use aptitude
“sudo apt-get install libc6-i386”, meet unmet issue
“sudo apt-get install libc6-i386”, OK
8. Others
T.B.D.