Advertisement
Minty95

systemd auto mount_1

Apr 24th, 2020
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. I Did this
  2. lsblk -no UUID /dev/sdd1
  3. 05f95497-d25e-4c19-a1d4-257b2fe4242c
  4.  
  5. I've created a folder /media/BackUp_1 -(unsure about this and if I need it)
  6. (30 years in windows, I still think, in files, folders and discs....) and not everything as a file, only 4 months in Linux
  7.  
  8.  
  9. Can I now do a
  10. $ sudo touch /etc/systemd/system/media-BackUp_1.mount
  11. then
  12. $ xed admin:/etc/systemd/system/media-BackUp_1.mount
  13. and add my template underneath
  14.  
  15. [Unit]
  16. Description=Mount Backup_1 (/media/BackUp_1)
  17.  
  18. [Mount]
  19. What=/dev/sdd1/by-uuid/05f95497-d25e-4c19-a1d4-257b2fe4242c
  20. Where=/media/BackUp_1
  21. Type=xfs
  22. Options=defaults,rw,noatime
  23.  
  24. [Install]
  25. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement