Power off USB mass storage at computer shut down??
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Power off USB mass storage at computer shut down??
Running a Seagate FreeAgent GoFles 2TB on an USB3-port as mass storage at Linux Mint LMDE 64 bit.
Seems to work fine with sbackup.
However when I turn off my computer, the external HDD is still spinning.
I have a dual boot and if I turn off the computer with WinXP-pro 64 running it also powers off the external.
If Windows can do it, Linux ought to do it too, I guess. I just can't figure out how to make it.
If I unmount manually it powers off. (It is starting again at once)
Eek! That is a detail. A nasty one at that. I issue the unmount on mine and the thing spins down and stays there. So, I hope to be forgiven for this short-sightedness....
Hm, well, thank you. It seems a long way to go to just unmount and power off manually. It is frustrating to see that Windows does this natively and automaticly, without asking. For Linux it takes installing a certain program and writing scripts. I had hoped that just I had forgotten some simple command.
Thank you Thor for caring
For Linux it takes installing a certain program and writing scripts. I had hoped that just I had forgotten some simple command.
Well, I think it ties in with the overall philosophy on Linux: it is what you want it to be, not what the makers/programmers/producers want it to be. And yes, in that focus, Linux can be a challenge. But following the path allows you to become more self-reliant, a feature not included in windows where one (I at least) always feels "at the mercy of the machine" where in Linux, it's the other way round.
Well, I think it ties in with the overall philosophy on Linux: it is what you want it to be, not what the makers/programmers/producers want it to be.
yes, that's a significant part of its charm.
Quote:
Originally Posted by Thor_2.0
[...] windows where one (I at least) always feels "at the mercy of the machine" where in Linux, it's the other way round.
Thor, it's not being at the mercy of the machine. That can always be helped. There are schematics and data sheets.
It's being at the mercy of those guys in Redmond who decide what we are to like or not to like; what we should know about and what we shouldn't.
It's being at the mercy of those guys in Redmond who decide what we are to like or not to like; what we should know about and what we shouldn't
You read my mind... ... and you hit the very reason why I needed Linux, still need it and will always need it: freedom...but freedom is inherent to the human design, it seems...
Well, dear philosophers, could some of you perchance offer a solution to the problem of making Linux power off my external HDD when I turn off my computer:^) I still don't know how Windows makes it and why Linux doesn't. What is the trick those redmond guys do, that can't repeat?:^)
Well, to put it simply, the shutdown script has to do the work here, this guy found a way...seemed to help him with a similar challenge...
Edit : in Arch (dunnow about the others...sorry) the shutdown script is in /etc/rc.shutdown (go figure...) - maybe a great spot to put the link to the script...
Last edited by ButterflyMelissa; 06-24-2011 at 04:04 AM.
Well, to put it simply, the shutdown script has to do the work here, this guy found a way...seemed to help him with a similar challenge...
Edit : in Arch (dunnow about the others...sorry) the shutdown script is in /etc/rc.shutdown (go figure...) - maybe a great spot to put the link to the script...
Maybe /etc/rc6.d would be the place in Debian? Still I am not sure they address exactly the same problem. I try to make the script work. One of those persons seems to do so however and envises a change in the Linux-kernel ( here)
I'm not sure if I dare to change any in the kernel and I am still a bit surprised that Linux doesn't make this as easily as Windows do. There ought to be some simple way since I don't think other people's external harddrives stand humming when computers are shut off, do they?
The point is that Linux, unlike the "other one", does not make assumptions about the target system. That adds both to its huge adaptability and its huge learning curve.
Quote:
I'm not sure if I dare to change any in the kernel
Let that (PLEASE) be the very last option. A kernel can break, leaving you with a useless system.
Have you gotten the script to work from the console? If so, placing it in a shutdown script ought to do. I looked around for you...maybe this page can help...I hope.
Have you gotten the script to work from the console? If so, placing it in a shutdown script ought to do. I looked around for you...maybe this page can help...I hope.
Thor
No. I don't know how to make it work. My device seems to be: Bus 002 Device 002: ID 0bc2:50a1 Seagate RSS LLC and it is /dev/sdc
I have tried to exchange it in the script but the hdd doesn't even flinch when I run the script.
Sorry, but this is far above my knowlege so I behave clumsily, I fear.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.