Poll: N900 - Harddrive is in Read Only Mode
Poll Options
N900 - Harddrive is in Read Only Mode

Reply
Thread Tools
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#71
Could you please check also
/etc/default/mount-opts-overwrite ?
Especially for genfstab entry.


But this seems as it is going into CSSU world, so maybe I am not the best one to give advice...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 1,424 | Thanked: 2,623 times | Joined on Jan 2011 @ Touring
#72
No /etc/default/mount-opts-overwrite but there was /etc/default/mount-opts-dpkg-dist

Code:
# !!! Do not edit this file. It can be overwritten in next update !!!
# !!! Instead create and edit file /etc/default/mount-opts-overwrite !!!

# 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"

# Renerate fstab at boot time in /etc/event.d/rcS-late
genfstab="1"

# When generating fstab add also swap partitions from SD card (if exists)
swap_sd="0"

# Call fsck.<fstype> -p for /home at boot time in /etc/event.d/rcS-late
home_fsck="0"

# Call fsck.<fstype> -p for user's partitions (MyDocs, SD cards, ...)
user_fsck="0"

# Include overwrite file
if [ -f /etc/default/mount-opts-overwrite ]; then
	. /etc/default/mount-opts-overwrite
fi
Just for comparison the good N900 (in case I missed any important difference)

Code:
# !!! Do not edit this file. It can be overwritten in next update !!!
# !!! Instead create and edit file /etc/default/mount-opts-overwrite !!!

# 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"

# Renerate fstab at boot time in /etc/event.d/rcS-late
genfstab="1"

# When generating fstab add also swap partitions from SD card (if exists)
swap_sd="0"

# Call fsck.<fstype> -p for /home at boot time in /etc/event.d/rcS-late
home_fsck="0"

# Call fsck.<fstype> -p for user's partitions (MyDocs, SD cards, ...)
user_fsck="0"

# Include overwrite file
if [ -f /etc/default/mount-opts-overwrite ]; then
	. /etc/default/mount-opts-overwrite
fi
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#73
Hmm, strange.
As correct options are listed, but not written to /etc/fstab.

Maybe better to ask someone in CSSU thread?

Or could you try to add a blank/space (and undo) to /etc/fstab and try to write? Maybe it is not writeable at all? Just a guess, otherwise I am running out of ideas from here.Sorry.

--
But not only MyDocs got wrong options, also rootfs and /home options are not correct.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-07-13 at 19:22.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 1,424 | Thanked: 2,623 times | Joined on Jan 2011 @ Touring
#74
peterleinchen, just to verify
change the entry
Code:
/dev/mmcblk0p1 /home/user/MyDocs vfat defaults 0 2
to
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
the key being rodir 0 0 and not rodir 0 2 ?

then sudo umount /home/user/MyDocs and finally sudo mount -a ?

I think the /etc/fstab is only generated at boot so it should stay rodir 0 0

BTW I never really knew what those numbers(or dont remember knowing) at the tail end were back in the 90's where hacking /etc/fstab and /etc/xfree86 was way to normal to be fun

going to wait for a reply before breaking something
(edit)
and for what it is worth my /etc/fstab on the 'bad' N900 is identical to that on my 'good' N900 except I have a swap on a SD card entry there.

Good
Code:
# This file was generated by script /etc/event.d/rcS-late
# !!! Do not edit this file. It will be overwritten in next device startup !!!
# If you want static /etc/fstab add genfstab="0" to file /etc/default/mount-opts-overwrite
rootfs / rootfs rw 0 0
ubi0:rootfs / ubifs rw,bulk_read,no_chk_data_crc 0 0
/dev/mmcblk0p2 /home ext3 defaults 0 2
/home/opt /opt none bind 0 0
/dev/mmcblk0p1 /home/user/MyDocs vfat defaults 0 2
/dev/mmcblk1p2 none swap sw 0 0
/dev/mmcblk0p3 none swap sw 0 0

BAD(ok not bad just not properly RW for non-sudo user, c'mon it has inductive Touchstone charging!!)

Code:
# This file was generated by script /etc/event.d/rcS-late
# !!! Do not edit this file. It will be overwritten in next device startup !!!
# If you want static /etc/fstab add genfstab="0" to file /etc/default/mount-opts-overwrite
rootfs / rootfs rw 0 0
ubi0:rootfs / ubifs rw,bulk_read,no_chk_data_crc 0 0
/dev/mmcblk0p2 /home ext3 defaults 0 2
/home/opt /opt none bind 0 0
/dev/mmcblk0p1 /home/user/MyDocs vfat defaults 0 2
/dev/mmcblk0p3 none swap sw 0 0

Last edited by biketool; 2013-07-13 at 19:34.
 
Posts: 1,424 | Thanked: 2,623 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.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#76
To me these lines in rcS-late look like the culprit:
# Remove duplicate commas from variables
mydocs_opts=`echo $mydocs_opts | sed ':l;s/,,/,/g;tl;s/^,//;s/,$//'`
home_opts=`echo $home_opts | sed ':l;s/,,/,/g;tl;s/^,//;s/,$//'`
as following lines
[ -z "$mydocs_opts" ] && mydocs_opts=defaults
[ -z "$home_opts" ] && home_opts=defaults
will write "defaults" and not the correct options read from mount-opts.
And iirc I believe I read something about exactly those sed to be corrected/adapted or similar (maybe I am wrong and it was just about swap partitions).
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 1,424 | Thanked: 2,623 times | Joined on Jan 2011 @ Touring
#77
Big thanks to peterleinchen but I am wondering if this is not an /etc/fstab problem(entries are exactly the same as my 'good' N900) but something different preventing user from writing to MyDOcs but sudo/root writes fine. What could keep chmod -R 777 from fixing the permissions issue and why wont remounting -o loop fix it?
I wonder if there is something wrong with settings for user?
Anyone?

Last edited by biketool; 2013-07-14 at 14:44.
 
Posts: 1,424 | Thanked: 2,623 times | Joined on Jan 2011 @ Touring
#78
If I reformatted MyDocs to ext2 or ext3 what would be the downside, especially since I have all Linux machines at home. WOuld this work, is there a feeling that the trouble is fat32 owner/permissions related?
 
Posts: 14 | Thanked: 0 times | Joined on Jan 2011
#79
I'm having the same problem. I think this is about a new update from CSSU. Just reflashed my N900 though.
 
Posts: 1,424 | Thanked: 2,623 times | Joined on Jan 2011 @ Touring
#80
Yes, that is very possible. I took that phone out after my wife's regular N900 went bad, punched update which included CSSU.
Maybe the next update fill fix me since the fstab matches my good phone. Sadly flashing is not an option.
SInce the wife is not a power user I can SSH in and use midnight commander as sudo to FTP her music and files back on, though she was used to using a SCP connection to drag/drop music or pictures.
It is a pain and I hope to fix the problem for her.

Last edited by biketool; 2013-07-24 at 15:07.
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:22.