maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to properly wipe N900 storage space (https://talk.maemo.org/showthread.php?t=88498)

regulus 2013-01-03 08:57

How to properly wipe N900 storage space
 
Is there any tool available to properly wipe empty storage space on N900, before you sell it or give it to someone else? I suppose that resetting it to default settings is one thing, which should be followed by some DoD compliant safe wipe.

The memory card is no fuss, as you can probably just put it into a card reader and use sdelete or similar on a Windows computer to wipe it. Could the same apply to the onboard storage (i.e. you connect N900 as "mass storage", and use sdelete on that "drive"), or is there a better solution?

anthonie 2013-01-03 11:50

Re: How to properly wipe N900 storage space
 
http://wiki.maemo.org/Updating_the_firmware

Flash both rootfs and emmc.

cddiede 2013-01-03 13:36

Re: How to properly wipe N900 storage space
 
rm -Rf /home/user/MyDocs/*

anthonie 2013-01-03 13:45

Re: How to properly wipe N900 storage space
 
Quote:

Originally Posted by cddiede (Post 1310509)
rm -Rf /home/user/MyDocs/*

Please don't do that, unless you're willling to spend time with this person fixing what's broken after applying your commands...

If you don't want to help, either tell him to RTFM, to google or to use search but please refrain from giving harmfull commands to people who might not understand the implications if they follow your advise...

Notice the word "properly" in the title?

cddiede 2013-01-03 14:39

Re: How to properly wipe N900 storage space
 
What's improper there? The FAT32 partition is housed entirely in that directory. No data that resides there will harm the operating system if removed.

It won't remove installed applications or their saved preferences, but that wasn't what the OP was asking to do.

Folks should stop being so damned frightened of the command line.

Hurrian 2013-01-03 14:42

Re: How to properly wipe N900 storage space
 
Step 1: Become superuser, issue command
Code:

dd if=/dev/zero of=/dev/mmcblk0 && flash_erase /dev/mtd5 0 0 && flash_erase /dev/mtd2 0 0
Step 2: Reflash device

Step 3: Hand over device

pichlo 2013-01-03 14:48

Re: How to properly wipe N900 storage space
 
Quote:

Originally Posted by cddiede (Post 1310521)
What's improper there? The FAT32 partition is housed entirely in that directory. No data that resides there will harm the operating system if removed.

It won't remove installed applications or their saved preferences, but that wasn't what the OP was asking to do.

It won't delete contacts and conversation history either, which is what you usually want to do when you are selling the phone. On the other hand, it will remove all directories, not just files in them, which means that the new owner won't be able to take pictures, browse or even download maps, and who knows what else.

If you want to just wipe the MyDocs partition then a better way is press and hold in File Manager->Format.

anthonie 2013-01-03 14:55

Re: How to properly wipe N900 storage space
 
Quote:

Originally Posted by cddiede (Post 1310521)
Folks should stop being so damned frightened of the command line.

I agree with that. However, the method to make people feel more secure is to give them understanding of their device.

Not sure the rm would have been up to the task, if you get what I mean.

cddiede 2013-01-03 15:13

Re: How to properly wipe N900 storage space
 
Quote:

Originally Posted by pichlo (Post 1310525)
It won't delete contacts and conversation history either, which is what you usually want to do when you are selling the phone. On the other hand, it will remove all directories, not just files in them, which means that the new owner won't be able to take pictures, browse or even download maps, and who know what else.


The OP didn't ask how to delete contacts or history. He asked how to delete the storage space. He even detailed how one option included formatting from a desktop PC using the Mass storage USB mount. The rm command I posted does exactly the same thing only easier.

Removing the directories from MyDocs harms NOTHING. All of the directories used by internal applications like maps and pictures would be automatically regenerated the next time those applications were started and instructed to write to the path name.

Where is the FUD coming from? Screwing with the MyDocs contents will delete media, but will not harm the N900's normal operation.

Agreed that rm -Rf is not the most fool proof method of data removal, even dd is not perfect if only run once. But this isn't a CIA laptop here, it's a phone and we shouldn't scare people away from simple to perform commands that provide a commonly acceptable method of data removal just because of blanket FUD like:
"Who KNOWS what could happen!!?!?!"

Head's up: We know what would happen. The data would be removed, and the N900 would still work. Get over it.

pichlo 2013-01-03 15:27

Re: How to properly wipe N900 storage space
 
I tried downloading some maps via Nokia PC Suite. It claimed Nokia Maps was not installed on my device. The reason was that, not realizing its purpose, I had previously foolishly deleted the .qf file in MyDocs root.

cddiede 2013-01-03 15:32

Re: How to properly wipe N900 storage space
 
Quote:

Originally Posted by pichlo (Post 1310533)
I tried downloading some maps via Nokia PC Suite. It claimed Nokia Maps was not installed on my device. The reason was that, not realizing its purpose, I had previously foolishly deleted the .qf file in MyDocs root.

The .qf file, like ALL important files in MyDocs will be automatically regenerated after removal once the application that uses it is started.

In that case, opening the Maps application on the N900 after the .qf file removal would have prevented any error message from displaying in the Nokia PC suite.

regulus 2013-01-06 09:22

Re: How to properly wipe N900 storage space
 
Quote:

Originally Posted by cddiede (Post 1310509)
rm -Rf /home/user/MyDocs/*

I'll likely go with the combination of sdelete in Windows, and re-flash. I know about "rm", but won't this only remove the "pointers" (allocation maps) to the folders and files -- while with proper tools you can always get the content back if you have time and will? :)


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

vBulletin® Version 3.8.8