|
下得一个工具盘 USB启动的 应该是USB HDD(MBR)的
目录结构如下
F:.
├─boot
│ │ bootinst.bat
│ │ bootinst.sh
│ │ bootlilo.sh
│ │ chain.c32
│ │ initrd.gz
│ │ mt86p
│ │ vesamenu.c32
│ │ vmlinuz
│ │
│ ├─dos
│ │ BT3.bat
│ │ config
│ │ loadlin.exe
│ │ readme.txt
│ │
│ ├─isolinux
│ │ isolinux.bin
│ │ isolinux.boot
│ │ isolinux.cfg
│ │
│ ├─modules
│ │ bin.lzm
│ │ client-djtr.lzm
│ │ etc.lzm
│ │ home.lzm
│ │ lib.lzm
│ │ opt.lzm
│ │ root.lzm
│ │ sbin.lzm
│ │ usr.lzm
│ │ var.lzm
│ │
│ └─syslinux
│ lilo
│ mbr.bin
│ syslinux
│ syslinux.cfg
│ syslinux.com
│ syslinux.exe
│
└─BT3
│ LICENSE
│ livecd.sgn
│ make_iso.bat
│ make_iso.sh
│
├─tools
│ │ deb2lzm
│ │ dir2lzm
│ │ liblinuxlive
│ │ lzm2dir
│ │ mksquashfs
│ │ rmlivemod
│ │ tgz2lzm
│ │ unsquashfs
│ │ uselivemod
│ │
│ └─WIN
│ config
│ cygwin1.dll
│ mkisofs.exe
│
├─rootcopy
├─optional
│ cubez.lzm
│ pxe.lzm
│
├─modules
│ mesa701.lzm
│ milw0rm.lzm
│ optional.lzm
│
└─base
bin.lzm
etc.lzm
home.lzm
kernel.lzm
lib.lzm
opt.lzm
pentest.lzm
root.lzm
sbin.lzm
srv.lzm
usr.lzm
var.lzm
其中BOOT里有一个制作启动盘的BAT 内容如下
@echo off
cls
set DISK=none
set BOOTFLAG=boot666s.tmp
echo This file is used to determine current drive letter. It should be deleted. >\%BOOTFLAG%
if not exist \%BOOTFLAG% goto readOnly
echo Wait please, searching for current drive letter.
for %%d in ( C D E F G H I J K L M N O P Q R S T U V W X Y Z ) do if exist %%d:\%BOOTFLAG% set DISK=%%d
cls
del \%BOOTFLAG%
if %DISK% == none goto DiskNotFound
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo Welcome to Slax boot installer
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo.
echo This installer will setup disk %DISK%: to boot only Slax.
echo.
echo Warning! Master Boot Record (MBR) of the device %DISK%: will be overwritten.
echo If %DISK%: is a partition on the same disk drive like your Windows installation,
echo then your Windows will not boot anymore. Be careful!
echo.
echo Press any key to continue, or kill this window [x] to abort...
pause > nul
cls
echo Setting up boot record for %DISK%:, wait please...
if %OS% == Windows_NT goto setupNT
goto setup95
:setupNT
\boot\syslinux\syslinux.exe -ma -d \boot\syslinux %DISK%:
goto setupDone
:setup95
\boot\syslinux\syslinux.com -ma -d \boot\syslinux %DISK%:
:setupDone
echo Disk %DISK%: should be bootable now. Installation finished.
goto pauseit
:readOnly
echo You're starting Slax installer from a read-only media, this will not work.
goto pauseit
:DiskNotFound
echo Error: can't find out current drive letter
:pauseit
echo.
echo Read the information above and then press any key to exit...
pause > nul
:end
---------------------------------------------
现在的问题是按照其方法
Copy the "boot" and "BT3" Directory to the root of your USB device.
Under Linux, change directory to the freshly copied /boot directory on the USB device.
MAKE sure your're in the "boot" directory on the USB device!
run ./boostinst.sh
unmount usb device.
Voila.
做了也不行(我手里没LINUX 执行的BAT 也提示成功)
但是引导的时候提示BOOT ERROR |
|