Active Topics

 


Reply
Thread Tools
Jef91's Avatar
Posts: 191 | Thanked: 129 times | Joined on Dec 2009 @ Bloomington, IL
#11
Originally Posted by ruskie View Post
You notice it on bootup when all the desktop icons aren't yet there. But after that usually not even noticable.
Very awesome, I read through the post you linked to - if I understand correctly I just run the commands you listed in order in a root terminal on my N900? I did not know it was possible to repartition my device while it was on - thus all the cricles I've been running in trying to get it adjusted.

~Jeff
 
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#12
Please also read the comments It requires some thought and atleast one reboot. Also a good idea if you backup stuff.
__________________
For any repos or anything else I might have working on my N900 see:
http://wiki.maemo.org/User:Ruskie
A quick list of what I have in the repos
zsh|xmms2|fcron|gtar|gcoreutils
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#13
Hey all. I had the idea to set the "exec" option on the MyDocs partition, allowing any file on it to be executed, so that it would be trivially easy to move apps to it and symlink their previous paths to their new locations. Anyone tried this? Just curious. It could really help people with full-sized games and emulators on their root partition.
 
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#14
I added gid=29999 and modified fmask=0113 for /home/user/MyDocs entry in /etc/default/mount-opts
On next reboot /etc/fstab was regenerated successfully, but "mount" command doesn't reflect the changes, files in MyDocs still are owned with "root" group, and other users cannot modify them.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#15
Originally Posted by narcisgarcia View Post
On next reboot /etc/fstab was regenerated successfully, but "mount" command doesn't reflect the changes, files in MyDocs still are owned with "root" group, and other users cannot modify them.
I don't know why the gid isn't taking effect. But you probably want fmask=0111 if you want other to have rw permissions.
 
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#16
I don't want other to have rw permissions.
I add another user with "users" as main group (gid=29999), and I want members of group "users" to have rw permissions.

If parameter "fmask=0113" is ignored and remains fmask=0133 , a "fmask=0111" should be ignored too.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#17
Originally Posted by GameboyRMH View Post
Hey all. I had the idea to set the "exec" option on the MyDocs partition, allowing any file on it to be executed, so that it would be trivially easy to move apps to it and symlink their previous paths to their new locations. Anyone tried this? Just curious. It could really help people with full-sized games and emulators on their root partition.
Since that partition gets shared read/write, setting exec would increase the risk of harm from something nasty getting put there.
__________________
The Mini-USB plug is an improvement over both the Type B plug and the Micro-B plug.
 
CepiPerez's Avatar
Posts: 1,023 | Thanked: 4,421 times | Joined on Feb 2010 @ Argentina
#18
I never tried to edit fstab or something to automount partitions.
Did you have NITDroid installed? Then you don't need to reflash your phone to recover Maemo. Just edit the files you've changed inside NITDroid.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#19
Originally Posted by narcisgarcia View Post
I don't want other to have rw permissions.
I add another user with "users" as main group (gid=29999), and I want members of group "users" to have rw permissions.
Thanks for clarifying.

If parameter "fmask=0113" is ignored and remains fmask=0133 , a "fmask=0111" should be ignored too.
After many reboots the conclusion is that /etc/fstab is ignored when booting and mounting (for the first time, after booting you can umount and mount again and it will use fstab). Been grepping through /etc to see where and when /home/user/MyDocs is mounted but can't find it. AFAICS it is not mounted in /etc/event.d/rcS-late. I then modified it:

Code:
    # We can safely continue booting now.
    initctl emit MOUNTS_OK
    /bin/mount /home/user/MyDocs
Not sure whether it actually did mount at this stage because after booting the mount options still does not reflect those in fstab.

Then I modified it to be more explicit:

Code:
    # We can safely continue booting now.
    initctl emit MOUNTS_OK
    /bin/mount -o nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,gid=29999,shortname=mixed,dmask=000,fmask=0113,rodir -t vfat /dev/mmcblk0p1 /home/user/MyDocs
And now I can't boot - recovery time
EDIT: Actually I had another command in /etc/event.d/rcS-late that was the culprit preventing booting. I have removed that and now booting with the explicit mount command does work, so you could use that as a fudged workaround.

Last edited by kureyon; 2010-10-11 at 09:45.
 
Posts: 115 | Thanked: 19 times | Joined on Jun 2010
#20
It should be a docummented chapter for Maemo.
Somewho has found it in the wiki or somewhere else?
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:48.