It is currently Thu Jun 20, 2013 1:24 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Help on my new tonido plug
PostPosted: Tue Feb 01, 2011 9:51 am 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Jan 17, 2011 1:00 am
Posts: 72

Updated my first post, still need help on some questions. Can anyone help?


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Tue Feb 01, 2011 12:15 pm 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Jan 17, 2011 1:00 am
Posts: 72

Looks like there are others with the same problem of not booting from usb if more than one usb device is plugged in.

http://plugcomputer.org/plugforum/index ... pic=4378.0

http://plugapps.com/forum/viewtopic.php?f=23&t=559


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Wed Feb 02, 2011 12:18 pm 
Tonido Team
Tonido Team
Joined: Wed Jan 28, 2009 11:30 pm
Posts: 1361

Yeah, looks like it is completely upto the USB hub. I have a mcnally powered USB hub and that seems to always boot from the correct hdd. I never tried changing the port where my hdds are plugged though.


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Wed Feb 02, 2011 1:14 pm 
Super Tonidoid
Super Tonidoid
Joined: Fri May 21, 2010 2:50 pm
Posts: 44

@fullerms
I have been moving along the same series of issues with similar level of expertise at linux as you mate

using the UUID method for mounting seems to work best when mounting multiple hdds. however ensuring correct boot order hasnt worked for me yet. right now if i leave a usb audio dongle attached to the hub, on reboot, the plug goes back to nand. have tried almost all permutations but hasnt worked... would be interesting to see if we find a solution together !

spinning down is another issue. using one flash drive with squeezeplug boot and one usb hdd, i havnt been able to see the drive go down yet... any other way u suggest !

_________________
USB Boot DEBIAN | 500GB ext3 | Transmission Torrent with Flexget auto torrent downloading | MPD Server using logitech audio dongle | Wordpress Blog |


Offline
 Profile  
 Post subject: Hard disk spindown script
PostPosted: Wed Feb 02, 2011 10:37 pm 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Jan 17, 2011 1:00 am
Posts: 72

Using the script from website http://hartvig.de/2009/howto-automatica ... in-ubuntu/

Code I used:

# !/bin/sh
# Get new state from diskstats
NEWstate=$(cat /proc/diskstats | grep $1)
echo $NEWstate > NEWstate.txt

# compare md5 sums
md5new=$(md5sum NEWstate.txt | sed 's/ .*//')
md5old=$(md5sum OLDstate.txt | sed 's/ .*//')

# if no changes, power down
if [ "$md5new" = "$md5old" ]; then
sdparm --flexible --command=stop /dev/$1 &>/dev/null
fi

# Write current state to file
echo $NEWstate > OLDstate.txt

------------------End Of Script-------------------------------

crontab entry:

15 * * * * root sh /usr/local/bin/spindown.sh sdb%sdb


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Wed Feb 02, 2011 11:06 pm 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Jan 17, 2011 1:00 am
Posts: 72

Almost there folks. Can any of the experts please help with the remaining few topics? Details in the fist post.


Offline
 Profile  
 Post subject: Re: Hard disk spindown script
PostPosted: Thu Feb 03, 2011 12:53 am 
Super Tonidoid
Super Tonidoid
Joined: Fri May 21, 2010 2:50 pm
Posts: 44

fullerms wrote:
Using the script from website http://hartvig.de/2009/howto-automatica ... in-ubuntu/

Code I used:

# !/bin/sh
# Get new state from diskstats
NEWstate=$(cat /proc/diskstats | grep $1)
echo $NEWstate > NEWstate.txt

# compare md5 sums
md5new=$(md5sum NEWstate.txt | sed 's/ .*//')
md5old=$(md5sum OLDstate.txt | sed 's/ .*//')

# if no changes, power down
if [ "$md5new" = "$md5old" ]; then
sdparm --flexible --command=stop /dev/$1 &>/dev/null
fi

# Write current state to file
echo $NEWstate > OLDstate.txt

------------------End Of Script-------------------------------

crontab entry:

15 * * * * root sh /usr/local/bin/spindown.sh sdb%sdb

Thanks man. I saw this script but is it working when booting off a usb hdd with multiple partitions and swap using squeezeplug debian?

_________________
USB Boot DEBIAN | 500GB ext3 | Transmission Torrent with Flexget auto torrent downloading | MPD Server using logitech audio dongle | Wordpress Blog |


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Thu Feb 03, 2011 2:50 am 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Jan 17, 2011 1:00 am
Posts: 72

No it wont work if you are booting off the same disk you want to spin down. I am using a USB thumb drive to boot, and the USB HDD is used only for data.


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Thu Feb 03, 2011 2:53 am 
Super Tonidoid
Super Tonidoid
Joined: Fri May 21, 2010 2:50 pm
Posts: 44

fullerms wrote:
No it wont work if you are booting off the same disk you want to spin down. I am using a USB thumb drive to boot, and the USB HDD is used only for data.


and u booting ubuntu with tonido or debian aqueezeplug image on the thumbdrive?

_________________
USB Boot DEBIAN | 500GB ext3 | Transmission Torrent with Flexget auto torrent downloading | MPD Server using logitech audio dongle | Wordpress Blog |


Offline
 Profile  
 Post subject: Re: Help on my new tonido plug
PostPosted: Thu Feb 03, 2011 3:12 am 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Jan 17, 2011 1:00 am
Posts: 72

dheerajjotwani wrote:
fullerms wrote:
No it wont work if you are booting off the same disk you want to spin down. I am using a USB thumb drive to boot, and the USB HDD is used only for data.


and u booting ubuntu with tonido or debian aqueezeplug image on the thumbdrive?


Debian Squeezeplug. Can you test with Ubuntu with Tonido and post the results? Will save me the time of redoing everything from scratch. I still need to figure out the boot from specific usb drive issue.


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 2 guests


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: