resetting the internal flash rootfs on the TP2 question

Support for your TonidoPlug
UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

resetting the internal flash rootfs on the TP2 question

Postby UrbanVoyeur » Mon Nov 21, 2011 7:20 pm

If I wanted to reset the rootfs on the Tonido Plug 2 internal flash back to the base, default installation, would this work?

1. Boot from a USB
2. Mount the internal flash
3. Format the internal flash as ext3
4. wget the rootfs to the internal flash
5. un-tar the rootfs file
6. un-mount the internal flash
7. shut down, remove the USB, reboot.

Is there something else special I need to do?

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: resetting the internal flash rootfs on the TP2 question

Postby madhan » Tue Nov 22, 2011 12:44 am

Yes, something like this

Code: Select all

Check plug to ensure plug is booted with usb stick
Run the following commands from a linux prompt
ubiattach /dev/ubi_ctrl -m 3
mount -t ubifs ubi0:rootfs /mnt/
cd /mnt
rm -rf *
tar zxvf /files/rootfs_topkick.tar.gz
pull out the drive and reboot

UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

Re: resetting the internal flash rootfs on the TP2 question

Postby UrbanVoyeur » Tue Nov 22, 2011 7:21 am

Thank you very much.

In this example, rootfs_topkick.tar.gz is stored locally on the flash. Do you have a url to wget it from, just in case?

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: resetting the internal flash rootfs on the TP2 question

Postby madhan » Tue Nov 22, 2011 11:29 am

Our plug guy (Tuxedo) is not here, but can't you use the same URL you use for doing USB booting?

UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

Re: resetting the internal flash rootfs on the TP2 question

Postby UrbanVoyeur » Tue Nov 22, 2011 12:18 pm

madhan wrote:Our plug guy (Tuxedo) is not here, but can't you use the same URL you use for doing USB booting?

Sure. I was concerned that it is a different file because the name has "topkick" in it. rootfs_topkick.tar.gz vs rootfs.tar.gz. I'll run a checksum when I get home to confirm.

UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

Re: resetting the internal flash rootfs on the TP2 question

Postby UrbanVoyeur » Tue Nov 22, 2011 9:12 pm

Ok. I understand now that tar zxvf /files/rootfs_topkick.tar.gz is an example, and that the /files directory does not exist on the flash. I'm a little slow sometimes. :-)

I used the rootfs.tar.gz for the plug2 and it worked fine. The TP2 is reset to factory.

Thanks again.

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: resetting the internal flash rootfs on the TP2 question

Postby madhan » Thu Nov 24, 2011 1:54 am

Yes, you are right.

knireis
Guru Tonidoid
Guru Tonidoid
Posts: 299
Joined: Fri Nov 06, 2009 2:36 pm
Location: The Netherlands

Re: resetting the internal flash rootfs on the TP2 question

Postby knireis » Sat Nov 26, 2011 2:59 pm

UrbanVoyeur wrote:Ok. I understand now that tar zxvf /files/rootfs_topkick.tar.gz is an example, and that the /files directory does not exist on the flash. I'm a little slow sometimes. :-)

I used the rootfs.tar.gz for the plug2 and it worked fine. The TP2 is reset to factory.

Thanks again.


is it possible to use the rootfs.tar.gz on tonidoplug1?

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8617
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: resetting the internal flash rootfs on the TP2 question

Postby madhan » Sat Nov 26, 2011 6:30 pm

Unknown and unlikely to work.


Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 4 guests