I am using Centos 7. I have a question. I have a NTFS formatted drive which I want to automount when I login. Right now I need to always click on the HDD name on my computer windows and entering root pass. Is this possible?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I suspect GNOME Disks will be too old to do this in CentOS, but it seems worth a look. Run the "Disks" app (maybe under a "utilities" menu), select your disk, then the ntfs partition (under Volumes), then click the cogs button under the partition. If there's an "Edit mount options", you can play with the GUI and do it that way. I'd suggest not mounting it automatically during boot if you don't need to, for sake of robustness and simplicity (otherwise I think you'd need a uid=youruser option for permissions).
In either case you will need to create the mount point.
mkdir /media/ntfs or so, as root/using sudo.
Without GNOME Disks, you can add a line to
/etc/fstab yourself. Caution: a mistake could break your boot process. You should identify the partition by UUID for robustness. (Particularly if it's a removable disk, though I don't know why it asks you for a root password in that case). Set the options
user,noauto to let you mount it yourself after boot:
UUID=xx /media/ntfs ntfs user,noauto 0 0
You can use
lsblk -f to list all hard drive partitions and their UUIDs. (E.g. when you took the screenshot it was sdc1, so look for the matching line and copy the UUID column).