[Resolved] 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):
Issue is with the space in "New Volume", I bet. Should likely be /media/lucky/New\ Volume
Or, I vaguely remember having to add like \040 or something in place of the space. I've dealt with this in the past... And found it easier to use a "-" instead of a space... Or no space at all, obviously.
sometimes there are those times when you've been at it for 6-8 hours straight with no break, and you keep staring at that one line in your config, trying so hard to see this mistake. is it a comma out of place? did i missplell something? no? and you're staring at it so long that you just don't see the glaringly obvious:
***New Volume***
it's that one remnant that you probably copy/pasted from a tutorial page and you're too brain-fried to consider that it's a part of the line you should have changed, so you're not looking at it, but there it is. but, hey, that's why forums like this exist: to get a fresh pair of eyes on the problem.
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.
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.
That REALLY doesn’t seem like a good idea considering that *'s are wildcards for anything, and Linux isn’t really fond of spaces.
There are no asterisks in the fstab file. I put them here to emphasize the name of the hdd (I edited my original post to remove them to avoid confusing people).
Also do you have a lib or something for linux to handle NTFS file system types?
I'm using the ntfs-3g driver.
Btw this is what the entry on fstab looks like now but I'm still getting the parsing error: