Hello,
i have written a patch to transfer the swapspace of a QNAP X09 to a USB memory stick. This patch also allows you to copy the SSODS installation and Squeezecenter to USB.
Combined both, my QNAP TS109 pro goes into HDD Standby (even with Date/Time screensaver)
Edit:
Removed from server (new version see below)
UsbUtil.zip
Up to now it is a very beta version (which works well since one week on my system). You use it at your own risk.
1. Download the file and copy it to Public share.
2. open putty and go to public share
3. Unzip the file with unzip
4. install it with ./usbutil-ts.sh install usbutility.tar.gz
5. start utility with ./usbutil.sh
You will se a main menu where you can choose between Swap and SSOTS USB util
For the use of the tool you have to plug a memory stick into the QNAP
In the swap section, you can choose a USB device where you can put the swapspace. You can transfer the swap to this file and you can enable autostart during boot.
In the SSOTS USB section you can copy the files to an usb device and you can enable autostart --> then the system will link /volume1 to usb if avail during startup and if ssods is located there. You can manually start and stop SSOTS and set the link.
Please not that there is no guarantee that it works perfectly and please ensure that you have a backup of your data. You use this tool at your own risk
mr_hyde
Results 1 to 10 of 132
-
2008-03-27, 12:22 #1Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
Patch for HDD Standby on QNAP X09
Last edited by mr_hyde; 2008-03-30 at 06:14.
2 x Squeezebox 3 - 1 x Squeezebox Touch - SSOTS 4.14 - Squeezecenter 7.7.3 - QNAP TS439 Pro (3.6.3) - 4 x 500 GB Hitachi (RAID5)
-
2008-03-27, 23:25 #2Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
-
2008-03-29, 11:02 #3Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
new version 0.2
Hello,
i have performed some improvements.
Revision 0.2
- Overall USB status can be displayed
- Check, if USB fs is ext3
- Public share is linked to USB -> Squeezecenter updates can be applied through SSOTS
- 'Hook into autorun.sh' is included in usbutil.sh, since upgrade of SSOTS resets the adjustment.
- install routine has different name: ./inst_usbutil_ts.sh
Edit:
Removed from server (new version see below)
usbutil_r02.zip
Patch works stable for me and tool goes also into standby during internet radio streaming.Last edited by mr_hyde; 2008-03-30 at 06:14.
2 x Squeezebox 3 - 1 x Squeezebox Touch - SSOTS 4.14 - Squeezecenter 7.7.3 - QNAP TS439 Pro (3.6.3) - 4 x 500 GB Hitachi (RAID5)
-
2008-03-30, 06:10 #4Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
Minor improvements -> 0.2a
I've made just some minor improvements.
- added SSODS startup check in general status
- use of ps from SSODS since the regular ps can cause problems
EDIT:
removed from server
usbutil_r02a.zipLast edited by mr_hyde; 2008-04-10 at 12:05.
2 x Squeezebox 3 - 1 x Squeezebox Touch - SSOTS 4.14 - Squeezecenter 7.7.3 - QNAP TS439 Pro (3.6.3) - 4 x 500 GB Hitachi (RAID5)
-
2008-04-01, 11:08 #5Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
Minor imrpovements and SMART HDD info r03
2 x Squeezebox 3 - 1 x Squeezebox Touch - SSOTS 4.14 - Squeezecenter 7.7.3 - QNAP TS439 Pro (3.6.3) - 4 x 500 GB Hitachi (RAID5)
-
2008-04-01, 14:48 #6Junior Member
- Join Date
- Mar 2008
- Posts
- 19
I`ve just installed version r_03 and it seems to work fine now.
-
2008-04-01, 23:14 #7Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
!![BUG in r03]!!
Hello,
i've found a bug in r03 (this actually caused no problem, but it could).
Under certain conditions (restart of device, USB stick is mounted and SSODS is not found on USB), this could delete your Public share!!!
I've updated the version on the net (still r03). Just perform a new installation with the actual version or change the file /share/..../USBSC/usbstart.sh
remove the 'r' from
rm -rf $USBLNIK/$PUBLIC
to
rm -f $USBLNIK/$PUBLIC
The there will be no recursive rm
I am on a buisness trip for one week from today on. Next week i will find a better solution and i will release it.
Code:#!/bin/sh set -x BASE_LOCATIONS="/share/HDA_DATA /share/MD0_DATA" PUBLIC="Public" for location in $BASE_LOCATIONS ; do if [ -d "$location/$PUBLIC" ] ; then USBLINK=$location BASE_DIR=$location/USBSC PUBLICDIR=$location/$PUBLIC fi done USBSCSTART=${USBLINK}/USBSC/START_SC_USB if [ -f ${USBSCSTART} ]; then cat /proc/mounts | awk '{print $2}' | grep external > usbmount if [ -f usbmount ]; then while read LINE do if [ -f ${LINE}/SSODS/etc/init.d/rc.ssods ]; then USBLINK=${LINE} fi set $LINE done < usbmount rm -f usbmount delete rm -rf $USBLNIK/$PUBLIC add rm -f $USBLNIK/$PUBLIC ln -sf $PUBLICDIR $USBLINK/$PUBLIC fi fi ln -sf ${USBLINK} /volume1 # SSODS (keep the tag!) $BASE_DIR/001_autoswap.sh /volume1/SSODS/etc/init.d/rc.ssods start # SSODS (keep the tag!) #eof2 x Squeezebox 3 - 1 x Squeezebox Touch - SSOTS 4.14 - Squeezecenter 7.7.3 - QNAP TS439 Pro (3.6.3) - 4 x 500 GB Hitachi (RAID5)
-
2008-04-04, 07:01 #8
Very interesting (apart the side effect that could erase the Public folder!), did you posted also on QNAP forum?! Maybe QNAP's guys can implement a similar solution as permanent on their boxes... thanks for that.
QNAP Club Italy
-----------------------------------------------------------------------------------------------------
"When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris."
-
2008-04-04, 10:09 #9Senior Member
- Join Date
- Jun 2006
- Location
- Portland, OR
- Posts
- 564
-
2008-04-04, 15:42 #10Junior Member
- Join Date
- Apr 2008
- Posts
- 1
Hello mr_hyde,
I want to try out your Hdds-Patch. Maybe I have not found the value in this forum, but how many capacities must the USB stick have to work fine? Another question, if I put the files on the stick, do I not slow down the system? I think a Hdd is much faster than an USB stick.
Greetings
Jens

Reply With Quote


