Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running an ubuntu 12.04 on my laptop. And, I'm going to use it as a home server.

I have 3 TiB-hard disk connected through a usb port. This disk is necessary. But, every time I close the lid of the laptop, I can't use it because it is disconnected from the laptop.

How can I keep the usb-disk mounted on my laptop.

My laptop has an atom CPU, and it is 2 yrs old.

share|improve this question
    
Does the laptop enter some kind of sleep mode when you close the lid, or is it still fully up and running? –  Michael Kjörling Jul 2 '12 at 13:18
    
In general, laptops tend to not be very well suited as (even low-powered) servers because of limited heat dissipation capability. This will almost certainly become a concern if you run it 24/7. –  Michael Kjörling Jul 2 '12 at 13:19
    
I forgot I mentioned it. It doesn't fall into sleep since I prevent it from sleeping. I put my laptop upside down to help it cooled a little bit. It is still too warm as you mentioned. I'm looking for the coldest place in my house for now. –  19 Lee Jul 2 '12 at 14:46

1 Answer 1

up vote 2 down vote accepted
# disable external wake-up; do this only once
echo disabled > /sys/bus/usb/devices/usb1/power/wakeup
# turn USB power on
echo on > /sys/bus/usb/devices/usb1/power/level
# turn suspend off
echo suspend > /sys/bus/usb/devices/usb1/power/level

also go to bios and check usb settings.Some bios have option named always on usb. enable it. references: http://askubuntu.com/questions/99474/suspend-usb-power-to-a-laptop-cooling-pad-when-going-to-suspend-mode

http://stackoverflow.com/questions/4702216/controlling-a-usb-power-supply-on-off-with-linux

share|improve this answer
    
You're a genius! I guess the following is working: echo disabled > sudo /sys/bus/usb/devices/usb5/power/wakeup –  19 Lee Jul 2 '12 at 13:26
    
Thank you dude. –  gladiator2345 Jul 2 '12 at 14:30
    
@19Lee if you found this answer helpful, please consider accepting it by clicking the check box mark just below the up/down vote arrows. –  Michael Kjörling Jul 2 '12 at 14:36
    
Now I clicked. Sorry for being late. This was the first time I asked something. :) –  19 Lee Jul 2 '12 at 14:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.