sudo parted /dev/sdb
(parted) mklabel gpt (parted) mkpart logical 0 -1(parted) q
sudo mkfs.ext4 -F /dev/sdb1sudo mkdir /mnt/sdb1sudo mount /dev/sdb1 /mnt/sdb1
查看UUID
sudo blkid /dev/sdb1
编辑/etc/fstab
sudo vim /etc/fstab
添加
/dev/sdb1 /mnt/sdb1 ext4 defaults 0 0
或者
UUID=刚刚查出来的UUID /mnt/sdb1 ext4 defaults 0 0
来源:https://www.cnblogs.com/jacen789/p/12269571.html