2021/11/28

DualBoot with freedos

最近又用到 freedos, 想把 mx-linux + freedos 放在一顆 8GB 的隨身碟,
懶得說太多,有問題的朋友請回覆
先說 grub.cfg 怎麼下:
menuentry "FreeDOS testing" {
    insmod part_msdos
    freedos (hd0,msdos1)/KERNEL.sys
}
沒錯,上面跟在 google 找到的都不太一樣,自行揣摩一下囉,這個是真的能動的

我用的是 freedos 1.3 rc4(版本不重要) 的 LiveCD 解壓縮 zip 檔之後是 iso 檔, 將之整個 cp 到 (hd0,msdos1)/ 也就是 DOS/ 清單如下:
-r-xr-xr-x  1 root root  4016 11月 28 11:18 fdauto.bat*
drwxr-xr-x 12 root root  4096 11月 28 11:13 freedos/
drwxr-xr-x  4 root root  4096  4月 30  2021 FDOS-x86/
drwxr-xr-x  2 root root  4096  4月 30  2021 isolinux/
drwxr-xr-x 15 root root  4096  4月 30  2021 packages/
drwxr-xr-x  3 root root  4096  4月 30  2021 devel/
drwxr-xr-x  3 root root  4096  4月 30  2021 games/
drwxr-xr-x  3 root root  4096  4月 30  2021 util/
-r-xr-xr-x  1 root root   182  4月 30  2021 fdconfig.sys*
-r-xr-xr-x  1 root root 85048  4月 30  2021 COMMAND.COM*
-r-xr-xr-x  1 root root 46685  4月 30  2021 KERNEL.SYS*
-r-xr-xr-x  1 root root  6744  4月 30  2021 setup.bat*
有沒有注意到上面要修改 fdauto.bat?
貼上整個內容
.....到 :FinishCDMode 之前都不變..... :FinishCDMode mkdir \TEMP set TEMP=\TEMP set TMP=%TEMP% SET DOSDIR=\FREEDOS SET BIN=%DOSDIR%\BIN set DOSDRV=C:\ set BIN=C:\FREEDOS\BIN set PATH=\;%BIN%;\UTIL\P7ZIP\ SET NLSPATH=%DOSDIR%\NLS C: CD \ .....到下面兩行前面有變而已..... CALL %DOSDIR%\BIN\FDLIVE.BAT RAMSKIP if "%FDRAMDRV%" == "" goto WarnReadOnly .....以下同....

0 意見: