Every time i boot into my kubuntu i run
sudo mount -t ntfs-3g /dev/sda3 /home/username/Ntfs/C/
sudo mount -t ntfs-3g /dev/sda4 /home/username/Ntfs/Other/
I wanted to automate it hence i used sudo crontab -e
and added the line @reboot /home/username/Ntfs/Mount.sh
to it
Then in konsole i ran sudo chmod 777 Mount.sh
at /home/username/Ntfs/Other/ dir
Contents of Mount.sh is as follows
sudo mount -t ntfs-3g /dev/sda3 /home/username/Ntfs/C/
sudo mount -t ntfs-3g /dev/sda4 /home/username/Ntfs/Other/
exit 0
Questions
- is it okay to mount ntfs drives inside my home dir......most guides suggested to mount them in /mnt/ dir
- is it necessary to put exit 0 at last of my script.
- because my script will anyway be executed with root privileges should i use sudo mount in the script also?
- why do we use the argument -t with mount
/etc/fstab
? Search for how to automatically mount ntfs in this site. – user68186 Nov 12 '20 at 17:28