MyWebsite Bootstrap

Tag: git

How to mount and read EXT4 on Windows

2025-06-22

Steps

1. Run the windows powershell as administrator

2. Get details about the drives and partitions

wmic diskdrive list brief

3. Mount the drive or partition by the bellow command

wsl --mount PATH_FROM_STEP2
Example: wsl –mount \\.\PHYSICALDRIVE0 –partition 1

If you haven’t install the WSL, windows will install it for you automatically. If not, try wsl --install. After the WSL is installed, you will need to install a linux system by your own.
wsl --install -d ubuntu

4. Open Windows File Explorer and read the data in the disk

Path: “This PC\Linux\Ubuntu\mnt\wsl\PHYSICALDRIVE0p0

5. Unmout if needed

wsl –unmount PATH_FROM_STEP2

or just shut it down
wsl.exe --shutdown

Reference


Some useful git commands

2024-04-21

Commands

list all branches
git branch -a

get the difference between two branches, including a local branch and a remote branch
git diff <mainbranch_path> <remotebranch_path>

read more