Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (50.96 KB, 1 trang )
HowtoCreateaBootableUSB:ForLinux
STEP0:Yourmotherboard(BIOS)hastosupportbootfromusb(usbkeyorusbhdd).
Youdon'tneedtoknowwhichofthesetypesyourmediaisthough,yourBIOSrecognizes
theusbcontrollerinthedevice,andthisdeterminesusbkeyorusbhddtype.
STEP1:Downloadthelatestcopyofsyslinuxandextractit.Download .
STEP2:Openacommandpromptandcdtoyour'syslinux/linux'folder.Run./syslinuxi/dev/sdX1
replacingXwiththedevicenodeofyourmedia.
STEP3:Ensuretheusbdriveisbootable.Forthat,weneedaworkingMBRcodeandanactivepartition.
Openacommandpromptandcdtoyour'syslinux/mbr'folder.Runthefollowingtwocommands,
replacingXwiththedevicenodeofyourusbdrive:
dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/sdX
parted /dev/sdX set 1 boot on
Thiswillwritethesyslinuxmbrcode(mbr.bin)intothemasterbootrecordofthedrive,
andmarkfirstpartitionasactive(bootable).Forthesecondtask,youcanusefdiskorother
diskpartitioningtools.
STEP4:CopyaLinuxkernelimage(likevmlinuz)totheroot(/dev/sdX1)ofyourmedia.
STEP5:Lastly,createa'syslinux.cfg'fileintherootofyourmedia(/dev/sdX1)and
enteranyconfigurationoptionsyouneed/want.