Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 12682  / 2 Years ago, thu, september 1, 2022, 2:04:46

I've found out two ways to automount a NTFS partition on Ubuntu start up.




  1. File /etc/rc.local:



    mount -t ntfs /dev/sda8 /mnt/data/

  2. Or by fstab:



    UUID=1C02CB8502CB627E /media/data/ ntfs defaults 0 0



    • Is there any difference between them?

    • Is one more recommended than other? Which should I choose?



More From » ntfs

 Answers
2

Use the fstab; that is the standard place for automatically mounting volumes.



rc scripts are intended to be used for running generic startup commands and launching startup services.



As a side note, you don't have to use the UUID in the fstab if you really don't want to, it should work equally as well using /dev/sda8


[#39447] Friday, September 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rontablis

Total Points: 293
Total Questions: 123
Total Answers: 104

Location: Austria
Member since Mon, Mar 1, 2021
3 Years ago
;