Active Topics

 


Reply
Thread Tools
Posts: 21 | Thanked: 9 times | Joined on Feb 2008
#1
There is an issue related to booting from mmc and USB storage access. After MMC boot and plugging in the USB cable, I would get an error and was not able to access the FAT partitions.

The solution was summarized in this post by fanoush, which involves modifying (as root) /usr/sbin/osso-mmc-umount.sh

However, on my n800 running OS2008, the file actually contained different code. It might be related to the OS2008 version (not sure how to figure this out - if someone could let me know I would appreciate it).

I made similar modifications to the file as follows, changing the second line below. It seems to work fine now.

from:

Code:
if [ $? = 0 ]; then
  umount $MP 2> /dev/null
fi
  RC=$?
else
  # it is not mounted
  RC=0
fi

to:
Code:
if [ $? = 0 ]; then
  if [ "$MP" != "/" ] ; then umount $MP 2> /dev/null ; fi
  RC=$?
else
  # it is not mounted
  RC=0
fi
Hope this helps someone. Thanks to Fanoush for the initial solution.
 

The Following 6 Users Say Thank You to rhkuo For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#2
Yes the script is much simpler in OS2008 but same workaround can be applied.

Just beware to not to write to the partition you boot from over USB too. This is not problem with Windows but many Linux distributions now helpfully automount every partition on the card including the one you boot from so it is very easy to cause data corruption. People solved it by modifying some script on tablet that exports the card over USB so that it only exports specific (the first, FAT) partition instead of whole card. Don't have direct link now, search this forum for more details.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
Posts: 21 | Thanked: 9 times | Joined on Feb 2008
#3
Fanoush, are you saying that *any* write to the boot partition over USB will cause problems? I am running from Linux desktop -- can one load files directly to Mydocs/.documents? I assumed that only overwriting or modifying the system files would corrupt the partition.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#4
USB storage exports card on block level. If you boot from some partition and mount it from PC over USB too, you have two ext2 filesystem drivers in two independent computers using same device. This is deadly since they will potentially overwrite each other's changes in filesystem structures. This is a big no no. Even just mounting it in read/write mode with no write done by you is dangerous. You should prevent linux system to mount it over usb. If needed, it can be mounted in read-only mode (mount -o ro ....) which may still get bad/old data sometimes but at least will not corrupt filesystem layout.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-03-10 at 08:20.
 
Posts: 21 | Thanked: 9 times | Joined on Feb 2008
#5
Thanks for your explanation, Fanoush. You just saved me from crashing my system!

I managed to find the solution you mentioned, which prevents the Linux desktop from automounting the IT root filesystem. For the record, here's the procedure.

The file to be modified (as root) is: /usr/sbin/osso-usb-mass-storage-enable.sh

1. add "DEVICE=${1}p1" at the beginning of the file after the comments.

2. replace all occurences of "$1" (about 5 of them) with "$DEVICE"

The solution was found here.
 

The Following User Says Thank You to rhkuo For This Useful Post:
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#6
The linked blogger post no longer exists. I assume however, you do not need the " "s since they are only used to identify what you need to enter seperate from your post rhkuo?
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 362 | Thanked: 143 times | Joined on Mar 2008
#7
Originally Posted by Laughing Man View Post
The linked blogger post no longer exists. .....

Click the link and then shorten the address to http://tabletoid.blogspot.com and then select link "finally got a clean way..." at the right under the BLOG Archive '2008 / Jan '. That's how I locate the article, good luck.
 
Posts: 20 | Thanked: 1 time | Joined on Apr 2008
#8
Don't worry the link doesn't work because there is a . after the .html. Here is a good one: http://tabletoid.blogspot.com/2008/0...boot-from.html
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#9
Odd, I've tried both and whenever I plug in my USB cable it just says both cards are unaccessible now.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#10
Originally Posted by Laughing Man View Post
Odd, I've tried both and whenever I plug in my USB cable it just says both cards are unaccessible now.
I found that this happened to me when I made a typo in the script. Works fine for me on n800, OS2008 diablo.
 
Reply

Tags
mmc, unmount


 
Forum Jump


All times are GMT. The time now is 23:10.