• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Hard reset on linux

Joined
Dec 24, 2013
Messages
8 (0.01/day)
Likes
0
#1
Hey guys. I know this is subjective but does hard reset damage the Linux Os? I am currently using Pear OS but also i do use other OS so i want to know. Does it damage the OS like the way in windows?
 
Joined
Feb 9, 2009
Messages
1,469 (0.45/day)
Likes
381
Location
Toronto
Processor i7-2670QM / Q9550 3.6ghz
Motherboard laptop / Asus P5Q-E
Cooling laptop / Cooler Master Hyper 212
Memory 2x4gb ddr3sd / 2x2gb ddr2
Video Card(s) 570m / MSI 660 Gaming OC
Storage ST9750420AS / ST1000DM003
Display(s) BenQ FP241VW / BenQ GW2265HM
Case MSI gx780 / Corsair 500r
Audio Device(s) onboard
Power Supply laptop / Corsair 750tx
Mouse Steelseries Kinzu V2 / Logitech M120
Keyboard Logitech Deluxe 250 / Logitech K120
Software Windows 7
#2
since when does it 'damage' windows, that's only if you're writing data (i've had bsods during saving a game while my OC was unstable that broke the very same save files the game was trying to write)
 
Joined
Oct 29, 2012
Messages
1,889 (0.99/day)
Likes
742
Location
CZ
System Name TITAN Slayer / CPUCannon / MassFX
Processor i7 5960X @ 4.6Ghz / i7 3960x @5.0Ghz / FX6350 @ 4.?Ghz
Motherboard Rampage V Extreme / Rampage IV Extreme / MSI 970 Gaming
Cooling Phanteks PHTC14PE 2.5K 145mm TRs / Custom waterloop / Phanteks PHTC14PE + 3K 140mm Noctuas
Memory Crucial 2666 11-13-13-25 1.45V / G.skill RipjawsX 2400 10-12-12-34 1.7V / Crucial 2133 9-9-9-27 1.7V
Video Card(s) 3 Fury X in CF / R9 Fury 3840 cores 1145/570 1.3V / Nothing ATM
Storage 500GB Crucial SSD and 3TB WD Black / WD 1TB Black(OS) + WD 3TB Green / WD 1TB Blue
Display(s) LG 29UM67 80Hz/Asus mx299q 2560x1080 @ 84Hz / Asus VX239 1920x1080 @60hz
Case Dismatech easy v3.0 / Xigmatek Alfar (Open side panel)
Audio Device(s) M-audio M-track / realtek ALC 1150
Power Supply EVGA G2 1600W / CoolerMaster V1000 / Seasonic 620 M12-II
Mouse Mouse in review process/Razer Naga Epic 2011/Razer Naga 2014
Keyboard Keyboard in review process / Razer Blackwidow Ultimate 2014/Razer Blackwidow Ultimate 2011
Software Windows 7 Ultimate / Windows 7 ultimate / Windows 7 ultimate
Benchmark Scores cinebench 15.41 3960x @ 5.3ghz Wprime32m 3.352 3960x @ 5.25ghz Super PI 32m: 6m 42s 472ms @5.25ghz
#3
Anything that isn't malware doesn't damage the OS it just writes a bunch of files into a directory that only run when you want to run them unless you accidentally set them up to start automatically.
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
10,511 (4.82/day)
Likes
5,594
Location
Concord, NH
System Name Kratos
Processor Intel Core i7 3930k @ 4.2Ghz
Motherboard ASUS P9X79 Deluxe
Cooling Zalman CPNS9900MAX 130mm
Memory G.Skill DDR3-2133, 16gb (4x4gb) @ 9-11-10-28-108-1T 1.65v
Video Card(s) MSI AMD Radeon R9 390 GAMING 8GB @ PCI-E 3.0
Storage 2x120Gb SATA3 Corsair Force GT Raid-0, 4x1Tb RAID-5, 1x500GB
Display(s) 1x LG 27UD69P (4k), 2x Dell S2340M (1080p)
Case Antec 1200
Audio Device(s) Onboard Realtek® ALC898 8-Channel High Definition Audio
Power Supply Seasonic 1000-watt 80 PLUS Platinum
Mouse Logitech G602
Keyboard Rosewill RK-9100
Software Ubuntu 17.10
Benchmark Scores Benchmarks aren't everything.
#4
Hey guys. I know this is subjective but does hard reset damage the Linux Os? I am currently using Pear OS but also i do use other OS so i want to know. Does it damage the OS like the way in windows?
Will it damage it? Most likely not.

Can it damage it? Maybe, but most likely not.

Do you have anything to worry about if you pressed the reset button? Probably not.
 
Joined
Oct 29, 2012
Messages
1,889 (0.99/day)
Likes
742
Location
CZ
System Name TITAN Slayer / CPUCannon / MassFX
Processor i7 5960X @ 4.6Ghz / i7 3960x @5.0Ghz / FX6350 @ 4.?Ghz
Motherboard Rampage V Extreme / Rampage IV Extreme / MSI 970 Gaming
Cooling Phanteks PHTC14PE 2.5K 145mm TRs / Custom waterloop / Phanteks PHTC14PE + 3K 140mm Noctuas
Memory Crucial 2666 11-13-13-25 1.45V / G.skill RipjawsX 2400 10-12-12-34 1.7V / Crucial 2133 9-9-9-27 1.7V
Video Card(s) 3 Fury X in CF / R9 Fury 3840 cores 1145/570 1.3V / Nothing ATM
Storage 500GB Crucial SSD and 3TB WD Black / WD 1TB Black(OS) + WD 3TB Green / WD 1TB Blue
Display(s) LG 29UM67 80Hz/Asus mx299q 2560x1080 @ 84Hz / Asus VX239 1920x1080 @60hz
Case Dismatech easy v3.0 / Xigmatek Alfar (Open side panel)
Audio Device(s) M-audio M-track / realtek ALC 1150
Power Supply EVGA G2 1600W / CoolerMaster V1000 / Seasonic 620 M12-II
Mouse Mouse in review process/Razer Naga Epic 2011/Razer Naga 2014
Keyboard Keyboard in review process / Razer Blackwidow Ultimate 2014/Razer Blackwidow Ultimate 2011
Software Windows 7 Ultimate / Windows 7 ultimate / Windows 7 ultimate
Benchmark Scores cinebench 15.41 3960x @ 5.3ghz Wprime32m 3.352 3960x @ 5.25ghz Super PI 32m: 6m 42s 472ms @5.25ghz
#5
Wait did you mean hard reset as in pressing the reset button or Hard Reset the game?
 
Joined
Sep 1, 2010
Messages
5,936 (2.20/day)
Likes
6,640
#6
If system already crashed/hung it means no any reads/writes performed. Hard reset itself can't damage anything.
 

Mindweaver

Moderato®™
Staff member
Joined
Apr 16, 2009
Messages
6,598 (2.06/day)
Likes
3,921
Location
Charleston, SC
System Name Sechs / EyeSeven
Processor i7 5820k @ 4.5ghz / i7 2600k @ 4.0Ghz
Motherboard X99S GAMING 7 / ASRock Z68 Extreme3 Gen3
Cooling CORSAIR Hydro Series H100i Extreme / Stock cooler... H50 leaked!..
Memory G.Skill DDR4 2800 16GB 4x4GB / G.Skill DDR3 1600 8gb 2x4GB
Video Card(s) PNY Quadro K2000 / MSI GTX 970 GAMING 4Gb
Storage Samsung 850 PRO 256GB SSD /Intel 240gb, corsair 120gb SSD, 3x 1 tb s storage
Display(s) 2x Acer G276HL 27" 1080p / 3x Acer 22" Nvidia surround
Case Phanteks “Enthoo Pro series”/ Cooler Master Storm Scout
Audio Device(s) Azalia Realtek ALC1150 / SB X-Fi Gamer
Power Supply Corsair CXM CX600M / Corsair 600w
Mouse Razer DeathAdder Chroma / Razer DeathAdder
Keyboard Razer BlackWidow Ultimate /
Software Windows 10 Pro x64 / Windows 10 Pro x64
#7
Yea, like Drone said if the system is already crashed/hung then no reads or writes are being performed. I would perform a cold boot, and not just a warm boot/reset. Power the system off, then count to 10, and then power it back on. :toast:

EDIT: Oh and always remember anything you power off there is always a chance it won't power back on... :p But I wouldn't worry about it.
 
Last edited:
Joined
Feb 18, 2010
Messages
1,720 (0.59/day)
Likes
414
System Name Eldritch
Processor AMD Ryzen 5 1500X
Motherboard MSI B350 PC Mate
Cooling Satan's butthole after going to Taco Bell
Memory 16 GB G.Skill FlareX
Video Card(s) nVidia (Gigabyte) GT 740 2GB
Storage 80 GB IBM, 2 TB WD Green, 512 GB Samsung 960 Pro
Display(s) Dell 2007WFP
Software Debian Buster
#8
For future reference, Alt+SysRq+K will reset the kernel without messing with the power and should work in any kind of crash that isn't the result of hardware.
 

Mindweaver

Moderato®™
Staff member
Joined
Apr 16, 2009
Messages
6,598 (2.06/day)
Likes
3,921
Location
Charleston, SC
System Name Sechs / EyeSeven
Processor i7 5820k @ 4.5ghz / i7 2600k @ 4.0Ghz
Motherboard X99S GAMING 7 / ASRock Z68 Extreme3 Gen3
Cooling CORSAIR Hydro Series H100i Extreme / Stock cooler... H50 leaked!..
Memory G.Skill DDR4 2800 16GB 4x4GB / G.Skill DDR3 1600 8gb 2x4GB
Video Card(s) PNY Quadro K2000 / MSI GTX 970 GAMING 4Gb
Storage Samsung 850 PRO 256GB SSD /Intel 240gb, corsair 120gb SSD, 3x 1 tb s storage
Display(s) 2x Acer G276HL 27" 1080p / 3x Acer 22" Nvidia surround
Case Phanteks “Enthoo Pro series”/ Cooler Master Storm Scout
Audio Device(s) Azalia Realtek ALC1150 / SB X-Fi Gamer
Power Supply Corsair CXM CX600M / Corsair 600w
Mouse Razer DeathAdder Chroma / Razer DeathAdder
Keyboard Razer BlackWidow Ultimate /
Software Windows 10 Pro x64 / Windows 10 Pro x64
#9
For future reference, Alt+SysRq+K will reset the kernel without messing with the power and should work in any kind of crash that isn't the result of hardware.
Here's a little tutorial to help him out. :toast:
 
Joined
Oct 24, 2004
Messages
818 (0.17/day)
Likes
468
System Name $computer$
Processor Core i7 4790K @ 4.4Ghz
Motherboard MSI Z97 Gaming 5
Cooling Alpenföhne Broken 120 + 2 huge coolermaster chassis fans
Memory 2x8GB DDR3 2133Mhz Crucial Ballistix
Video Card(s) Geforce GTX 1080
Storage 2x60gb Kingston SSDnow 320 / 1x120gb Crucial SSD C300 / 1 WD caviar black 1tb
Display(s) 40" Samsung UE40ES5500
Case Cooler Master HAF932
Audio Device(s) onboard realtek audio
Power Supply Corsair AX1200
Mouse Microsoft intellimouse optical
Keyboard Logitech K270
Software Windows 10 Pro
Benchmark Scores https://valid.x86.fr/vmb641
#10
Thanks hellrazor and Mindweaver for the tips.
And for the sake of further documenting what Alt-SysRq can do:
Check if SysRq key is enabled in your linux distribution:
(most modern linux distributions have their kernel compiled with sysrq key support)
Code:
from a terminal prompt:
cat /proc/sys/kernel/sysrq
- a value of "0" means it's disabled
- a value of "1" means all sysrq features are available
- any values beetween "2" and "510" specify which sysrq features are available.

A typical value of "438" splits into 2 + 4 + 16 + 32 + 128 + 256, only the functions associated with the numbers below are allowed:

0- disable SysRq
1- enable SysRq completely
2- enable control of console logging level
4- enable control of keyboard (SAK, unraw)
8- enable debugging dumps of processes etc.
16- enable sync command
32- enable remount read-only
64- enable signalling of processes (term, kill, oom-kill)
128- allow reboot/poweroff
256- allow nicing of all RT tasks

source : http://superuser.com/questions/375816/configuring-sysrq-in-linux
A common use of the magic SysRq key is to perform a safe reboot of a Linux computer which has otherwise locked up. This can prevent a fsck being required on reboot and gives some programs a chance to save emergency backups of unsaved work.

1- Hold down the Alt and SysRq (Print Screen) keys.
2- While holding those down, type the following keys in order, several seconds apart: R E I S U B
3- Computer should reboot.


What "R E I S U B" does in the background :
unRaw (take control of keyboard back from X),
tErminate (send SIGTERM to all processes, allowing them to terminate gracefully),
kIll (send SIGKILL to all processes, forcing them to terminate immediately),
Sync (flush data to disk),
Unmount (remount all filesystems read-only),
reBoot.

source : http://en.wikipedia.org/wiki/Magic_SysRq_key
Several ways to defeat the magic SysRq key (for example, in an educational environment):
Code:
from a terminal prompt:
echo 0 > /proc/sys/kernel/sysrq
Code:
edit /etc/sysctl.conf and add the following lines
# Disables the magic SysRq key
kernel.sysrq = 0
Code:
from a terminal prompt:
sysctl -w kernel.sysrq=0
source : http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/security-sysrq.html
 
Last edited: