You are not logged in.
I've danced about with permissions and file locations all over the place and can't seem to figure this out. Now, the problem only started after I rebuilt my kernel with autofs support, though I don't know whether that's a coincidence or not, since reversing the changes to the kernel doesn't fix the problem.
I have an NTFS drive shared between Windows and Arch, and on that NTFS drive are my firefox and thunderbird profiles, also shared between both. Thunderbird is just peachy, working fine as it always has. However, last night firefox suddenly started complaining that bookmarks and history wouldn't be available because something else was using a file. I've been through the "rebuilding places.sqlite" process without it rectifying. On a hunch I copied the profile folder to /home (on a separate ext4 partition) and restarted firefox with a new profile pointing to the copied profile. It worked just fine and addons, bookmarks etc were all present.
Now, here's where it gets odd. If I delete the original profile folder on the NTFS drive and try to copy the ext4 version bak, only directories copy, but no files. Terminal output is "file does not exist" for all the files. So basically, I finish up with a profile folder containg the directory structure, but nothing else.
I've tried deleting and re-creating the mount point for the NTFS drive, and I've checked the permissions (fully accessible to everyone). No problems with any other folders on teh ntfs drive, and the thunderbird profile on the same ntfs drive is just fine. however, trying to create any files results in an error. It stikes me as odd that Thunderbird has no problems but i can't even crate a simple file via the terminal.
(12:42)/mnt/Data$ touch test
touch: cannot touch ‘test’: No such file or directorycontents of /mnt are
drwxr-xr-x 6 root 4.0K Jul 27 20:58 .
drwxr-xr-x 23 root 4.0K Jul 25 22:52 ..
drwxrwxrwx 1 root 48K Jul 28 12:42 Data
drwxr-xr-x 2 root 4.0K May 30 15:25 phone
drwxr-xr-x 2 root 4.0K Feb 4 15:20 Vids
drwxr-xr-x 2 root 4.0K Feb 4 15:20 Workonly Data is mounted (the others are placeholders for truecrypt/occasionally mounted drives)
I'm now out of ideas. Anyone know what's happened to my NTFS drive?
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
Do you have ntfs-3g installed?
Offline
I have - as I said, other access to the drive works fine, and I can create/copy directories, but not files.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
Post your fstab.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
UUID=f45df8b0-fc6c-4358-acd0-b1fdd6d1e5f6 /boot ext4 defaults 0 1
UUID=f0dd0c3e-10b6-4abd-a65c-e360aad0977a / ext4 defaults 0 1
#Entry for /dev/sda3 :
UUID=1b0bdeb4-5ccc-4975-a9f9-b259e3123d37 /home ext4 defaults,user_xattr 0 2
#entry for swap on /dev/sda2
UUID=eaafcd50-3c2f-4b5f-bf98-2292e1e5cf1b none swap sw 0 0
#Entry for /dev/sdc1 :
UUID=D26C2D0C6C2CECC3 /mnt/Data ntfs-3g gid=users,fmask=113,dmask=002 00Now, things are getting stranger. I can edit and save files that already exist on the drive, but I can't create new files. Nor can root (or any user for that matter - vbox etc.) I've already booted Windows and done a full chkdisk /F /R on it. I have no problem creating files on the drive in Windows. SMART reports the drive as healthy. I'm sure it's not a hardware issue. As mentioned, I can create a new directory, but not a file. The same result applies whether I boot systemd or init. It worked fine until last night, and the only change I can think of is that I re-built the kernel with autofs support. However, there's nothing in auto.master or auto.misc that should affect this drive.
I've been battling with this for the past 5 hours now, and getting nowhere. It's driving me nuts.
Incidentally, fmask and dmask in fstab make no difference. I've tried without them, too, and only put them in as recommended by the Arch wiki. Similarly, gid=users is new since the problem started, and neither helps nor hinders in this case.
EDIT: I've also tried unmounting and mounting manually busing both mount and ntfs-3g directly. Same result.
Last edited by Roken (2012-07-28 20:41:04)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
It worked fine until last night, and the only change I can think of is that I re-built the kernel with autofs support.
Does the problem go away if you use your previous kernel or any from the repos at least?
Offline
Well I'll be damned. Using teh stock kernel the problem goes away.
Now, what on earth has changed, and more to the point, what new kernel config option do I need to change. I always start with the same base config file for kernel builds, which has worked without issue for months. After the autofs trial yesterday I eliminated (so I thought) kernel problems by rebuilding with an unmodified version of my .config file that has previously worked, so something new has come along.
Any ideas what it may be?
And thank you for making me double check what I'd already eliminated. I wouldn't have actually gone back and re-checked that ![]()
Last edited by Roken (2012-07-28 21:37:04)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
Ugly, ugly fstab... Get rid of the comments and align them properly using spaces and the Tab key (like the examples from the fstab wiki page).
Only the "/" partition needs "1" at the end. Everything else should have "2" or "0".
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Well I'll be damned. Using teh stock kernel the problem goes away.
Now, what on earth has changed, and more to the point, what new kernel config option do I need to change. I always start with the same base config file for kernel builds, which has worked without issue for months. After the autofs trial yesterday I eliminated (so I thought) kernel problems by rebuilding with an unmodified version of my .config file that has previously worked, so something new has come along.
Any ideas what it may be?
And thank you for making me double check what I'd already eliminated. I wouldn't have actually gone back and re-checked that
Yep same problem, same cause. I'm using linux-mainline from AUR and the symptoms are identical.
Folks, any ideas?
Last edited by dcc24 (2012-08-13 15:20:48)
It is better to keep your mouth shut and be thought a fool than to open it and remove all doubt. (Mark Twain)
Offline
It's a fuse bug in the kernel. It's still in testing, but this patch from the fuse kernel module dev has fixed it here: (EDIT: Not marked the topic as solved until the patch is committed to git)
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 8964cf3..7c6c808 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -405,7 +405,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry,
memset(&inarg, 0, sizeof(inarg));
memset(&outentry, 0, sizeof(outentry));
inarg.flags = flags;
- inarg.mode = mode;
+ inarg.mode = mode | S_IFREG; /* Userspace expects S_IFREG */
inarg.umask = current_umask();
req->in.h.opcode = FUSE_CREATE;
req->in.h.nodeid = get_node_id(dir);Last edited by Roken (2012-08-13 19:12:43)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline