other:win10wsl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:win10wsl [2022/09/06 16:45] – [Base installation] jypeter | other:win10wsl [2022/09/06 17:40] – [Restoring or relocating a Linux installation] Improved jypeter | ||
---|---|---|---|
Line 363: | Line 363: | ||
PS C:\> wsl cat / | PS C:\> wsl cat / | ||
Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Mar 2 00:30:59 UTC 2022</ | Linux version 5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Mar 2 00:30:59 UTC 2022</ | ||
+ | |||
+ | * Create a [[other: | ||
+ | * This will allow you to easily [[other: | ||
===== After the base installation ===== | ===== After the base installation ===== | ||
Line 1048: | Line 1051: | ||
Note: | Note: | ||
- | * This is currently the only way of moving (relocating) a Linux installation to another disk than the default '' | + | * This is currently the only way of **moving (//relocating//) a Linux installation** to another disk than the default '' |
- | * Importing will mostly put the '' | + | * //Importing// will mostly put the '' |
* You need [[other: | * You need [[other: | ||
- | * This is an indirect way of reclaiming the unused space of a Linux installation, i.e the size of the '' | + | * Creating a backup and restoring it is an indirect way of **reclaiming the unused space of a Linux installation**: the size of the '' |
Detailed [[https:// | Detailed [[https:// | ||
Line 1057: | Line 1060: | ||
* We assume that we have an exported installation tar file available | * We assume that we have an exported installation tar file available | ||
* In this example, we use the compressed backup file created in [[other: | * In this example, we use the compressed backup file created in [[other: | ||
+ | * '' | ||
* Create the directory where the Linux installation (mostly its '' | * Create the directory where the Linux installation (mostly its '' | ||
- | * Hint: use an explicit directory path and name using the name of the distribution that will be restored\\ e.g. '' | + | * Hint: use an explicit directory path and name using the name of the distribution that will be restored, because the name of the restored file itself will always be the same ('' |
- | * Import the distribution, | + | * Import the distribution, |
* < | * < | ||
NAME STATE | NAME STATE | ||
Line 1075: | Line 1079: | ||
* Or from a PowerShell, using '' | * Or from a PowerShell, using '' | ||
* WARNING: even if the distribution we imported had an existing default '' | * WARNING: even if the distribution we imported had an existing default '' | ||
- | * It is possible to explicitly specify the requested user each time we start a terminal, but it will be more convenient to specify a default user\\ wsl --distribution Ubuntu_custom --user stdu | + | * It is possible to explicitly specify the requested user each time we start a terminal, but it will be more convenient to specify a default user\\ |
- | * Specify a default user (note: [[https:// | + | * You can easily open a '' |
+ | * Specify a default user (note: [[https:// | ||
* < | * < | ||
cat: / | cat: / |
other/win10wsl.txt · Last modified: 2023/12/06 14:24 by jypeter