Linux Disks
Automatically mount the disk to the file system:
1
2
3
4
5
cat <<EOF >> /etc/fstab
/dev/sdc1 /media/share auto nosuid,nodev,nofail 0 0
/dev/sdb2 /media/share auto nosuid,nodev,nofail 0 0
/dev/sdd1 /media/share auto nosuid,nodev,nofail 0 0
EOF
Mount efs on reboot
1
@reboot mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport efs-production.convectbeheervpc.nl:/ /efs
List Disks
1
lsblk
Get Disk UUID
1
blkid
Set permanent disk mount
1
2
3
sudo nano /etc/fstab
UUID="6361-1CEF" /media/share/1T-001 ntfs nosuid,nodev,nofail 0 0
Disk Utility
1
sudo apt install smartmontools
Test disk
1
sudo smartctl -a /dev/sdX
Test disk speed
1
sudo dd if=/dev/sdX of=/tmp/test1.img bs=1G count=1 oflag=dsync
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.