Help on my new tonido plug

Support for your TonidoPlug
fullerms
Veteran Tonidoid
Veteran Tonidoid
Posts: 72
Joined: Mon Jan 17, 2011 1:00 am

Help on my new tonido plug

Postby fullerms » Sat Jan 29, 2011 4:25 am

Hi all,

Finally got my new tonido plug booting off a USB Hard Disc and serving music :)

Being a linux newbie, got a few questions.

1. How to spindown the USB Hard Disk when Idle.
I am booting the tonido off the same hard disk, is it possible to spin it down when not in use? -- Possible solution found, details in a different post below. Needs more testing.


2. How to upgrade applications which are installed one the Tonido, especially the Squeezebox Server which I have installed.

3. How to put all user data for applications like the money manager in a different partition? -- Closed

4. How to automount the partitions on the hard disk. Just realised that I lose all my disk mounts if the tonidoplug is rebooted or powered off --Closed

5. If install debian linux on the USB disk, how to get full version of tonido that comes with tonido plug?

6. If multiple USB devices are connected through a USB hub, it appears the plug cannot figure which one to boot from and falls back to internal flash after some time.

7. Unable to transfer profile to squeezeplug image of Tonido. The path where I have copied my profile data to the squeezeplug image is shown in the screenshot below. No issues with transferring the profile date in the "official" tonido image installed onto USB --Closed

Just follow the instructions here http://wiki.slimdevices.com/index.php/S ... lug_Script

"To be able to re-use your profile copy the profilefolder (the backup you made in the first steps of this wiki) to the new location: /usr/local/tonido/approot/profiles and reboot your device."

Duh! :oops:

Screenshot http://img152.imageshack.us/img152/3498/tonidoprofileissue.png
Last edited by fullerms on Wed Feb 02, 2011 11:02 pm, edited 6 times in total.

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

Re: Help on my new tonido plug

Postby madhan » Sat Jan 29, 2011 1:47 pm

1. How to spindown the USB Hard Disk when Idle.


This is not supported by our software. You might be able to find a drive specific solution by searching the web.

3. How to put all user data for applications like the money manager in a different partition?


You can save the money manager file by specifying a location.

User avatar
agrajag
Veteran Tonidoid
Veteran Tonidoid
Posts: 77
Joined: Tue Dec 14, 2010 9:25 am

Re: Help on my new tonido plug

Postby agrajag » Sun Jan 30, 2011 6:49 am

fullerms wrote:4. How to automount the partitions on the hard disk. Just realised that I lose all my disk mounts if the tonidoplug is rebooted or powered off


The most safety way is to use the UUID of the partition.

Connect to your Plug via SSH.

Show up our UUIDs:

Code: Select all

sudo ls -l /dev/disk/by-uuid


This lists all your partitions UUIDs.

insgesamt 0
lrwxrwxrwx 1 root root 10 2011-01-14 20:05 124ae392-7cd6-41ad-aa22-3dda9f25c7aa -> ../../sdb2
lrwxrwxrwx 1 root root 10 2010-11-23 09:55 30730ec1-a72f-4b6a-8afe-22b98ab0bce7 -> ../../sda5
lrwxrwxrwx 1 root root 10 2011-01-14 20:04 51c3f729-e535-43a2-856f-51b2992f3dd9 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2010-11-23 09:55 bbce16ba-6514-4199-b2e5-0ddf1413ec78 -> ../../sda1


Look for your partition and copy the UUID.

Now you've to edit "/etc/fstab"

Code: Select all

sudo nano /etc/fstab


Add the following line at the end of the file:

Code: Select all

UUID=124ae392-7cd6-41ad-aa22-3dda9f25c7aa  /media/disk1part1  ext3  defaults 0 0

Replace the UUID (behind the "=") with yours. You should also change "/media/disk1part1" to your needs and "ext3" with the filesystem used on your partition.

fullerms
Veteran Tonidoid
Veteran Tonidoid
Posts: 72
Joined: Mon Jan 17, 2011 1:00 am

Re: Help on my new tonido plug

Postby fullerms » Sun Jan 30, 2011 8:41 am

Ok Thanks will try it out.

Stupid Question. Is the tonido plug running 32 bit or 64 bit linux :oops: ?

Will the debian package of dragon disk install on the tonidoplug?

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

Re: Help on my new tonido plug

Postby madhan » Sun Jan 30, 2011 11:04 am

Stupid Question. Is the tonido plug running 32 bit or 64 bit linux ?


