View Single Post
Posts: 14 | Thanked: 4 times | Joined on Jun 2010 @ Kuching, Sarawak, Malaysia
#7
My take on automount ext3 SDHC

my firmware prior to this was RX-51_2009SE_10.2010.19-1_PR_COMBINED_MR0_ARM.bin

Step1:
install "Enhanced Linux kernel for power users - kernel 2.6.28.10" from your stable repo to get ext3 support

Step2:
stabilizing fstab
open /etc/event.d/rcS-late
commenting out starting from line
Code:
#generate fstab and mount /home
all the way to the end which line says
Code:
rm -f $tmp_fstab
now the /etc/fstab is stable
Code:
    # Generate fstab and mount /home
#    . /etc/default/mount-opts
#
#   fstab=/etc/fstab
#    tmp_fstab=/tmp/fstab
#
#    sfdisk -l /dev/mmcblk0 | /bin/busybox awk \
#    	-v home_opts="$home_opts" -v fat_opts="$fat_opts" \
#	-f /usr/lib/genfstab.awk > $tmp_fstab
#
#    cmp -s $tmp_fstab $fstab || cp $tmp_fstab $fstab
#    rm -f $tmp_fstab
Step3:
Still in /etc/event.d/rcS-late
after the line
Code:
mount_home && HOME_MOUNTED=1
add
Code:
/bin/mount /home/user/mntsdhc
Step4:
now open /etc/fstab, add at the bottom
Code:
/dev/blkmmc1p1 /home/user/mntsdhc ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
Step5:
mkdir /home/user/mntsdhc
reboot n900

Step6:
if you want to use your microsd card in the GUI type the following
Code:
chown root:users /home/user/mntsdhc
chmod 775 /home/user/mntsdhc

Last edited by wongdg; 2010-08-20 at 14:23. Reason: try additional formatting