Jump to content

Where to put executables on USB?


isvein
Go to solution Solved by isvein,

Recommended Posts

Just now, isvein said:

Hello :)
I have  some linux executable files (SeaChestUtilities) that I want to put on the usb so I can use them without starting the array, but where on the usb should something like this go?

It is really up to you!

 

Files on the flash drive cannot have the executable bit set, so to use them you would need to add lines to the config/go file on the flash drive to copy them somewhere else during boot (probably something like /usr/local/sbin) and set the executable bit.

  • Upvote 1
Link to comment
  • Solution
23 minutes ago, itimpi said:

It is really up to you!

 

Files on the flash drive cannot have the executable bit set, so to use them you would need to add lines to the config/go file on the flash drive to copy them somewhere else during boot (probably something like /usr/local/sbin) and set the executable bit.

aha!
Would that be as simple as adding 2 lines that says
"cp *location on usb/file1 /usr/local/sbin"
"chmod +x "/usr/local/sbin/*filename*"

for each file?

Link to comment
3 minutes ago, isvein said:

aha!
Would that be as simple as adding 2 lines that says
"cp *location on usb/file1 /usr/local/sbin"
"chmod +x "/usr/local/sbin/*filename*"

for each file?

Yes.   

 

You could probably simplify it even further by putting them into a folder on the flash drive and copy the contents of that using wildcards.

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...