User Tools

Site Tools


docs:tips_n_tricks:linux.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docs:tips_n_tricks:linux.html [29.10.2022 13:40 CEST] – ↷ Page name changed from docs:tips_n_tricks:linux_system to docs:tips_n_tricks:linux.html peterdocs:tips_n_tricks:linux.html [25.05.2023 23:58 CEST] (current) peter
Line 1: Line 1:
-====== Linux System ======+====== Linux ======
 {{entry>0/Linux|-}}{{tag>Linux}} {{entry>0/Linux|-}}{{tag>Linux}}
-===== Rescan Blockdevices / Reread Partition Tables =====+===== Commands ===== 
 +{{entry>0/Shell|-}}{{tag>Shell}} 
 +Some Linux commands seldom used - so sometimes not remembered 
 + 
 +^''which''   | find executables (candidates) | 
 +^ ''watch'' | repeat command and display output | 
 +^ ''pv''     | Pipe Viewer | 
 +===== System ===== 
 +Some tipp 'n tricks to handle you linux system in seldom situations 
 +==== Rescan Blockdevices / Reread Partition Tables ====
 Tipps I found with variable usefullness: Tipps I found with variable usefullness:
  
Line 32: Line 41:
  
 {{tag>Linux Disk}} {{tag>Linux Disk}}
-===== Force hard reset =====+==== Force Soft RAID (mdadm) resync ==== 
 + 
 +  echo "repair" > /sys/block/md127/md/sync_action 
 + 
 +__Credits:__ [[https://superuser.com/q/1081893|Superuser: how to force mdadm to sync to device after raid6 repair and how to get number of errors?]] 
 +{{entry>0/RAID|-}} 
 +{{entry>0/mdadm|-}} 
 + 
 +{{tag>Linux RAID mdadm}} 
 +==== Force hard reset ====
  
 In case you are in danger, that your remote system might hang while doing a clean shutdown, a "cold reboot" triggered by software might help In case you are in danger, that your remote system might hang while doing a clean shutdown, a "cold reboot" triggered by software might help
Line 44: Line 62:
  
 __Credits__ and further reading: [[http://www.linux-geex.com/?p=259|GEEX]], [[http://www.heise.de/ct/hotline/Gewaltsamer-Reset-unter-Linux-321064.html| ct' online]], [[http://kernel.org/doc/Documentation/sysrq.txt|kernel.org]] [[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/sysrq.rst|git.kernel.org]] __Credits__ and further reading: [[http://www.linux-geex.com/?p=259|GEEX]], [[http://www.heise.de/ct/hotline/Gewaltsamer-Reset-unter-Linux-321064.html| ct' online]], [[http://kernel.org/doc/Documentation/sysrq.txt|kernel.org]] [[https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/sysrq.rst|git.kernel.org]]
-===== Reset USB device (bus?=====+==== Reset USB device (bus?) ====
  
 Regain access to an build-in card reader after Regain access to an build-in card reader after
Line 63: Line 81:
 __Credits__: [[http://askubuntu.com/a/61165|How do you reset a USB Device from the command line? - Ask Ubuntu]] __Credits__: [[http://askubuntu.com/a/61165|How do you reset a USB Device from the command line? - Ask Ubuntu]]
  
-===== Avoid accidental wakeups after hibernate with systemd =====+==== Avoid accidental wakeups after hibernate with systemd ====
 //Entries: {{entry>0/systemd|systemd}}, {{entry>0/hibernate|hibernate}}// //Entries: {{entry>0/systemd|systemd}}, {{entry>0/hibernate|hibernate}}//
 {{tag>systemd hibernate}} {{tag>systemd hibernate}}
docs/tips_n_tricks/linux.html.1667043606.txt.gz · Last modified: 29.10.2022 13:40 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki