Active Topics

 


Reply
Thread Tools
tobyr21's Avatar
Posts: 36 | Thanked: 2 times | Joined on May 2008
#1
Hi,
I need advice on how to clean up my file structure, after messing it up.

I'm using diablo. I pulled my n800 off of my windows xp pc without "safely removing" it. Four directories just below the root of my internal memory card disappeared. I can see the directories in Windows, when I put the n800 back in the usb port, but all their content is missing. i cannot see the directories at all in File Manager on the n800, when it is NOT connected to Windows.

I can simply delete these directories in windows and then copy them back to the n800 from a backup copy on the pc. But if I do that, will my internal memory card file structure still be messed up? How do I make sure it's okay?

Thanks in advance for your advice.
- toby robison
 
tobyr21's Avatar
Posts: 36 | Thanked: 2 times | Joined on May 2008
#2
And by the way, might there be a utility program that could recover any of the lost files?
Again, thanks.
 
Posts: 10 | Thanked: 5 times | Joined on Jul 2008
#3
Originally Posted by tobyr21 View Post
And by the way, might there be a utility program that could recover any of the lost files?
Again, thanks.
Connect the device to your PC, then open My Computer, locate the drive letter in question, RIGHT-click on it, choose Properties, then select the Tools tab: under Error Checking, you will want to click on Check Now. This may or may not recover your files but at least it will fix the FAT file system. Any damaged/recovered files will show up on said drive as FILE000x.CHK but they're not of much use typically unless they're text-only.

Z.
 
tobyr21's Avatar
Posts: 36 | Thanked: 2 times | Joined on May 2008
#4
ZZZY,
I think I need to run a Linux tool to clean the file structure. Can I do that simply by rebooting, or do I need to know the name of this program and run it explicitly?

Running Chkdsk on the PC (as you describe) definitely did not work. Chkdsk ran very fast, found no problems and no lost files. When I ran chkdsk, there were four directories that had been corrupted; they could not be opened. Chkdsk made no change to them.

Thanks for your sussestion, though.
-toby
 
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#5
I suppose you know you could flash the system, lose whatever you kept on your device memory, and at least have a working device. Yes? First back-up with the Backup that's part of maemo. Then, after you've flashed and restored from backup, all you should have lost is the docs you keep in your device memory. Most people keep their docs on the SD cards. So it doesn't seem that you'd have lost much.
 
tobyr21's Avatar
Posts: 36 | Thanked: 2 times | Joined on May 2008
#6
GeraldKo,
I'm pretty sure that backup/restore repairs the true internal memory of the N800, not the 32MB card I added to it. That's the 23MB card that has the problem. I hate to try your suggestion, because I just DID THAT a week ago to upgrade to Diablo.

The reason i do not believe that backup/restore affects this memory, is that there's not enough memory anywhere else on the N800 to back it up to.

My card seems to be working fine except for the four bad directories.

Are you really sure that backup/restore will process this card?

Thanks,
- toby
 
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#7
Originally Posted by tobyr21 View Post
GeraldKo,
I'm pretty sure that backup/restore repairs the true internal memory of the N800, not the 32MB card I added to it. That's the 23MB card that has the problem. I hate to try your suggestion, because I just DID THAT a week ago to upgrade to Diablo.

The reason i do not believe that backup/restore affects this memory, is that there's not enough memory anywhere else on the N800 to back it up to.

My card seems to be working fine except for the four bad directories.

Are you really sure that backup/restore will process this card?

Thanks,
- toby
Sorry, I had misunderstood your problem. No, it won't process the card.
__________________
.
. .

Help Save This Forum
for N8x0/Diablo Users! Register and Vote for Solution #1 on this Brainstorm. (The Solution will let you see New Posts with any threads you choose -- like the N900 and Maemo5/Fremantle threads -- filtered out.) (To understand the Solution better, see these posts #17, #18, and #19.)
 
Posts: 10 | Thanked: 5 times | Joined on Jul 2008
#8
Originally Posted by tobyr21 View Post
ZZZY,
I think I need to run a Linux tool to clean the file structure. ...
-toby
Hi Toby,

I don't know why Windoze wouldn't fix it since FAT is still native to some degree... Hmmm... The command to fix the vfat fs is fsck.vfat.

For situations like yours I have set a script that attempts to check/fix both cards at once. At least the mount/umount part has to be run as superuser (root). ALso, the chown part (also as root) seems to be necessary, otherwise you only get read-only access to the cards.

Code:
#!/bin/sh

fsck.vfat -a /dev/mmcblk1p1
fsck.vfat -a /dev/mmcblk0p1
echo attempting to unmount mmc cards
mmc-pre-unmount /media/mmc*
umount -f /media/mmc*
fsck.vfat -a /dev/mmcblk1p1
fsck.vfat -a /dev/mmcblk0p1
mmc-mount /dev/mmcblk0p1 /media/mmc2
mmc-mount /dev/mmcblk1p1 /media/mmc1

chown -R user /media/mmc*/*
chown -R user /media/mmc*/.*
Can't really tell what the mmc-pre-unmount actually does, I assume it attempts to sync the vfat fs to prevent corruption, sort of a "gentler" umount.

The -a switch will attempt repair, however, again, no guarantees that your dir structure or files will be accessible in the end. I would first run without the -a switch just to see what fsck detects.

Hope this helps

Z.

Last edited by zzzy; 2009-02-09 at 01:01. Reason: corrected error in last script
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:29.