Page 1 of 1

Formatting a usb Memory Stick

Posted: Wed Mar 19, 2014 11:37 am
by Smithy1980
Ok so i bought a couple of books for the Raspberry Pi. First one im starting is the one for kids as i thought i need things explaining in laymans terms. Anyway in this book it tells you how to take a usb memory stick and reformat it from FATX to something else the raspberry pi likes. Ive done all that and it seems to have worked putting my flash drive in the file manager and ive even been able to backup pygames. Ok onto my problem, so im learning how to write my first game code in leafpad. When i go to save file as i can select my usb flashdrive no problem and save, but when it comes to running the program on lx terminal it says that it cant find the file in the directory? but when i save it into the pi home it can run the programm. Why is this??? can anyone help. Id rather save it onto the pen drive as its more portable and has more space etc etc.

thanks

Re: Formatting a usb Memory Stick

Posted: Mon Mar 31, 2014 1:19 am
by elatllat
And the exact command was what?

Re: Formatting a usb Memory Stick

Posted: Mon Mar 31, 2014 2:03 am
by Tarcas
Smithy1980 wrote:When i go to save file as i can select my usb flashdrive no problem and save, but when it comes to running the program on lx terminal it says that it cant find the file in the directory?
Usually this is because you're sending the command as "filename" but you need to tell Linux where to look for that file. If you're in the directory, you can use "./filename" but if you're not, pass the whole path, eg "/mnt/thumbdrive/myprograms/filename" Of course you'll need to replace all the parts of these examples with the actual filename, and the actual path as applicable.
If this doesn't solve your problem, you'll need to give more details.