Question: How to run executable file from a usb drive?

Forum Forums New users New Users and General Questions Question: How to run executable file from a usb drive?

  • This topic has 16 replies, 6 voices, and was last updated Dec 18-2:53 pm by anticapitalista.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #47637
    Anonymous
      Helpful
      Up
      0
      ::

      > Feel free to start a new thread to share your tips and tricks on using diskless system.

      https://www.antixforum.com/forums/topic/antix-live-remaster-collected-usage-tips-observations-options

      #47678
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        Thanks for the hint, Xecure! Now I can connect the dots!

        > noauto,exec,users

        sybok, what you mention seems exactly correct, matches the details explained in the mount manpage

        users
        Allow any user to mount and to unmount the filesystem, even when some other ordinary user mounted it.
        This option implies the options noexec, nosuid, and nodev
        (unless overridden by subsequent options, as in the option line users,exec,dev,suid).

        Did you follow the hint and replaced the order of the fstab items noauto,exec,users to users,noauto,exec?
        It should look like this:

        # Added by make-fstab /dev/sdb1  label=Live-usb
        UUID=739e04d0-16b3-4072-8144-0ff2fab39f31  /media/Live-usb                             ext4       users,noauto,exec               0 0

        Manually modifying the parameters order in /etc/fstab to “noauto,users,exec” does solve the problem, for an already-booted Live antiX system.

        So, the follow-up question would be, where did that incorrect order come from? Per the same hint, it was generated by make-fstab. So, now I believe the real root cause – or I called it the “flip switch” – is in this line: https://gitlab.com/antiX-Linux/Live-initrd-1/-/blob/master/bin/make-fstab#L37

        I will send have sent out a pull request in that repo, and hopefully @AntiCapitalista would notice this conversation and/or that pull request, because my earlier another pull request in that repo did not yet get much attention.

        Thank you all!

        Fixed in repo. Note: Use this one now as it is up to date: https://gitlab.com/antiX-Linux/live-initrd.gz

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

      Viewing 2 posts - 16 through 17 (of 17 total)
      • You must be logged in to reply to this topic.