fstab device ID not setup, restarts breaking system #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
use blkid to find UUID and use that instead of /dev/sdf , /dev/sdd, /dev/sdg, etc.
lsblk to list drives/devices
nano /etc/fstab
Can I figure out a single command to implement device id into fstab instead of copying and pasting from 2 terminals. (not possible when i'm sitting at a server with 1 screen and no mouse especially)
blkid -o value -s UUID >> /etc/fstabThis line appends ALL UUIDs to the end of fstab. Just delete the ones you don't want and go from there.
With awk
# blkid | awk '{print $2" /part/"NR" ext4 acl,rw,noatime 0 2"}'Without awk
One of these should work for terminal only users.
Copy of fstab now:
(redacted)
Should be fixed, haven't restarted server to check.
Have restarted and can confirm no issues anymore. Even mounted a new drive using HD ID for /srv/samba/media/games folder.