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

Hard reset on linux

Silver Rabbit

New Member
Joined
Dec 24, 2013
Messages
8 (0.00/day)
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,618 (0.29/day)
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,926 (0.46/day)
Location
UK
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
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
13,147 (2.96/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.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?

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,926 (0.46/day)
Location
UK
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
Wait did you mean hard reset as in pressing the reset button or Hard Reset the game?
 
Joined
Sep 1, 2010
Messages
7,023 (1.42/day)
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
8,193 (1.50/day)
Location
Charleston, SC
System Name Tower of Power / Sechs
Processor i7 14700K / i7 5820k @ 4.5ghz
Motherboard ASUS ROG Strix Z690-A Gaming WiFi D4 / X99S GAMING 7
Cooling CM MasterLiquid ML360 Mirror ARGB Close-Loop AIO / CORSAIR Hydro Series H100i Extreme
Memory CORSAIR Vengeance LPX 32GB (2 x 16GB) DDR4 3600 / G.Skill DDR4 2800 16GB 4x4GB
Video Card(s) ASUS TUF Gaming GeForce RTX 4070 Ti / ASUS TUF Gaming GeForce RTX 3070 V2 OC Edition
Storage 4x Samsung 980 Pro 1TB M.2, 2x Crucial 1TB SSD / Samsung 870 PRO 500GB M.2
Display(s) Samsung 32" Odyssy G5 Gaming 144hz 1440p, ViewSonic 32" 72hz 1440p / 2x ViewSonic 32" 72hz 1440p
Case Phantek "400A" / Phanteks “Enthoo Pro series”
Audio Device(s) Realtek ALC4080 / Azalia Realtek ALC1150
Power Supply Corsair RM Series RM750 / Corsair CXM CX600M
Mouse Glorious Gaming Model D Wireless / Razer DeathAdder Chroma
Keyboard Glorious GMMK with box-white switches / Keychron K6 pro with blue swithes
VR HMD Quest 3 (128gb) + Rift S + HTC Vive + DK1
Software Windows 11 Pro x64 / Windows 10 Pro x64
Benchmark Scores Yes
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:
  • Like
Reactions: xvi
Joined
Feb 18, 2010
Messages
1,850 (0.36/day)
System Name Eldritch
Processor AMD Ryzen 5 5800X3D
Motherboard ASUS TUF X570 Pro Wifi
Cooling Satan's butthole after going to Taco Bell
Memory 64 GB G.Skill TridentZ
Video Card(s) Vega 56
Storage 6*8TB Western Digital Blues in RAID 6, 2*512 GB Samsung 960 Pros
Display(s) Acer CB281HK
Case Phanteks Enthoo Pro PH-ES614P_BK
Audio Device(s) ASUS Xonar DX
Power Supply EVGA Supernova 750 G2
Mouse Razer Viper 8K
Software Debian Bullseye
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
8,193 (1.50/day)
Location
Charleston, SC
System Name Tower of Power / Sechs
Processor i7 14700K / i7 5820k @ 4.5ghz
Motherboard ASUS ROG Strix Z690-A Gaming WiFi D4 / X99S GAMING 7
Cooling CM MasterLiquid ML360 Mirror ARGB Close-Loop AIO / CORSAIR Hydro Series H100i Extreme
Memory CORSAIR Vengeance LPX 32GB (2 x 16GB) DDR4 3600 / G.Skill DDR4 2800 16GB 4x4GB
Video Card(s) ASUS TUF Gaming GeForce RTX 4070 Ti / ASUS TUF Gaming GeForce RTX 3070 V2 OC Edition
Storage 4x Samsung 980 Pro 1TB M.2, 2x Crucial 1TB SSD / Samsung 870 PRO 500GB M.2
Display(s) Samsung 32" Odyssy G5 Gaming 144hz 1440p, ViewSonic 32" 72hz 1440p / 2x ViewSonic 32" 72hz 1440p
Case Phantek "400A" / Phanteks “Enthoo Pro series”
Audio Device(s) Realtek ALC4080 / Azalia Realtek ALC1150
Power Supply Corsair RM Series RM750 / Corsair CXM CX600M
Mouse Glorious Gaming Model D Wireless / Razer DeathAdder Chroma
Keyboard Glorious GMMK with box-white switches / Keychron K6 pro with blue swithes
VR HMD Quest 3 (128gb) + Rift S + HTC Vive + DK1
Software Windows 11 Pro x64 / Windows 10 Pro x64
Benchmark Scores Yes
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
1,294 (0.18/day)
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:
Top