View Single Post
Posts: 1,432 | Thanked: 2,630 times | Joined on Jan 2011 @ Touring
#75
OK, to me it seems to fix /etc/fstab as I understand it to be wrong(do I???)
we need to edit /etc/event.d/rcS-late this line
Code:
      # /home/user/MyDocs
      echo "$mydocs /home/user/MyDocs $mydocs_type $mydocs_opts 0 2" >> $tmp_fstab
to

Code:
      # /home/user/MyDocs
      echo "$mydocs /home/user/MyDocs $mydocs_type $mydocs_opts 0 0" >> $tmp_fstab
to get
Code:
/dev/mmcblk0p1 /home/user/MyDocs vfat noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0
instead of

Code:
/dev/mmcblk0p1 /home/user/MyDocs vfat defaults 0 2
with the defaults option being generated from these lines in /etc/default/mount-opts
Code:
fat_opts="noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir"
AND these from /etc/default/mount-opts-dpkg-dist
Code:
# Options for mounting all filesystems
common_opts="noatime,nodiratime"

# Options for mounting root's filesystems (/, /home)
root_opts="errors=continue,commit=1,data=writeback"

# Options for mounting user's filesystems (MyDocs, SD cards, ...)
user_opts="noauto,nodev,exec,nosuid"

# Options for different filesystems
vfat_opts="utf8,uid=29999,shortname=mixed,dmask=000,fmask=0000,rodir"
ntfs_opts="nls=utf8,uid=29999,umask=0000"
Hope I am following the correct path though still suspicious since another similar N900 functions fine with the above /etc/fstab unmodified and even unmounting and this won't work to make it user writable
Code:
~ $ sudo mount -o rw /dev/mmcblk0p1 /home/user/MyDocs

Last edited by biketool; 2013-07-13 at 20:31.