There are no stupid questions. Don't worry. :-)
It is running 32 bit linux.

fullerms
Veteran Tonidoid
Veteran Tonidoid
Posts: 72
Joined: Mon Jan 17, 2011 1:00 am

Re: Help on my new tonido plug

Postby fullerms » Mon Jan 31, 2011 1:52 am

Ok did a little experimentation to answer my own question above

"1. How to spindown the USB Hard Disk when Idle.
I am booting the tonido off the same hard disk, is it possible to spin it down when not in use?"


I used the information in this website to do my testing http://hartvig.de/2009/howto-automatica ... in-ubuntu/

The command line used for testing was

sync
sdparm --flexible --command=stop /dev/sdX &>/dev/null

Results:

1. Install Tonido on the USB HDD and tried to spin it down, it comes back up immediately.

2. USB flash disk and USB HDD connected to the tonidoplug through a powered USB hub. Installed the squeezeplug image on a USB flash drive and tried to spin down the USB HDD - No response. HDD stays up.

3. Same physical setup as above. Installed tondio on the USB flash drive and tried to spin down the USB HDD - It spins down and stays there 8-)

fullerms
Veteran Tonidoid
Veteran Tonidoid
Posts: 72
Joined: Mon Jan 17, 2011 1:00 am

Re: Help on my new tonido plug

Postby fullerms » Mon Jan 31, 2011 2:01 am

Today's testing brings about another round of questions.


    1. If install debian linux on the USB disk, how to get full version of tonido that comes with tonido plug?

    2. The USB Flash drive I have used in the experiments is a 8 Gb one. However, only 1 Gb is used when I install Tonido onto it. How to use the full capacity? And what would be the recommended partitioning scheme for this 8 GB?

Diagnostics:

root@TonidoPlug:~# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 950M 584M 319M 65% /
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

root@TonidoPlug:~# parted
GNU Parted 1.8.8
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SanDisk Cruzer Blade (scsi)
Disk /dev/sda: 8004MB

Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 1012MB 1012MB primary ext3 boot

When I try to resize the partition, I get this error

Error: File system was not cleanly unmounted! You should run e2fsck. Modifying
an unclean file system could cause severe corruption.

fullerms
Veteran Tonidoid
Veteran Tonidoid
Posts: 72
Joined: Mon Jan 17, 2011 1:00 am

Re: Help on my new tonido plug

Postby fullerms » Mon Jan 31, 2011 10:33 am

Here's another issue which I am facing now.

I have a USB flash drive (Boot Drive) and a USD Harddisk (Media disk) connected to the Tondiplug via USB HUB.

The Tonido seems to hang forever and does not boot in this configuration. However, if I disconnect the Media disk and reboot, the plug boots off the Flash drive. How to resolve this?

I want to have both disks connecte to the hub and have the plug boot off the flash drive everytime I power it on.

Update:

After just 'hanging in there' for a couple of minutes, the plug boots off the internal nand. Both the usb devices are showing up correctly when I check the disk mounts.

So the devices are being detected, but appears the plug cannot figure which one to boot from and falls back to internal after some time.
Last edited by fullerms on Mon Jan 31, 2011 10:47 am, edited 1 time in total.

Tuxedo
Tonido Team
Tonido Team
Posts: 1458
Joined: Wed Jan 28, 2009 11:30 pm

Re: Help on my new tonido plug

Postby Tuxedo » Mon Jan 31, 2011 10:39 am

You have only one HDD connected and your plug boots of that disk.
You can see that your rootfs is on the USB disk.
rootfs 950M 584M 319M 65% /

When you are using the disk, ie., when the disk is mounted, you cannot perform any partition modifications. You have to boot your plug from the internal flash, connect the USB disk and then modify the partition size (unmount any partitions that are automatically mounted before modifying the partitions).

fullerms
Veteran Tonidoid
Veteran Tonidoid
Posts: 72
Joined: Mon Jan 17, 2011 1:00 am

Re: Help on my new tonido plug

Postby fullerms » Mon Jan 31, 2011 10:49 am

Tuxedo wrote:You have only one HDD connected and your plug boots of that disk.
You can see that your rootfs is on the USB disk.
rootfs 950M 584M 319M 65% /

When you are using the disk, ie., when the disk is mounted, you cannot perform any partition modifications. You have to boot your plug from the internal flash, connect the USB disk and then modify the partition size (unmount any partitions that are automatically mounted before modifying the partitions).


Thanks, thats exactly what I did. Got a few more queries in this thread ;)


Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 3 guests