Skip Navigation

Debian 12: trying to auto-mount a NTFS-formatted hard drive by making an entry in fstab. Getting the error "mount: /etc/fstab: parse error at line 18 -- ignored"

Here's the entry in the fstab file for mounting my hard drive. I have bolded the name of the hard drive (that's what it shows up as on the dock when it isn't mounted):

 undefined
    
UUID=D4C0A66EC0A65710 /media/lucky/New Volume ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000    0   0

  

After making that entry in fstab, I execute the, systemctl daemon-reload, command, and then mount -a, afterwards which gives me this error.

9 comments
  • You've made a directory path literally called

    /media/lucky/New Volume

    ?

    That REALLY doesn't seem like a good idea considering that *'s are wildcards for anything, and Linux isn't really fond of spaces.

    The error basically tells you that you have an error on line 18, which I'm assuming is this line you're stating and that it's ignored that line so that it can still go on and mount other things.

    Most likely you'd want something like:

    # mkdir /media/lucky/NewVol

    and then your fstab would be:

    UUID=D4C0A66EC0A65710 /media/lucky/NewVol ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000 0 0

    Also do you have a lib or something for linux to handle NTFS file system types? I haven't run Windows in 17 years now, so I don't have a clue if Linux can natively handle NTFS.

    You can also run:

    # lsblk

    or

    # blkid

    to get the storage information and verify the storage UUID is correct.

9 comments