Shutdown Ubuntu by script

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I need some way to override shutting down of Ubutnu, because it freezes on shutdown. It's kernel problem (I tried very different distros).
System passes "reached target shutdown" and little after it freeze.
kernel scripts shutdown system
 |Â
show 2 more comments
up vote
0
down vote
favorite
I need some way to override shutting down of Ubutnu, because it freezes on shutdown. It's kernel problem (I tried very different distros).
System passes "reached target shutdown" and little after it freeze.
kernel scripts shutdown system
1
One way to work around this problem and still shut down gracefully is the SysRq REISUO method. See the following link, Restart Ubuntu via keyboard
â sudodus
May 18 at 20:38
1
If it's a kernel problem, perhaps you should look into that instead...
â heemayl
May 18 at 20:49
This problem is often said to be caused by a race condition (that affects some computer and kernel combinations). It may disappear after a kernel upgrade, but I think it is difficult to solve unless you downgrade to an older kernel or replace some hardware. If you can shutdown gracefully and avoid corrupting the file system, you can live with it.
â sudodus
May 18 at 21:02
1
@sudodus REISUO and REISUB do not work. If I reach "target shutdown" it means it will not corrupt anything, right ?
â R S
May 18 at 22:41
1
I am not sure but I think you are right about that. Anyway, if the computer shuts down (electrically), when you press quickly on the power button, things should be OK. If you have to press the power button for around 4 seconds, things may be worse.
â sudodus
May 19 at 5:51
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need some way to override shutting down of Ubutnu, because it freezes on shutdown. It's kernel problem (I tried very different distros).
System passes "reached target shutdown" and little after it freeze.
kernel scripts shutdown system
I need some way to override shutting down of Ubutnu, because it freezes on shutdown. It's kernel problem (I tried very different distros).
System passes "reached target shutdown" and little after it freeze.
kernel scripts shutdown system
edited May 20 at 1:33
asked May 18 at 20:03
R S
7251130
7251130
1
One way to work around this problem and still shut down gracefully is the SysRq REISUO method. See the following link, Restart Ubuntu via keyboard
â sudodus
May 18 at 20:38
1
If it's a kernel problem, perhaps you should look into that instead...
â heemayl
May 18 at 20:49
This problem is often said to be caused by a race condition (that affects some computer and kernel combinations). It may disappear after a kernel upgrade, but I think it is difficult to solve unless you downgrade to an older kernel or replace some hardware. If you can shutdown gracefully and avoid corrupting the file system, you can live with it.
â sudodus
May 18 at 21:02
1
@sudodus REISUO and REISUB do not work. If I reach "target shutdown" it means it will not corrupt anything, right ?
â R S
May 18 at 22:41
1
I am not sure but I think you are right about that. Anyway, if the computer shuts down (electrically), when you press quickly on the power button, things should be OK. If you have to press the power button for around 4 seconds, things may be worse.
â sudodus
May 19 at 5:51
 |Â
show 2 more comments
1
One way to work around this problem and still shut down gracefully is the SysRq REISUO method. See the following link, Restart Ubuntu via keyboard
â sudodus
May 18 at 20:38
1
If it's a kernel problem, perhaps you should look into that instead...
â heemayl
May 18 at 20:49
This problem is often said to be caused by a race condition (that affects some computer and kernel combinations). It may disappear after a kernel upgrade, but I think it is difficult to solve unless you downgrade to an older kernel or replace some hardware. If you can shutdown gracefully and avoid corrupting the file system, you can live with it.
â sudodus
May 18 at 21:02
1
@sudodus REISUO and REISUB do not work. If I reach "target shutdown" it means it will not corrupt anything, right ?
â R S
May 18 at 22:41
1
I am not sure but I think you are right about that. Anyway, if the computer shuts down (electrically), when you press quickly on the power button, things should be OK. If you have to press the power button for around 4 seconds, things may be worse.
â sudodus
May 19 at 5:51
1
1
One way to work around this problem and still shut down gracefully is the SysRq REISUO method. See the following link, Restart Ubuntu via keyboard
â sudodus
May 18 at 20:38
One way to work around this problem and still shut down gracefully is the SysRq REISUO method. See the following link, Restart Ubuntu via keyboard
â sudodus
May 18 at 20:38
1
1
If it's a kernel problem, perhaps you should look into that instead...
â heemayl
May 18 at 20:49
If it's a kernel problem, perhaps you should look into that instead...
â heemayl
May 18 at 20:49
This problem is often said to be caused by a race condition (that affects some computer and kernel combinations). It may disappear after a kernel upgrade, but I think it is difficult to solve unless you downgrade to an older kernel or replace some hardware. If you can shutdown gracefully and avoid corrupting the file system, you can live with it.
â sudodus
May 18 at 21:02
This problem is often said to be caused by a race condition (that affects some computer and kernel combinations). It may disappear after a kernel upgrade, but I think it is difficult to solve unless you downgrade to an older kernel or replace some hardware. If you can shutdown gracefully and avoid corrupting the file system, you can live with it.
â sudodus
May 18 at 21:02
1
1
@sudodus REISUO and REISUB do not work. If I reach "target shutdown" it means it will not corrupt anything, right ?
â R S
May 18 at 22:41
@sudodus REISUO and REISUB do not work. If I reach "target shutdown" it means it will not corrupt anything, right ?
â R S
May 18 at 22:41
1
1
I am not sure but I think you are right about that. Anyway, if the computer shuts down (electrically), when you press quickly on the power button, things should be OK. If you have to press the power button for around 4 seconds, things may be worse.
â sudodus
May 19 at 5:51
I am not sure but I think you are right about that. Anyway, if the computer shuts down (electrically), when you press quickly on the power button, things should be OK. If you have to press the power button for around 4 seconds, things may be worse.
â sudodus
May 19 at 5:51
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1037881%2fshutdown-ubuntu-by-script%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
1
One way to work around this problem and still shut down gracefully is the SysRq REISUO method. See the following link, Restart Ubuntu via keyboard
â sudodus
May 18 at 20:38
1
If it's a kernel problem, perhaps you should look into that instead...
â heemayl
May 18 at 20:49
This problem is often said to be caused by a race condition (that affects some computer and kernel combinations). It may disappear after a kernel upgrade, but I think it is difficult to solve unless you downgrade to an older kernel or replace some hardware. If you can shutdown gracefully and avoid corrupting the file system, you can live with it.
â sudodus
May 18 at 21:02
1
@sudodus REISUO and REISUB do not work. If I reach "target shutdown" it means it will not corrupt anything, right ?
â R S
May 18 at 22:41
1
I am not sure but I think you are right about that. Anyway, if the computer shuts down (electrically), when you press quickly on the power button, things should be OK. If you have to press the power button for around 4 seconds, things may be worse.
â sudodus
May 19 at 5:51