Koozali.org: home of the SME Server

usb drive do not wake up - need allow_restart

Offline bossies

  • *
  • 8
  • +0/-0
    • Affordable web Design
usb drive do not wake up - need allow_restart
« on: December 12, 2010, 10:59:34 AM »
i have a usb drive that i use for backup purpose - when i do a mount command before i start the backup i get a I/O error.  its a seagate drive and some searching on the net i found they spin down after 15min in inactivity - i further found a patch for it to set the allow_restart parameter but i do not see the same directories in sme - the command below

echo 1 >/sys/class/scsi_disk/0:0:0:0/allow_restart

please help me with this command in sme to fix the problem with the backup drive

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: usb drive do not wake up - need allow_restart
« Reply #1 on: December 12, 2010, 12:11:40 PM »
bossies

There was a similar issue reported in bugzilla in the last few months. The workaround was different to what you ask for, but it worked, so maybe that will apply to your situation.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: usb drive do not wake up - need allow_restart
« Reply #2 on: December 12, 2010, 06:39:36 PM »
i further found a patch for it to set the allow_restart parameter but i do not see the same directories in sme - the command below

echo 1 >/sys/class/scsi_disk/0:0:0:0/allow_restart

please help me with this command in sme to fix the problem with the backup drive
I think you should convert this to the proper disk listed under /dev/disk/ . Did you already have a look there? I have no USB drives to attach at hand to look up the exact commands.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bossies

  • *
  • 8
  • +0/-0
    • Affordable web Design
Re: usb drive do not wake up - need allow_restart
« Reply #3 on: December 12, 2010, 07:10:14 PM »
mary - could you maybe send me the link to the workaround or how to search for it?

cactus - i am still not sure on what to look for - my dir has /by-path/

and then stuff like

pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0
pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0-part1

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: usb drive do not wake up - need allow_restart
« Reply #4 on: December 12, 2010, 11:36:54 PM »
bossies

Clicks Bugs at top of forum, then type something in the search window
eg
USB
backup drive
spin USB drive up
etc

You could also just manually review the list of bugs starting from most recent and work your way backwards.

Edit: Since searched & found
http://bugs.contribs.org/show_bug.cgi?id=5519
particularly comments 25, 30 & 33
(searched on seagate USB)

« Last Edit: December 12, 2010, 11:57:06 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.