Question to HDD Spindown

Question to HDD Spindown

Postby eselrob » Sat Mar 24, 2012 3:50 pm

Hi,

i am new here in the Board.

I have a Network Space 2 with the original firmware V2.2.5. I have activated HDD Spindown after 15 minutes, but it work only for the internal HDD.

My question is, does the fvdw-sl-12-0 Firmware has a support for HDD-Spindown, internal-HDD and USB-HDD?

I have tested my external-HDD on a Fritzbox, there is the spindown working.
eselrob
 
Posts: 2
Joined: Sat Mar 24, 2012 3:32 pm

Re: Question to HDD Spindown

Postby fvdw » Sun Mar 25, 2012 8:52 am

For the internal HDD there is a spin down function build in, but not for an external USB harddisk. Does a usb HDD, not spin down by themselves if not in use ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Question to HDD Spindown

Postby eselrob » Sun Mar 25, 2012 9:42 am

There are three types of external HDDs

Type 1:
Build-In Control with independent Power-Control (like Western Digital HDD)

Type 2:
Spindown is controlled by the connected System (most cheap cases)

Type 3:
HHD Spindown is not working

The Spindown funktion is integrated in the FritzBox from AVM and as well in the Freetz extension for the FritzBox (http://www.wehavemorefun.de/fritzbox/in ... E_SPINDOWN)

Do you think it is possible to implement this funktion in your firmware?

I have found the Freetz Spindown script here - http://www.heimpold.de/freetz/ - "spindown.sh"
eselrob
 
Posts: 2
Joined: Sat Mar 24, 2012 3:32 pm

Re: Question to HDD Spindown

Postby fvdw » Sun Mar 25, 2012 2:38 pm

thanks for this info , I will look into it and see if it is possible
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Question to HDD Spindown

Postby fvdw » Tue Mar 27, 2012 6:59 pm

I look at this and this scrips needs the sg3_utils command sg_start to stop the usb disk. I downloaded and compiled sg3_utils and the command indeed works on a usb disk I connected. So in principle all ingredients are there to put a spin down function of the usb disk into the firmware :mrgreen:
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Question to HDD Spindown

Postby matzi » Mon Oct 01, 2012 5:44 pm

Is this subject regarded in the latest firmware? I tried sg_stop with putty but the command is not found. Would appreciate to get this function because my external USB disk also does not spindown on its own.
matzi
Donator VIP
Donator VIP
 
Posts: 253
Joined: Wed Jul 06, 2011 8:08 am
Location: Hannover Germany

Re: Question to HDD Spindown

Postby fvdw » Mon Oct 01, 2012 7:01 pm

O yes it is included but you should use sg_start (read the help text of the command) :mrgreen:
However no script is included to automatic spin down the usb disk, I forgot about it

Code: Select all
/usr/bin$ sg_start --help
Usage: sg_start [--eject] [--fl=FL] [--help] [--immed] [--load] [--loej]
                [--mod=PC_MOD] [--noflush] [--pc=PC] [--readonly]
                [--start] [--stop] [--verbose] [--version] DEVICE
  where:
    --eject|-e      stop unit then eject the medium
    --fl=FL|-f FL    format layer number (mmc5)
    --help|-h       print usage message then exit
    --immed|-i      device should return control after receiving cdb,
                    default action is to wait until action is complete
    --load|-l       load medium then start the unit
    --loej|-L       load or eject, corresponds to LOEJ bit in cdb;
                    load when START bit also set, else eject
    --mod=PC_MOD|-m PC_MOD    power condition modifier (def: 0) (sbc)
    --noflush|-n    no flush prior to operation that limits access (sbc)
    --pc=PC|-p PC    power condition: 0 (default) -> no power condition,
                    1 -> active, 2 -> idle, 3 -> standby, 5 -> sleep (mmc)
    --readonly|-r    open DEVICE read-only (def: read-write)
                     recommended if DEVICE is ATA disk
    --start|-s      start unit, corresponds to START bit in cdb,
                    default (START=1) if no other options given
    --stop|-S       stop unit (e.g. spin down disk)
    --verbose|-v    increase verbosity
    --version|-V    print version string then exit

    Example: 'sg_start --stop /dev/sdb'    stops unit
             'sg_start --eject /dev/scd0'  stops unit and ejects medium

Performs a SCSI START STOP UNIT command
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 6 guests