Reply
Thread Tools Search this Thread
Posts: 542 | Thanked: 116 times | Joined on Sep 2008 @ 52 N, 6 E
#1
To save space on internal memory I copied a large file (gpsbabel) to mmc1 but it has the permissions rw r r no execute. I changed the /etc/fstab to temove the noexec, but new files are still created with rw r r (no x-es).
How can I set the mmc1 in /etc/fstab that all files are created with rwx r x r x ?

The format is FAT32.

Or can I reformat it to ext3 ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,317 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
You don't if it's FAT as it does not support the exec perm. ext3 is the way. Or a clone to SD.
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
javispedro's Avatar
Posts: 1,905 | Thanked: 3,303 times | Joined on Jan 2009 @ Barcelona
#3
You can: look for the "fmask" mount option or just set it to "0033" (rwx for owner, r-- for rest).
 

The Following 4 Users Say Thank You to javispedro For This Useful Post:
Posts: 3,841 | Thanked: 1,071 times | Joined on Nov 2006
#4
You can't change that in /etc/fstab anyway (unlike a desktop file that setting is ephemeral), there is a script in /usr/sbin that does the actual mounting (look for mmc something). But if you change that script then _all_ files on the card will have the exec bit set, you can't just set it for just the files you want.

The better option is to go for the 'clone to sd card' trick.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Posts: 542 | Thanked: 116 times | Joined on Sep 2008 @ 52 N, 6 E
#5
Originally Posted by TA-t3 View Post
You can't change that in /etc/fstab anyway (unlike a desktop file that setting is ephemeral), there is a script in /usr/sbin that does the actual mounting (look for mmc something). But if you change that script then _all_ files on the card will have the exec bit set, you can't just set it for just the files you want.

The better option is to go for the 'clone to sd card' trick.
What is the 'clone to sd card' trick ?
__________________
Nokia N810 FW version 5.2008.43-7
iPad 2 (iOS 4.3.2) Macbook Pro (10.6.6)
Nokia 5800 phone FW 62.0.0125
 
Posts: 3,841 | Thanked: 1,071 times | Joined on Nov 2006
#6
Just put something like 'site:talk.maemo.org clone to sd'
into a famous web search engine and you'll find the links.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Posts: 542 | Thanked: 116 times | Joined on Sep 2008 @ 52 N, 6 E
#7
Originally Posted by javispedro View Post
You can: look for the "fmask" mount option or just set it to "0033" (rwx for owner, r-- for rest).
Currently is should already mount for x or should it be explicitly 0033 instead of 0133 ?
It is /usr/sbin/mmc-mount .

Code:
#!/bin/sh
mount -t vfat -o rw,noauto,nodev,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133 "$1" "$2" > /dev/null
For me it doesn't matter that *all* files are rwx r x r x .

UPDATE:
I set it to 0033 and IT WORKS !!

Last edited by skatebiker; 06-08-2009 at 07:30 AM.
 
javispedro's Avatar
Posts: 1,905 | Thanked: 3,303 times | Joined on Jan 2009 @ Barcelona
#8
Originally Posted by skatebiker View Post
Currently is should already mount for x or should it be explicitly 0033 instead of 0133 ?
Should be 0033; 0133 is rw- for owner.
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Posts: 542 | Thanked: 116 times | Joined on Sep 2008 @ 52 N, 6 E
#9
I found out now that using GarnetVM i moved the gvm.store to /media/mmc1 and symlinked ~/.gvm/gvm.store to that file and that works after I set the mount mask to 0033, so I now save another 16MB on the internal storage.
Previous attempts failed.
Thanks a lot.
 
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 12:35 AM.