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
Link
Debian Live Manual
- 4.1 What is a live system?
- https://live-team.pages.debian.net/live-manual/
- https://live-team.pages.debian.net/live-manual/html/live-manual.en.html
- https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html
- Ubuntu Package: live-manual
- Ubuntu Package: live-manual-html
- Debian Wiki / DebianLive
Tutorial / Mount
Misc
Manpage
- $ man 7 casper