使用 grub4dos 来引导硬盘上的 grml.iso livecd - debian
需求:将 LiveCD grml.iso 保存在 ntfs 分区上,使用 grub4dos 来引导,加载 grml.iso 文件。
本例,硬盘是 MBR 分区,只有一个 NTFS 分区,已经安装有 Windows 22H2。grml.iso 保存在 C:\iso\grml.iso。
尝试:
- 先安装 grub4dos, 将 grub4dos ,用 bcdedit 将 grub4dos 添加到启动菜单中
这里的 C:\menu.lst 文件内容,其中 findiso 参数是让它能在设备中查找iso文件,toram=grml.squashfs 是避免 ntfs-3g 自动将 ntfs 分区挂载为“可读写”,导致重启或关机时会挂死
title grml find --set-root --ignore-floppies --ignore-cd /iso/grml.iso map /iso/grml.iso (0xff) map --hook set opts=" toram=grml.squashfs dns=8.8.8.8 ip=192.168.1.108::192.168.1.1:255.255.255.0:testbox:eth0:off ssh=mima " kernel (0xff)/boot/grml/vmlinuz apm=power-off boot=live live-media-path=/live/grml/ bootid=grml001 findiso=/iso/grml.iso nomce net.ifnames=0 %opts% initrd (0xff)/boot/grml/initrd.img map --unhook boot savedefault --wait=2
参考:
- https://wiki.grml.org/doku.php?id=rescueboot
- https://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1
- https://forums.opensuse.org/t/shutdown-stalls-at-reached-target-shutdown-auto-power-off-occurs-4-minutes-later/138324
- https://github.com/tuxera/ntfs-3g/wiki/NTFS-3G-FAQ
- https://unix.stackexchange.com/questions/107978/cant-access-windows-drive-windows-is-hibernated-refused-to-mount
- https://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation
- https://git.grml.org/?p=grml-live.git;a=blob_plain;f=templates/GRML/grml-cheatcodes.txt;hb=HEAD
- https://github.com/grml/grml/issues/206
- https://sources.debian.org/src/linux/3.16.56-1+deb8u1/Documentation/kernel-parameters.txt/
- https://manpages.debian.org/bookworm/live-boot-doc/live-boot.7.en.html
- http://bbs.wuyou.net/forum.php?mod=viewthread&tid=421620
- http://bbs.wuyou.net/forum.php?mod=viewthread&tid=208607