linux_wiki:boot_systems_into_different_targets_manually

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:boot_systems_into_different_targets_manually [2016/02/29 21:23]
billdozor
linux_wiki:boot_systems_into_different_targets_manually [2019/05/25 23:50] (current)
Line 3: Line 3:
 **General Information** **General Information**
  
-About this page/how-to/script+There are no longer runlevels; systemd uses "targets"
  
 ---- ----
 +
 +===== Systemd Units =====
  
 Unit configuration file locations Unit configuration file locations
Line 11: Line 13:
   * /etc/systemd/system => additional configuration files (downloaded or custom)   * /etc/systemd/system => additional configuration files (downloaded or custom)
  
 +\\
 Show available unit types Show available unit types
 <code bash> <code bash>
 systemctl -t help systemctl -t help
 </code> </code>
 +
 +----
 +
 +===== Systemd Targets =====
  
 Some common targets Some common targets
   * poweroff.target => power off the system   * poweroff.target => power off the system
-  * emergency.target => single user (root), read only root file system, do not mount other file systems, no network.+  * emergency.target => single user (root), root file system mounted, do not mount any other file systems, no network services.
     * Used if the system cannot be repaired in rescue.target     * Used if the system cannot be repaired in rescue.target
-  * rescue.target => single user environment (root), mount file systems read/write, with minimum services loaded. (no network)+  * rescue.target => single user environment (root), mount local file systems, with minimum services loadedno network services.
   * multi-user.target => Multi-user non-graphical, with all file systems and networking   * multi-user.target => Multi-user non-graphical, with all file systems and networking
   * graphical.target => GUI environment, multi-user, with all file systems and networking   * graphical.target => GUI environment, multi-user, with all file systems and networking
   * reboot.target => reboot the system   * reboot.target => reboot the system
  
-Current target+\\ 
 +What targets are currently active? 
 +<code bash> 
 +systemctl -t target 
 +</code> 
 +  * Look for either emergency, rescue, multi-user, or graphical. 
 +  * **Note**: If you are in the graphical target, multi-user will also be active, since multi-user is a dependency of graphical. 
 + 
 +\\ 
 +Current default target
 <code bash> <code bash>
 systemctl get-default systemctl get-default
 </code> </code>
  
 +\\
 Set default to graphical target Set default to graphical target
 <code bash> <code bash>
Line 35: Line 52:
 </code> </code>
  
 +\\
 List loaded unit files (systemctl) of type target (--type=target) whether they are active or not (--all) List loaded unit files (systemctl) of type target (--type=target) whether they are active or not (--all)
 <code bash> <code bash>
Line 43: Line 61:
   * --all => show all loaded unit files, even if they are not active   * --all => show all loaded unit files, even if they are not active
  
 +\\
 List all installed unit files on the system List all installed unit files on the system
 <code bash> <code bash>
Line 48: Line 67:
 </code> </code>
  
 +\\
 View a target's dependencies View a target's dependencies
 <code bash> <code bash>
Line 54: Line 74:
   * List what will start upon entering multi-user.target   * List what will start upon entering multi-user.target
  
 +\\
 Move from graphical target to multi-user (command prompt) Move from graphical target to multi-user (command prompt)
 <code bash> <code bash>
Line 62: Line 83:
 ---- ----
  
-==== Other Systemctl Commands ====+===== Other Systemctl Commands =====
  
-**Note:**By default, systemctl commands will only show the active configuration files unless you pass the "--all" option+**Note:** By default, systemctl commands will only show the active configuration files unless you pass the "--all" option
  
   * systemctl --type=service => list all loaded and active only service unit config files   * systemctl --type=service => list all loaded and active only service unit config files
Line 75: Line 96:
 ---- ----
  
-==== Boot to rescue mode ====+===== Boot to rescue mode =====
  
 To boot to something other than the default target, such as the rescue target, during boot: To boot to something other than the default target, such as the rescue target, during boot:
  • linux_wiki/boot_systems_into_different_targets_manually.1456798999.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)