用大白菜制作linux启动盘制作工具,使用大白菜+FbinstTool制作多系统的启动盘
參考資料:
之前每次裝系統都是臨時把對應鏡像寫入U盤,折騰幾次后覺得太麻煩了,就想有沒有一勞永逸的方法。
經過網上一番搜索后,發現還真有。
需要的工具:
1.大白菜超級U盤啟動盤制作工具
2.FbinstTool v1.6 (我使用v1.7時打開后啥都沒有)
3.大容量U盤或移動硬盤
4.系統鏡像
先把大白菜安裝到Windows中,再以管理員身份運行。
點擊“一鍵制作USB啟動盤”開始制作,制作過程會把磁盤格式化為FAT32格式的。
由于某些鏡像會大于4G,所以我們需要將其轉換為NTFS,勾選上圖的NTFS,彈出下圖界面,選“是”。
然后就會在不刪除文件的情況下將磁盤轉換為NTFS格式。
制作完啟動盤,就可以添加自定義菜單了,需要編輯的內容在隱藏分區里,就是在磁盤管理里顯示為“未分配”的區域。
需要用到FbinstTool,剛開始使用的是v1.7版的,打開后啥都沒有,換成v1.6后就OK了。
雙擊打開根目錄下的grldr文件,添加下圖紅框中的內容,表示我們用一個子菜單來顯示自定義的內容。
然后新增文件/IDBC/GRUB/MYOS.LST,內容如下:
timeout 15
default 1
gfxmenu ()/IDBC/GRUB/MESSAGE
title 【01】 ===返回大白菜U盤啟動主菜單===
calc *0x307FFC-0x110000 > nul && configfile (md)4+8 ! configfile (md)0x880+0x200
title 【02】 安裝ubuntu-16.04.5-desktop-amd64
find --set-root /ubuntu-16.04.5-desktop-amd64/vmlinuz
kernel /ubuntu-16.04.5-desktop-amd64/vmlinuz boot=casper iso-scan/filename=/ubuntu-16.04.5-desktop-amd64/ubuntu-16.04.5-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd /ubuntu-16.04.5-desktop-amd64/initrd
title 【03】 安裝ubuntu-18.04.1-desktop-amd64
find --set-root /ubuntu-18.04.1-desktop-amd64/vmlinuz
kernel /ubuntu-18.04.1-desktop-amd64/vmlinuz boot=casper iso-scan/filename=/ubuntu-18.04.1-desktop-amd64/ubuntu-18.04.1-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd /ubuntu-18.04.1-desktop-amd64/initrd.lz
title 【04】 選擇Windows安裝鏡像
checkrange 0x21 read 0x8280 > nul && pxe keep
graphicsmode -1 100:1000 100:1000 24:32
debug 1
command | echo -n | echo -n | echo -n > (md)0x200+1
debug off
call Fn.0 0x40000 "!BAT\necho -P:0000 $[0000]\t\t\t\t\t\t\t\t\t\0" && initscript (md)0x200+1 || set modskip=0
if %@retval%>=0x40000 && set /a modskip=%@retval% - 0x40000 + 1 > nul
cat --skip=%modskip% (md)0x200+1 | set modpath=
cat --length=%modskip% (md)0x200+1 | set modroot=
if "%modpath%"=="" set modpath=/IDBC/GRUB/
cat --length=0 %modroot%%modpath%RUN |; cat --length=0 %@root%%modpath%RUN && set modroot=%@root% ! find --set-root %modpath%RUN &; set modroot=%@root%
command --set-path=%modroot%%modpath%
set modroot=
set modpath=
set modskip=
command /IDBC/GRUB/MENUSETTING n 3 2 26 n 6 68 16
font /IDBC/GRUB/UNIFONT.HEX
#write 0x8274 0x1a01
color normal=31 highlight=0x0E helptext=0x0E heading=0x0A standard=0x0F border=0x0E
splashimage /IDBC/GRUB/BACK.LZMA
command RUN --automenu-all
Ubuntu的啟動菜單中的vmlinuz和initrd文件,都是從對應鏡像的casper目錄中提取的,有的鏡像對應的文件可能會有后綴名,按實際的來就行了。
“選擇Windows安裝鏡像”這項,是根據下面菜單跟蹤來的。
/grldr:
title 【11】 啟動自定義ISO/IMG文件(兩種方式)
RUN ()/IDBC/GRUB/DIY.LST
/IDBC/GRUB/DIY.LST
title 【02】 啟動自定義ISO/IMG文件(DBC目錄)
configfile ()/IDBC/GRUB/RUN.LST
/IDBC/GRUB/RUN.LST
title [08] [自動菜單方式]列出所有可用設備 \n [自動菜單方式]列出所有所有設備后可選擇進行操作。
command RUN --automenu-all
此外,在“選擇Windows安裝鏡像”這項里面,還有大量命令,我也不知道做的啥操作,反正就是直接從/IDBC/GRUB/RUN.LST里面復制過來的,沒有這些命令的話就會出現花屏。
然后就是將鏡像文件復制到啟動盤的對應目錄就可以了。Ubuntu要按上面腳本的路徑存放,而Windows隨便放,只要自己能找到就行。
總結
以上是生活随笔為你收集整理的用大白菜制作linux启动盘制作工具,使用大白菜+FbinstTool制作多系统的启动盘的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python手机号定位_利用python
- 下一篇: java在线编译器手机版_java编译器