How to turn off hard drive in Ubuntu?

Clash Royale CLAN TAG#URR8PPP up vote
6
down vote
favorite
I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)
dual-boot hard-drive power-management usb-drive external-hdd
add a comment |Â
up vote
6
down vote
favorite
I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)
dual-boot hard-drive power-management usb-drive external-hdd
There are similar questions already asked (and answered): askubuntu.com/questions/39760/â¦
â Guilhem Soulas
Sep 8 '15 at 11:01
1
man hdparmsudo hdparm -Y /dev/sdX
â earthmeLon
Sep 8 '15 at 21:08
@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
â AhmedBilal
Sep 9 '15 at 7:42
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)
dual-boot hard-drive power-management usb-drive external-hdd
I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)
dual-boot hard-drive power-management usb-drive external-hdd
asked Sep 8 '15 at 10:49
AhmedBilal
1772411
1772411
There are similar questions already asked (and answered): askubuntu.com/questions/39760/â¦
â Guilhem Soulas
Sep 8 '15 at 11:01
1
man hdparmsudo hdparm -Y /dev/sdX
â earthmeLon
Sep 8 '15 at 21:08
@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
â AhmedBilal
Sep 9 '15 at 7:42
add a comment |Â
There are similar questions already asked (and answered): askubuntu.com/questions/39760/â¦
â Guilhem Soulas
Sep 8 '15 at 11:01
1
man hdparmsudo hdparm -Y /dev/sdX
â earthmeLon
Sep 8 '15 at 21:08
@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
â AhmedBilal
Sep 9 '15 at 7:42
There are similar questions already asked (and answered): askubuntu.com/questions/39760/â¦
â Guilhem Soulas
Sep 8 '15 at 11:01
There are similar questions already asked (and answered): askubuntu.com/questions/39760/â¦
â Guilhem Soulas
Sep 8 '15 at 11:01
1
1
man hdparm sudo hdparm -Y /dev/sdXâ earthmeLon
Sep 8 '15 at 21:08
man hdparm sudo hdparm -Y /dev/sdXâ earthmeLon
Sep 8 '15 at 21:08
@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
â AhmedBilal
Sep 9 '15 at 7:42
@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
â AhmedBilal
Sep 9 '15 at 7:42
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
9
down vote
accepted
sudo hdparm -Y /dev/sdX
where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.
In this case, you'd run:
sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE
man hdparm
-Y Force an IDE drive to immediately enter the lowest power
consumption sleep mode, causing it to shut down completely. A
hard or soft reset is required before the drive can be accessed
again (the Linux IDE driver will automatically handle issuing a
reset if/when needed). The current power mode status can be
checked using the -C option.
add a comment |Â
up vote
0
down vote
You can use the following (here sdc is the name of corresponding block device of interest):
sync
echo 1 > /sys/block/sdc/device/delete
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
9
down vote
accepted
sudo hdparm -Y /dev/sdX
where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.
In this case, you'd run:
sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE
man hdparm
-Y Force an IDE drive to immediately enter the lowest power
consumption sleep mode, causing it to shut down completely. A
hard or soft reset is required before the drive can be accessed
again (the Linux IDE driver will automatically handle issuing a
reset if/when needed). The current power mode status can be
checked using the -C option.
add a comment |Â
up vote
9
down vote
accepted
sudo hdparm -Y /dev/sdX
where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.
In this case, you'd run:
sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE
man hdparm
-Y Force an IDE drive to immediately enter the lowest power
consumption sleep mode, causing it to shut down completely. A
hard or soft reset is required before the drive can be accessed
again (the Linux IDE driver will automatically handle issuing a
reset if/when needed). The current power mode status can be
checked using the -C option.
add a comment |Â
up vote
9
down vote
accepted
up vote
9
down vote
accepted
sudo hdparm -Y /dev/sdX
where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.
In this case, you'd run:
sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE
man hdparm
-Y Force an IDE drive to immediately enter the lowest power
consumption sleep mode, causing it to shut down completely. A
hard or soft reset is required before the drive can be accessed
again (the Linux IDE driver will automatically handle issuing a
reset if/when needed). The current power mode status can be
checked using the -C option.
sudo hdparm -Y /dev/sdX
where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.
In this case, you'd run:
sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE
man hdparm
-Y Force an IDE drive to immediately enter the lowest power
consumption sleep mode, causing it to shut down completely. A
hard or soft reset is required before the drive can be accessed
again (the Linux IDE driver will automatically handle issuing a
reset if/when needed). The current power mode status can be
checked using the -C option.
edited Dec 20 '17 at 7:53
muru
129k19272462
129k19272462
answered Sep 8 '15 at 21:12
earthmeLon
5,8431547
5,8431547
add a comment |Â
add a comment |Â
up vote
0
down vote
You can use the following (here sdc is the name of corresponding block device of interest):
sync
echo 1 > /sys/block/sdc/device/delete
add a comment |Â
up vote
0
down vote
You can use the following (here sdc is the name of corresponding block device of interest):
sync
echo 1 > /sys/block/sdc/device/delete
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You can use the following (here sdc is the name of corresponding block device of interest):
sync
echo 1 > /sys/block/sdc/device/delete
You can use the following (here sdc is the name of corresponding block device of interest):
sync
echo 1 > /sys/block/sdc/device/delete
answered Dec 20 '17 at 7:35
Orient
199111
199111
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f671683%2fhow-to-turn-off-hard-drive-in-ubuntu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
There are similar questions already asked (and answered): askubuntu.com/questions/39760/â¦
â Guilhem Soulas
Sep 8 '15 at 11:01
1
man hdparmsudo hdparm -Y /dev/sdXâ earthmeLon
Sep 8 '15 at 21:08
@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
â AhmedBilal
Sep 9 '15 at 7:42