On Mon, Apr 06, 2020 at 06:30:02PM +0800, kaye n wrote:
> Sorry about that.  I should have tested it first.
> 
> What I'm trying to achieve is to be able to save files and to run
> executable files (like  .sh file) from an NTFS partition of the hard drive,
> as well as from a USB flash drive.
> 
> It seems that in Debian, I can already do that in an NTFS partition of the
> hard drive, can you confirm?

If it is mounted, yes.

> As for the flash drive, I have to add this line to the /etc/fstab file (so
> I can run .sh files from the flash drive)
> 
> *UUID=2E7B-BA02   /media/myflashdrive   vfat
> user,rw,noauto,uid=1000,gid=users,umask=0,dmask=0,fmask=0,users,exec,x-systemd.device-timeout=5s,
> 0    0 *

It looks right to me (I asume the asterisks at the start and end
of the line are added by you for emphasis)

Note that you don't /have/ to add something to the fstab
to have it mounted. It'd make sense if you plan to mount
this specific media often, though.

> In the other distro, I would delete the existing /etc/fstab file, execute 
> *sudo
> make-fstab* in order to generate a new fstab file, and in that fstab file
> there would be a line for the flash drive.

That means that "make-fstab" would construct an fstab from the currently
mounted devices? I can't help it, that sounds somewhat daredevil to me.
But of course, each one gets to choose her own thrills ;-D

>                                             I would then edit that line to
> make it look like the one above so that I can run .sh files from the flash
> drive.

Ah, that's why the exec option is up there, OK.

> As make-fstab command doesn't exist in Debian, I just added the above line
> to /etc/fstab and it seems to have solved the problem.  But can you confirm
> that line as well? I'm not an expet.

Yes, it looks fine to me. But, as I said, if it's not a frequent operation,
you might want to either mount manually or let some automounter do the
job for you (most desktop environments do the latter).

Me? I prefer to mount manually: when lights get out, I at least get some
direct feedback on my actions ;-)

Cheers
-- tomás

Attachment: signature.asc
Description: Digital signature

Reply via email to