Reply
Thread Tools
Posts: 58 | Thanked: 10 times | Joined on Dec 2011
#1
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++
}
 
Posts: 17 | Thanked: 17 times | Joined on Jan 2011
#2
fsck it!

This sentence is here because otherwise the post would be too short.
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2011
#3
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.
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#4
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.
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#5
Try
Code:
sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1
reboot
Post any error here with copy and paste, please.

Last edited by michaaa62; 2012-07-17 at 11:47.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:34.