![]() |
USB storage access after MMC boot
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 to: Code:
if [ $? = 0 ]; then |
Re: USB storage access after MMC boot
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. |
Re: USB storage access after MMC boot
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.
|
Re: USB storage access after MMC boot
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.
|
Re: USB storage access after MMC boot
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. |
Re: USB storage access after MMC boot
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?
|
Re: USB storage access after MMC boot
Quote:
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. |
Re: USB storage access after MMC boot
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
|
Re: USB storage access after MMC boot
Odd, I've tried both and whenever I plug in my USB cable it just says both cards are unaccessible now.
|
Re: USB storage access after MMC boot
Quote:
|
All times are GMT. The time now is 00:23. |
vBulletin® Version 3.8.8