It is currently Wed May 22, 2013 4:25 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Sun Jan 03, 2010 12:51 am 
Tonido Team
Tonido Team
Joined: Wed Jan 28, 2009 11:30 pm
Posts: 1350

Introduction:
With the latest Tonido update (v0.5), TonidoPlug has an added restriction on how it functions. In order to prevent the internal flash from getting full, it is necessary to have an USB drive always attached to the TonidoPlug. If the USB drive is unplugged, all Tonido applications gets suspended and you will need to restart the plug with an USB drive to get it function normally.
Problem:
If you have TonidoPlug booting on a USB drive (or you accept the risk of internal flash getting full :P ), then you might face the issue of Tonido applications getting suspended.
Solution:
You can create a file under plugscripts directory to bypass the USB drive presence check.
Assuming you have Tonido installation under /root/app/tonido, run the following command to bypass the USB drive check:
Code:
 # touch /root/app/tonido/plugscripts/IGNOREDATADIR


Offline
 Profile  
 Post subject: Re: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Tue Jan 12, 2010 11:02 am 
Veteran Tonidoid
Veteran Tonidoid
Joined: Fri Jan 08, 2010 8:11 pm
Posts: 82
Location: Missouri

I have followed the above instructions but I receive an error that says "Setup User Data directory to use external disk" on the HOME tab below my profile name. I am booting directly off of an external usb drive which has been working great (followed the instructions from the sticky'd post). All of the applications are enabled and working except the Photo Gallery which reports in the log "Tonido Photos suspended because User Data directory is set to TonidoPlug flash directory. Please change User Data directory in Profile Settings to other device (e.g. USB disk)."

My profile directory under the SETTINGS | PROFILE tab is "approot/profiles/myprofilename" and user data directory is "approot/profiles/myprofilename/userdata".

Doesn't my "flash directory" become my usb drive when it becomes the boot device? In the /root/app/tonido/plugscripts directory there is an empty "IGNOREDATADIR" file present.

root@tonido:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 111G 7.9G 97G 8% /
tmpfs 251M 0 251M 0% /lib/init/rw
varrun 251M 232K 251M 1% /var/run
varlock 251M 0 251M 0% /var/lock
udev 251M 16K 251M 1% /dev
tmpfs 251M 0 251M 0% /dev/shm
tmpfs 251M 0 251M 0% /var/cache/apt

Thanks!
Ryan


Offline
 Profile  
 Post subject: Re: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Tue Jan 12, 2010 12:39 pm 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7303
Location: Dallas, USA

Unfortunately the software expects that the user data directory is not "approot/profiles/myprofilename/userdata" but is something else.

So you need to set it to a different path say "/data/tonido/userdata"

You can also create a symbolic link and point to the existing userdata directory and then make the user data directory point to the symbolic link.


Offline
 Profile  
 Post subject: Re: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Tue Jan 12, 2010 1:21 pm 
Veteran Tonidoid
Veteran Tonidoid
Joined: Fri Jan 08, 2010 8:11 pm
Posts: 82
Location: Missouri

Thanks for the reply.

"approot/profiles/myprofilename/userdata" was created by default, how is it that the software doesn't expect to see it there? Because it was technically stored on the flash drive before I copied that content to the usb drive to boot off of it? Is this a form of flash drive overfilling protection or something?

I guess the reason I'm concerned with moving it because several apps (photos, torrent, websharepro, workspace) have directories and files located there, how would they know where to look otherwise for their .db files and such? Which also leads me to ask why those apps don't have a problem with the user data directory being there when the photo gallery does?

Thanks and sorry for all the questions! :)


Offline
 Profile  
 Post subject: Re: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Tue Jan 12, 2010 1:26 pm 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7303
Location: Dallas, USA

Quote:
Is this a form of flash drive overfilling protection or something?


Exactly. Tonido is designed to run off the flash drive and we go to great pain to make sure people don't fill it with data. So when you boot it off a USB HD it is not a regular situation. That is why you need this workaround.

As I suggest, if you create a symbolic link and just point to your existing directory and then point user data to your symbolic link, nothing will move around and all your data will be safe.


Offline
 Profile  
 Post subject: Re: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Tue Jan 12, 2010 2:47 pm 
Veteran Tonidoid
Veteran Tonidoid
Joined: Fri Jan 08, 2010 8:11 pm
Posts: 82
Location: Missouri

I guess I wasn't aware that this extra step was required for usb booting, but it does make sense. Thank you for your suggestion. I created a symbolic link using the following command and it appears to be working fine:

Code:
# ln -s /approot/profiles/myprofilename/userdata /media/usb0/profiles/myprofilename/


edit: also changed my userdata directory in my profile to match the symlink destination of "/media/usb0/profiles/myprofilename/"


Offline
 Profile  
 Post subject: Re: Tip: How To Enable Tonido On USB Booted TonidoPlug
PostPosted: Thu Jan 14, 2010 10:58 am 
Super Tonidoid
Super Tonidoid
Joined: Mon Dec 07, 2009 2:05 pm
Posts: 35

Can I simply copy my /approot/profiles/myprofilename/userdata directory to /media/usb0/profiles/myprofilename/ rather than creating a symbolic link? Does this break anything? I assume that I could then delete the profile data under /approot.


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: