hdc-0.11.img

ddatsh

dev #asm asm

https://github.com/dibingfa/flash-linux0.11-talk

moutn hdc-0.11.img 会

1
2
mount: /home/dd/hdc: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.

编译 wsl 内核,加入 minix 文件系统

1
vi Microsoft/config-wsl
1
2
3
4
5
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_MINIX_FS is not set
改成
CONFIG_MINIX_SUBPARTITION=y
CONFIG_MINIX_FS=y
1
make KCONFIG_CONFIG=Microsoft/config-wsl -j$(noproc)

arch/x86/boot/bzImage 拷出来

%userprofile%\.wslconfig

1
2
[wsl2]
kernel=D:\\tmp\\bzImage
1
2
3
4
5
6
7
8
# 查看第一个空闲 loop 设备 
losetup -f  
# 使用上一步得到的设备名,第一次创建 loop 设备
losetup /dev/loop0 hdc-0.11.img
# 查看信息 
fdisk -lu /dev/loop0 
kpartx -av /dev/loop0
mount /dev/mapper/loop0p1 /mnt

p1 代表img 文件的 /分区号,从 1 开始

ref

https://blog.csdn.net/zjy900507/article/details/88312087

https://blog.csdn.net/zjy900507/article/details/86571327