[NB. The modification will only work for early 70x models without updates]
Files in the SD or USB are owned by ROOT and have the default permission set to 666 which everybody can read or write but not execute.
To change this behaviour,
http://forum.eeeuser.com/viewtopic.php?id=954 credit goes to Damaniel
For later EeePC models and early 70x models after updates, the above modification will no longer work. The only solution is to edit the binary file /usr/bin/usbstorageapplet. This can be done with KHexEdit.
Basically, we are doing the same thing: replace “noexec” to ” exec” and fmask from “111” to “000” for the lines with *FAT* and *msdos* at the beginning. However, for executable binaries, the size of the string is VERY important. So you do not just delete the “no”, but has to replace it with 2 spaces. Likewise, we do not replace “111” with “0”, but with “000”. So, it is important you back up this file first before you proceed to edit it. [NB. In addition, you can also edit the same for the line beginning “ufsd”. This is for ntfs partitions.]
Backing up the original usbstorageapplet is done with the following command:
sudo cp /usr/bin/usbstorageapplet /usr/bin/usbstorageapplet.bak
If you mess up, restore the original with the command:
sudo cp /usr/bin/usbstorageapplet.bak /usr/bin/usbstorageapplet
Here are some screenshots of steps how to do this with KHexEdit:
1) Open KHexEdit as root:
sudo khexedit /usr/bin/usbstorageapplet
Or if you have icewm start menu enabled and Debian Program Menu installed, KHexEdit can be run from : [Start] > [Programs] > [Apps] > [Tools] > [KHexEdit].
2) Use the search function to locate “Regular Text” vfat
3) Replace the string “n” and “o” in “noexec” with 2 spaces
4) Change fmask=111 to fmask=000
5) Scroll down a little bit and do the same to the “noexec” at address 0001:2890.
6) Again, scroll down one line and do the same to the “fmask=111” at address 0001:28a0.
7) Now save the file. [NB. Please note that sometimes the system will not allow you to overwrite the existing file, then you have to “Save As” another name and then overwrite the original later by running a root File Manager with this command in a terminal:
sudo XandrosFileManager &
[NB. Linux commands are case sensitive]
Now, very important: you should verify if the original and new usbstorageapplet file are of the same file size. If they differs, then your hacking has failed somewhere and you will need to do it all over again.
To verify if you have actually achieved this, type “mount” in a terminal, and see if you can see the option “noexec” in any DOS, FAT32 or NTFS partitions mounted.
Credit goes to scarpia31 as discussed in this thread.
by zedkatuf
BACKUP USB/SD card first!!!
ASSUMES SD card is on /dev/sdb1 for the sake of these instructions - you'll almost certainly need to check. Assumes card is 4Gbytes.
At first the file system is own by root you need to change that
Now, when you install software, you should be able to specify installation to /mnt/sd2
I'm not sure how to do that using synaptic, or the EEE software installer, as I don't yet have my Eee (should be arriving next week)