When the mounting is unsuccessful, you need to format it (operate with caution, generally the new hard disk needs to be formatted for the first time, and other disks with data do not need to be formatted):
sudo mkfs.ext4 /dev/sda
然后再挂载
Add auto-start mounting at boot
vim /etc/fstab
在最后一行加入
/dev/sda /data ext4 defaults 0 0