Link Search Menu Expand Document

Mount ISO

Subject

範例

Download ISO

wget -c 'https://cdimage.ubuntu.com/xubuntu/releases/22.04/release/xubuntu-22.04-desktop-amd64.iso'

Mount ISO

sudo mount -o loop xubuntu-22.04-desktop-amd64.iso iso-root

Mount SquashFS

sudo mount -o loop iso-root/casper/filesystem.squashfs live-root

Extract initrd

by initramfs-extract

initramfs-extract iso-root/casper/initrd initrd-root

by unmkinitramfs

unmkinitramfs iso-root/casper/initrd initramfs

接下來可以探索「iso-root」,「initrd-root」,「live-root」這三個資料夾

Unmount

sudo umount live-root
sudo umount iso-root

要先卸載「live-root」,才能卸載「iso-root」

Clean

sudo rm -rf initrd-root initramfs

Debian Live Manual

Tutorial / Mount

Misc

Manpage