Ask Your Question

Can't automount NTFS drive in Fedora 25

asked 2017-04-01 13:30:15 -0500

xsahajax gravatar image

Hello, I migrated from Windows to Fedora and one of my Data drives is NTFS. I want to automount it at startup, but unfortunately it doesn't work.

I tried to edit the /etc/fstab , but every time I add the drive on fstab it goes to emergency mode after reboot. Here's how my /etc/fstab looks like (I commented out the line so it doesn't crash the system):

# /etc/fstab
# Created by anaconda on Sat Apr  1 17:16:06 2017
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
/dev/mapper/fedora-root /                       ext4    defaults        1 1
UUID=287aa136-2d41-40e3-bb84-780cc2b0de65 /boot                   ext4    defaults        1 2
/dev/mapper/fedora-home /home                   ext4    defaults        1 2
/dev/mapper/fedora-swap swap                    swap    defaults        0 0

# NTFS formatted storage disk
#UUID=1A022B4B022B2AE9   /mnt/Data    ntfs defaults    0 2

When I mount it manually from Fedora it mounts at /run/media/user/Data so I tried using this location in the fstab as well but it went to emergency mode again.

I also tried the "Drives" utility but it inserted a line in fstab that didn't result in anything.

Here is my blkid:

/dev/sda1: UUID="287aa136-2d41-40e3-bb84-780cc2b0de65" TYPE="ext4" PARTUUID="466f129c-01"                                                                                                                      
/dev/sda2: UUID="UEjJHS-5HGQ-5DJK-LRVz-oxuc-OvJt-gjag1N" TYPE="LVM2_member" PARTUUID="466f129c-02"                                                                                                             
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="39f9ebf3-5631-41ba-ab84-e7f235084001"                                                                                                            
/dev/sdb2: LABEL="Data" UUID="1A022B4B022B2AE9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="87719cda-2b46-4feb-8d47-c4f4c7771d8a"                                                                   
/dev/mapper/fedora-root: UUID="043c12fe-0837-4f9a-9e2c-72d67303834c" TYPE="ext4"                                                                                                                               
/dev/mapper/fedora-swap: UUID="943f78b7-e57b-4b5c-b24f-11bfdc130078" TYPE="swap"                                                                                                                               
/dev/mapper/fedora-home: UUID="816b5c24-d2de-4d2f-a09f-cd90544d8998" TYPE="ext4"

And here is my mount -l

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=8201852k,nr_inodes=2050463,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-02 00:25:42 -0500

vtrefny gravatar image

Are there any information in journal (after booting with the fstab line uncommented)? Some error message could be helpful.

Try to uncomment the line and run mount /mnt/Data -- doesthis workor does it show an error?

Try to disable the fs check when mounting (change the 0 2 to 0 0 in fstab).

Try to run sudo fsck /dev/sdb2 to check the fs for errors that might be preventing the mount.

edit flag offensive delete link more



Thank you about telling me about the journal. When I ran journalctl -b during emergency boot I found that I hadn't created the directory /mnt/Data and there wasn't a mount point. For some reason I thought that 'mount' was creating the directory on demand. Probably the stupidest mistake ever.

xsahajax gravatar imagexsahajax ( 2017-04-02 01:01:53 -0500 )edit

Question Tools


Asked: 2017-04-01 13:30:15 -0500

Seen: 934 times

Last updated: Apr 02 '17