howtos

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
howtos [2023-12-21 19:32] asdfhowtos [2024-03-10 00:10] (current) – [Add Linux swap space] asdf
Line 28: Line 28:
 To have the swap automount on boot, add the following to ''/etc/fstab'': To have the swap automount on boot, add the following to ''/etc/fstab'':
  
-<file>+<code>
 /swapfile swap swap defaults 0 0 /swapfile swap swap defaults 0 0
-</file>+</code>
  
 ===== Boot an ISO from GRUB ===== ===== Boot an ISO from GRUB =====
Line 60: Line 60:
   * 4 <-> 7   * 4 <-> 7
   * 5 <-> 8   * 5 <-> 8
 +
 +===== Mount an ext4 drive in WSL2 =====
 +Open a PowerShell window as an administrator, then run the following command to list available disk drives:
 +
 +<code powershell>
 +GET-CimInstance -query "SELECT * from Win32_DiskDrive"
 +</code>
 +
 +Locate the desired entry, then attach it to the WSL instance: 
 +
 +<code powershell>
 +wsl --mount \\.\PHYSICALDRIVE2
 +</code>
 +
 +Finally, locate and mount the disk within the WSL instance. 
 +
 +https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk
  
 ===== Fake a document scan ===== ===== Fake a document scan =====
 ===== Create a reverse SSH connection ===== ===== Create a reverse SSH connection =====
  • howtos.1703187136.txt.gz
  • Last modified: 2023-12-21 19:32
  • by asdf