Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    EMMC in read only mode after every reboot

    Reply
    bvaibhav | # 1 | 2012-07-16, 11:31 | Report

    Hi Guys,
    Since last few days the emmc in my N900 gets mounted in read only mode and I have to manually remount it in read write mode after every reboot, is there a way to make it permanent.

    Contents of /etc/fstab file:
    Code:
    # autogenerated
    rootfs / rootfs defaults,errors=remount-ro,noatime 0 0
    /dev/mmcblk0p1 /home/user/MyDocs vfat noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0
    /dev/mmcblk0p2 /home ext3 rw,noatime,errors=continue,commit=1,data=writeback 0 0
    /home/opt /opt none bind
    /dev/mmcblk0p3 none swap sw 0 0
    Contents of /usr/lib/genfstab.awk file:

    Code:
    #!/usr/bin/awk
    
    BEGIN {
    	# states so that we don't end up having more than one
    	# of home or MyDocs; we can have as many swaps as we find
    	__home = 0
    	__fat = 0
    
    	print "# autogenerated"
    	print "rootfs / rootfs defaults,errors=remount-ro,noatime 0 0"
    }
    
    /^\/dev\/mmc/ { start=1 }
    start == 1 && $6 == 82 {
    	printf "%s none swap sw 0 0\n", $1
    }
    
    start == 1 && $6 == 83 && !__home {
    	printf "%s /home ext3 %s 0 0\n", $1, home_opts
    	printf "/home/opt /opt none bind\n"
    	__home++
    }
    
    start == 1 && $6 == "c" && !__fat {
    	printf "%s /home/user/MyDocs vfat %s 0 0\n", $1, fat_opts
    	__fat++
    }

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lameventanas | # 2 | 2012-07-16, 11:54 | Report

    fsck it!

    This sentence is here because otherwise the post would be too short.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bvaibhav | # 3 | 2012-07-17, 11:02 | Report

    Originally Posted by lameventanas View Post
    fsck it!

    This sentence is here because otherwise the post would be too short.
    Thanks, but I have already tried it and it took 6 hours on my n900 and still was not even half the way through, I even tried fsck using a PC and after 3 hours I got bored.

    So is there any faster way of getting this done.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    droll | # 4 | 2012-07-17, 11:23 | Report

    plug it into a pc that runs windows via usb. select mass storage mode on the n900. on the pc, run chkdsk on the emmc mounted volume. shouldn't take 3 hours. that should hopefully fix the problem.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    michaaa62 | # 5 | 2012-07-17, 11:45 | Report

    Try
    Code:
    sudo gainroot
    umount /dev/mmcblk0p1
    fsck -af /dev/mmcblk0p1
    reboot
    Post any error here with copy and paste, please.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by michaaa62; 2012-07-17 at 11:47.
    The Following User Says Thank You to michaaa62 For This Useful Post:
    azad1top

     
vBulletin® Version 3.8.8
Normal Logout