Step0: format your disk to ext4
Step1: find the disk UUID
Step2: register the disk in fstab by using any editor, e.g., vim.
Then reboot it will auto mount.
sudo mkfs.ext4 /dev/yourdisk
Step1: find the disk UUID
sudo blkid /dev/yourdisk
Step2: register the disk in fstab by using any editor, e.g., vim.
sudo vim /etc/fstab
then add one line into the file
#device mountpoint fstype options dump fsck
yourdiskUUID /mount_directory ext4 defaults 0 1
Then reboot it will auto mount.
Comments
Post a Comment