File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
[ Using your own kexec image] ( ./custom-kexec.md )
14
14
15
+ [ Repair installations without wiping data] ( ./disko-modes.md )
16
+
15
17
[ Secrets and full disk encryption] ( ./secrets.md )
16
18
17
19
[ Use without flakes] ( ./use-without-flakes.md )
Original file line number Diff line number Diff line change
1
+ # Repair installations without wiping data
2
+
3
+ By default, nixos-anywhere will reformat all configured disks before running the installation.
4
+ However it is also possible to mount the filesystems of an existing installation and run ` nixos-install ` .
5
+ This is useful to recover from a mis-configured NixOS installation by first booting into a NixOS installer or recovery system.
6
+
7
+ To only mount existing filesystems, add ` --disko-mode mount ` to ` nixos-anywhere ` :
8
+
9
+ ```
10
+ nix run github:nix-community/nixos-anywhere -- --disko-mode mount --flake <path to configuration>#<configuration name> root@<ip address>
11
+ ```
12
+
13
+ 1 . This will first boot into a nixos-installer
14
+ 2 . Mounts disks with disko
15
+ 3 . Runs nixos-install based on the provided flake
16
+ 4 . Reboots the machine.
You can’t perform that action at this time.
0 commit comments