Doesn't it automatically unmount when you shutdown?
Doesn't it automatically unmount when you shutdown?
Personally, I don't trust mine to. I'm not interested in having to replace 260 GB of data because the unmount took too long in shutdown and the OS forced it to shut off. But yes, it should.
God does not play dice with the universe - Albert Einstein
Sure I do, I just use loaded dice. - warfacegod
An open forum. Its a free for all. Check us out. https://openlinuxforums.org/
Fair enough, but arguably, if you feel that the OS isn't good enough to accommodate a robust auto-unmount system then it's probably not robust enough to do proper copies, writes, reads, etc. etc. You get my point right?
Anyway little of topic!
Anyone else have any ideas?
God does not play dice with the universe - Albert Einstein
Sure I do, I just use loaded dice. - warfacegod
An open forum. Its a free for all. Check us out. https://openlinuxforums.org/
God does not play dice with the universe - Albert Einstein
Sure I do, I just use loaded dice. - warfacegod
An open forum. Its a free for all. Check us out. https://openlinuxforums.org/
Your problem is you're using an active USB hub. The hub don't know the laptop is in suspend, therefore the power stays on. What I would do is see if there's such a thing as a "smart" hub. I don't think a script will cut the power in your case.
MCP, A+/Linux+ Certified IT Technician
System Specs | Dress up your "Super Button" FREE
"If sometimes you can't be good, then be VERY good at being naughty!"
No offence but if you'd read above you would have noticed that I was specifically talking about the fan and small external hard drive which are NOT connected through the hub. I don't really mind the hub staying on. But I don't want the HD and fan to always stay on.
MCP, A+/Linux+ Certified IT Technician
System Specs | Dress up your "Super Button" FREE
"If sometimes you can't be good, then be VERY good at being naughty!"
Have a look at this:
http://www.linuxquestions.org/questi...b-port-613304/
In particular, post #8 (I know post #5 says it's not possible but I'd still try this):
power off:
power on:Code:echo suspend >/sys/bus/usb/devices/1-2/power/level
replacing 1-2 with the appropriate port numberCode:echo auto >/sys/bus/usb/devices/1-2/power/level
If /sys/bus/... as above doesn't exist, it might still work if you can find the right location.
If this does work, you can incorporate it into the suspend and resume process (I've seen posts about that before) but obviously try it manually first. Probably needs 'sudo echo...' to get the necessary permission.
Bookmarks