Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #220981
| From | <tomas@tuxteam.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: cannot execute make-fstab in Debian? |
| Date | 2020-04-06 12:50 +0200 |
| Message-ID | <zSxui-1Eh-21@gated-at.bofh.it> (permalink) |
| References | <zSwHT-183-3@gated-at.bofh.it> <zSwRA-1qM-7@gated-at.bofh.it> <zSxkC-1AD-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
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
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cannot execute make-fstab in Debian? kaye n <guikaye@gmail.com> - 2020-04-06 12:00 +0200
Re: cannot execute make-fstab in Debian? <tomas@tuxteam.de> - 2020-04-06 12:10 +0200
Re: cannot execute make-fstab in Debian? kaye n <guikaye@gmail.com> - 2020-04-06 12:40 +0200
Re: cannot execute make-fstab in Debian? <tomas@tuxteam.de> - 2020-04-06 12:50 +0200
Re: cannot execute make-fstab in Debian? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-06 13:40 +0200
Re: cannot execute make-fstab in Debian? <tomas@tuxteam.de> - 2020-04-06 13:50 +0200
Re: cannot execute make-fstab in Debian? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-06 13:30 +0200
Re: cannot execute make-fstab in Debian? <tomas@tuxteam.de> - 2020-04-06 13:40 +0200
Re: cannot execute make-fstab in Debian? kaye n <guikaye@gmail.com> - 2020-04-06 21:20 +0200
Re: cannot execute make-fstab in Debian? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-07 10:00 +0200
Re: cannot execute make-fstab in Debian? kaye n <guikaye@gmail.com> - 2020-04-07 19:40 +0200
Re: cannot execute make-fstab in Debian? <tomas@tuxteam.de> - 2020-04-07 20:50 +0200
Re: cannot execute make-fstab in Debian? Greg Wooledge <wooledg@eeg.ccf.org> - 2020-04-07 21:00 +0200
Re: cannot execute make-fstab in Debian? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-08 08:40 +0200
csiph-web