Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
crazyGamer313

mount as an autorun

Question

5 answers to this question

Recommended Posts

  • 0

Oh dear. I found the link you were talking about and I see what you mean :(

So I believe that the '...' stands for the drive GUID or its label

i.e. "277317a0-68b6-40ec-b264-d22fd76d23ff" <--- GUID

Or "277" <--- Default label

So seeing as my default label is "277", I can put the following in autorun.lua:

local fs = require("filesystem")
fs.mount("277", "/mnt/mainDrive")

Now I highly doubt your hard drive will have a label of "277". If you want to get the label of your hard drive you can type

'df'

Into the shell, as instructed in that link you mentioned earlier.

The one you're looking for is the one with the highest available space ;)

image.png.caa975a1383e91d2254753e823e39c22.png

An example if you're still confused...

 

Good luck :D 

 

Link to post
Share on other sites
  • 0
20 hours ago, Fictitious Rotor said:

Oh dear. I found the link you were talking about and I see what you mean :(

So I believe that the '...' stands for the drive GUID or its label

i.e. "277317a0-68b6-40ec-b264-d22fd76d23ff" <--- GUID

Or "277" <--- Default label

So seeing as my default label is "277", I can put the following in autorun.lua:


local fs = require("filesystem")
fs.mount("277", "/mnt/mainDrive")

Now I highly doubt your hard drive will have a label of "277". If you want to get the label of your hard drive you can type

'df'

Into the shell, as instructed in that link you mentioned earlier.

The one you're looking for is the one with the highest available space ;)

image.png.caa975a1383e91d2254753e823e39c22.png

An example if you're still confused...

 

Good luck :D 

 

dosnt work code layout http://prntscr.com/io6ylm

no error but isnt mounted on the directory

Link to post
Share on other sites
  • 0
49 minutes ago, crazyGamer313 said:

dosnt work code layout http://prntscr.com/io6ylm

no error but isnt mounted on the directory

In fact there IS an error - it's just you can't see it :P

Try doing 

local fs = require("filesystem")
print(fs.mount("T3", "/T3"))

And you'll see a different story!

 

So the reason this happens is that your main drive is already mounted at "/".

When you try to mount it at "/T3" then it complains...

An easy way to get around this it to mount it at "/mnt/T3" like so:

local fs = require("filesystem")
fs.mount("T3", "/mnt/T3")

Btw - you'll find that it's already in /mnt/ as well under a different name.

Try doing 

'ls /mnt/'

In the shell to see what you've got mounted there.

 

Good luck!

Link to post
Share on other sites
  • 0
38 minutes ago, Fictitious Rotor said:

In fact there IS an error - it's just you can't see it :P

Try doing 


local fs = require("filesystem")
print(fs.mount("T3", "/T3"))

And you'll see a different story!

 

So the reason this happens is that your main drive is already mounted at "/".

When you try to mount it at "/T3" then it complains...

An easy way to get around this it to mount it at "/mnt/T3" like so:


local fs = require("filesystem")
fs.mount("T3", "/mnt/T3")

Btw - you'll find that it's already in /mnt/ as well under a different name.

Try doing 

'ls /mnt/'

In the shell to see what you've got mounted there.

 

Good luck!

i dont know if it worked you can take a look http://prntscr.com/io8d14

Link to post
Share on other sites

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
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.