Fstab and ntfs-3g

Hello,

So I'm trying to use my C7 V2 as file server by connecting 2 NTFS disks to it. I had that previously working, but it seems I'm messing something after upgrading to 21.02.1. I retained the configuration, which was already working, and to the best of my knowledge, I reinstalled the necessary package.

etc/config/fstab reads the following

config global
	option anon_swap '0'
	option anon_mount '0'
	option auto_swap '1'
	option auto_mount '1'
	option delay_root '5'
	option check_fs '0'

config mount
	option target '/mnt/MV'
	option uuid 'C2FC4BDDFC4BC9FD'
	option enabled '1'
	option fstype 'ntfs-3g'
	option options 'rw,sync'

This doesn't mount the disk.

Though, the following works:

ntfs-3g /dev/sda1 /mnt/MV -o rw,sync

Am I missing something?

Test your config like this:

block umount
block mount

It could be a timing issue.

1 Like

Thanks

root@C7:~# block umount
root@C7:~# block mount
block: No "mount.ntfs" utility available
block: mounting /dev/sda1 (ntfs) as /mnt/MV failed (2) - No such file or directory

I installed kmod-fs-ntfs, reduced fstab to

config global
	option anon_swap '0'
	option anon_mount '0'
	option auto_swap '1'
	option auto_mount '1'
	option delay_root '5'
	option check_fs '0'

config mount
	option target '/mnt/MV'
	option uuid 'C2FC4BDDFC4BC9FD'
	option enabled '1'

and restarted.

root@C7:~# block mount
block: mounting /dev/sda1 (ntfs) as /mnt/MV failed (22) - Invalid argument

Since you’re on 21.02.1 check if kmod-fs-antfs is available, if it is try removing ntfs-3g and installing kmod-fs-antfs and antfs-mount, it’s r/w and seems to work much better than ntfs-3g.

1 Like

That worked! Thanks. Not sure why the ntfs-3g didn't work, as it's the same router and same settings I had before updating (unless I forgot a package or installed a conflicting one).

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.