maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Returning N900 as it was (https://talk.maemo.org/showthread.php?t=87859)

KFX 2012-11-14 08:33

Returning N900 as it was
 
I'm about to purchase a used N900. Is there a step-by-step procedure for returning the device, memory and all, to its original state, the way it came from the factory?

demolition 2012-11-14 08:41

Re: Returning N900 as it was
 
Look in the Wiki for a procedure called "flashing". Nothing rude, just the name for copying the filesystem template (and all the basic bits of the OS) on to the device.

If you get stuck, by all means post back. But, the Wiki is very reliable on this.

michaaa62 2012-11-14 08:55

Re: Returning N900 as it was
 
FIRST make sure the USB is working, because this is needed to flash the firmware after wiping the old settings, applications and setup.

Read the wiki entry http://wiki.maemo.org/Updating_the_tablet_firmware about flashing the firmware to know what you are doing and to get the files and applications for your PC.

Install rootsh to be able to perform the removal from the X-Terminal application in HildonApplicationManager from the extras repository.Then open X-Terminal and run these commands
Code:

rm -rf /home/user/MyDocs
rm -rf *.*
sudo gainroot
cd /
rm -rf /etc
rm -rf /var/*
rm -rf /root
rm -rfv /

This command will give some output, but will finally just stop. Shut down the phone or pull the battery. Then follow the procedure for your PC's OS to flash the firmware and the Vanilla-EMMC according to the wiki entry.

Edit: The commands part above is unnecessary, sorry for that confusion.

abuelmagd 2012-11-14 09:19

Re: Returning N900 as it was
 
there's a program in the repos called healthcheck. it allows you to fully check the device. it is extremely useful.

anthonie 2012-11-14 12:36

Re: Returning N900 as it was
 
Quote:

Originally Posted by michaaa62 (Post 1294077)
Edit: This may sound complicated, but lots of setting and even applications survive a flash in /etc and /opt folders.

How does that actually work, the surviving part, I mean?

michaaa62 2012-11-14 12:41

Re: Returning N900 as it was
 
Quote:

Originally Posted by anthonie (Post 1294163)
How does that actually work, the surviving part, I mean?

There is nothing to survive!!!
The N900 will be flashed afterwards to fresh new PR1.3.

vi_ 2012-11-14 12:52

Re: Returning N900 as it was
 
Quote:

Originally Posted by michaaa62 (Post 1294077)
FIRST make sure the USB is working, because this is needed to flash the firmware after wiping the old settings, applications and setup.

Read the wiki entry http://wiki.maemo.org/Updating_the_tablet_firmware about flashing the firmware to know what you are doing and to get the files and applications for your PC.

Install rootsh to be able to perform the removal from the X-Terminal application in HildonApplicationManager from the extras repository.Then open X-Terminal and run these commands
Code:

rm -rf /home/user/MyDocs
rm -rf *.*
sudo gainroot
cd /
rm -rf /etc
rm -rf /var/*
rm -rf /root
rm -rfv /

This command will give some output, but will finally just stop. Shut down the phone or pull the battery. Then follow the procedure for your PC's OS to flash the firmware and the Vanilla-EMMC according to the wiki entry.

Edit: This may sound complicated, but lots of setting and even applications survive a flash in /etc and /opt folders.

If you simply perform a flash of the eMMC and rootfs as per the instructions on the wiki, none of these commands are relevant.

A reflash COMPLETELY wipes everything.

HELLASISGREECE 2012-11-14 13:10

Re: Returning N900 as it was
 
flash it to PR1.3 and then do an apt-get update & apt-get upgrade in order to get PR1.3.1 (fall 2011. last N900 official update)

reinob 2012-11-14 14:00

Re: Returning N900 as it was
 
Quote:

Originally Posted by michaaa62 (Post 1294165)
There is nothing to survive!!!
The N900 will be flashed afterwards to fresh new PR1.3.

You said
Quote:

lots of setting and even applications survive a flash in /etc and /opt folders
so a lot of people (including me) are wondering if you can provide more information about this.

/etc is part of the rootfs, which AFAIK is completely re-written by NOLO during flashing.

/opt itself is also part of the rootfs, but is usually bind-mounted to /home/opt, which is part of the eMMC. I would also expect that eMMC flashing would completely rewrite the eMMC, but have not actually investigated how this flashing is exactly done (it's not done by NOLO, but by Maemo itself.)

so if you know something we don't (still) know, please share it :)

anthonie 2012-11-15 12:25

Re: Returning N900 as it was
 
Quote:

so if you know something we don't (still) know, please share it
That was my reason for asking, thanks for the repeated question, _vi.


All times are GMT. The time now is 03:42.

vBulletin® Version 3.8.8