maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Big mmc2 file issues (https://talk.maemo.org/showthread.php?t=32855)

Tintin 2009-10-14 22:31

Big mmc2 file issues
 
It started last night when i had a system crash while downloading podcasts through gpodder. After that i got a lot of file errors saying the files were read only system files. Now, i cant even delete files that i normally have no trouble managing. I get the same errors - read only system file - and i cant be deleted.

Heeeelp....

Tintin 2009-10-14 22:38

Re: Big mmc2 file issues
 
follow up: i also cant save anything from the browser as i get 'not allowed'. i tried to un-check the virtual memory but get a message saying it cant delete it....

Edit: i issued to root and deleted the .swap and then re-created it.
still no joy.

Addison 2009-10-14 23:26

Re: Big mmc2 file issues
 
Can you hook your tablet to your computer with a USB cable?

If so, just navigate to your memory card, choose properties and uncheck the read-only tag.

Worst case would be to reformat your entire card. :(

hordeman 2009-10-15 00:16

Re: Big mmc2 file issues
 
Do you have an N810 and are you saving to the internal memory card? If so, did you make sure to fix the internal memory card bug? http://tabletschool.blogspot.com/200...d-on-n810.html

solarion 2009-10-15 00:27

Re: Big mmc2 file issues
 
It may need an fsck (chkdsk under Windows; I'll assume Linux for the purposes of this post since it's what I'm used to)

Absolute first thing you should do is back it up to another machine:

cd /media
tar -cf - mmc2 | ssh user@host 'cat > mmc2.tar'
dd if=/dev/mmcblk0p1 bs=512 conv=noerror,sync | ssh user@host 'cat > mmc2.dd'


The first command (starting with tar) will make a tar archive (redundant phrasing, "tape archive" but it's no longer usually used for tapes) of /dev/mmc2, outputting the result to the standard output, which is sent to a remote host, sent through cat (which just outputs its input) and redirected from cat into the "mmc2.tar" file on that host.

The second command, unlike the tar, actually creates a block-for-block copy of the data on the device (the bs (block size) may be small and inefficient; those more familiar with flash-based devices would know a more efficient block size), not stopping for errors and inserting 0s where it fails to read from the device).otherwise, it's the same. This doesn't copy the files. Rather, it copies the raw data off of the device. You can use the loopback device to access it on a linux host.

If you plug it into a Linux-based computer, you can run an fsck (chkdsk) on the device:

fsck.vfat <device>

where "device" is the device as it appears on the Linux host; I'm not sure where it appears and I can't test it out right now. You'll almost certainly have to umount the filesystem first:

umount <mountpoint>

where <mountpoint> is the place where the filesystem is mounted on your Linux host. You can probably perform this step via Nautilus. Right-click on the device's entry (again, not sure what it's called; I can't access it right now) and select "Unmount" from the menu.

Hope that helps. Gimme a holler if you have more questions; I should be able to plug in my n810 to my workstation tomorrow to give you (Ubuntu's) device information.

Disclaimer: I've not tried the above, but it should work.

Tintin 2009-10-15 00:34

Re: Big mmc2 file issues
 
Thanks a lot for the suggestions here but as it turned out the corrupted file was indeed in the swap file. After deleting the .swap manually as root and then re-creating it and re-starting...all problems now seems to be gone :)

Tintin 2009-10-15 02:43

Re: Big mmc2 file issues
 
damn, same issue...back...sigh.

Tintin 2009-10-15 05:05

Re: Big mmc2 file issues
 
Even with no swapfile at all my mmc2 reverts into a read-only mode (and no, the flag for that in the control panel is not checked).

:(

Lord Raiden 2009-10-15 06:49

Re: Big mmc2 file issues
 
Ok, here's how I've solved this problem before.

1. Power off the tablet.
2. Connect the USB.
3. Power on the tablet.
4. Once it boots, it should automatically mount the drives under Windows, or ask you to mount them under Linux, which you should do.
5. Once you have them both mounted in Linux, run fsck.vfat against both drives to clear them of issues. If you have them mounted in Windows, just run scandisk against them.
6. Unplug and see what happens. They should work fine again.

Tintin 2009-12-10 23:20

Re: Big mmc2 file issues
 
Same corruption happened again today and exactly the same scenario - I was downloading a podcast in gpodder and when it booted up again the write priv were gone on mmc2.

andybehr 2009-12-16 08:49

Re: Big mmc2 file issues
 
I have the same issue with gPodder on the N900.
Might be a gPodder issue.


All times are GMT. The time now is 16:54.

vBulletin® Version 3.8.8