jmarsh wrote on 2021-07-01, 06:03:
darry wrote on 2021-07-01, 00:02:
I agree . However, this is likely not the issue in this specific case, as if the cue file and bin/img file are in the same directory and the cue file gets read, but the bin/img file does not, the directory permissions are not the issue . The permissions of the bin/img file could be a problem, but the OP already mentioned checking those (no harm in double-checking).
You apparently missed the part where I said the data files get stat'd. That requires execute permission on the directory. It is not performed on the cue file.
I've been a DOSBox developer for the past three years and have encountered this problem before. Please stop assuming I don't know what I'm talking about.
I am not assuming anything about either this issue or about you . I actually tested it . I also included the output in Dosbox when the mount attempt fails due to lack of execute permission on the folder containing the cue and img files . As you can see, the error is not the one that the OP is reporting . I was running Dosbox's graphical output redireced to an X server running under Windows (Xming) while testing, which explains the Windows-like GUI elements .
After running chmod o+x on /srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple and starting dosbox and trying to mount cue :
bob@openmediavault:/srv/dev-disk-by-label-DATA3/DATA3_rw/temp$ strace dosbox 2>&1 | egrep "popple.cue|popple.img"
stat("/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.cue", {st_mode=S_IFREG|0664, st_size=769, ...}) = 0
stat("/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.cue", {st_mode=S_IFREG|0664, st_size=769, ...}) = 0
openat(AT_FDCWD, "/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.cue", O_RDONLY) = 10
read(10, "FILE \"popple.img\" BINARY\r\n TRAC"..., 8191) = 769
stat("popple.img", 0x7ffc67456550) = -1 ENOENT (No such file or directory)
stat("/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.img", {st_mode=S_IFREG|0664, st_size=598318224, ...}) = 0
openat(AT_FDCWD, "/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.img", O_RDONLY) = 11
openat(AT_FDCWD, "/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.cue", O_RDONLY) = 10
read(10, "FILE \"popple.img\" BINARY\r\n TRAC"..., 8191) = 769
stat("popple.img", 0x7ffc67456600) = -1 ENOENT (No such file or directory)
stat("/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.img", {st_mode=S_IFREG|0664, st_size=598318224, ...}) = 0
openat(AT_FDCWD, "/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.img", O_RDONLY) = 12
After running chmod o-x on /srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple and starting dosbox and trying to mount cue :
bob@openmediavault:/srv/dev-disk-by-label-DATA3/DATA3_rw/temp$ strace dosbox 2>&1 | egrep "popple.cue|popple.img"
stat("/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.cue", 0x7ffcbb26c9b0) = -1 EACCES (Permission denied)
stat("/srv/dev-disk-by-label-DATA3/DATA3_rw/temp/popple/popple.cue", 0x7ffcbb26c9b0) = -1 EACCES (Permission denied)
The attachment output.png is no longer available
EDIT: Corrected typo