windows or ubuntu mount 文件

windows

实测环境:windows 11, 64 bit.

ref:

Mount-DiskImage (Storage) | Microsoft Learn

Dismount-DiskImage (Storage) | Microsoft Learn

Get-DiskImage (Storage) | Microsoft Learn

bash 复制代码
# 查询
Get-DiskImage -ImagePath "f:\wsl\ext4.vhdx"

# mount
Mount-DiskImage -ImagePath "E:\ISO-Files\My US Visit Fall 2010 Pictures.iso"
Mount-DiskImage -ImagePath "f:\wsl\ext4.vhdx"

# unmount
Dismount-DiskImage -ImagePath "f:\wsl\ext4.vhdx"

ubuntu

对应版本:

bash 复制代码
# http://libguestfs.org/guestmount.1.html
sudo apt-get install libguestfs-tools

# 查询
mount

# mount
sudo guestmount --add ext4.vhdx --inspector --ro /mnt/mymount

--add
Add a block device or virtual machine image.

--inspector
Using virt-inspector(1) code, inspect the disks looking for an operating system and mount filesystems as they would be mounted on the real virtual machine.

--ro
Add devices and mount everything read-only. Also disallow writes and make the disk appear read-only to FUSE.

# unmount
sudo umount /mnt/mymount
相关推荐
小能喵几秒前
Kali Linux Wifi 伪造热点
linux·安全·kali·kali linux
汀沿河15 分钟前
8.1 prefix Tunning与Prompt Tunning模型微调方法
linux·运维·服务器·人工智能
江山如画,佳人北望21 分钟前
C#程序入门
开发语言·windows·c#
zly350028 分钟前
centos7 ping127.0.0.1不通
linux·运维·服务器
AustinCyy42 分钟前
【环境配置】Neo4j Community Windows 安装教程
windows·neo4j
小哥山水之间1 小时前
基于dropbear实现嵌入式系统ssh服务端与客户端完整交互
linux
奇怪的杰哥1 小时前
Win11 加快软件开机自启动
windows
ldj20201 小时前
2025 Centos 安装PostgreSQL
linux·postgresql·centos
cpsvps1 小时前
Windows内核并发优化
windows
翻滚吧键盘2 小时前
opensuse tumbleweed上安装显卡驱动
linux