You are on page 1of 4

GRUB For NT

Cu trc c bn ca Menu Grub ( Menu.lst ) 1. Phn u thit lp cc thng s v thi gian ch v hiu ng hnh nh : # This Menu Created by Lance http://www.pendrivelinux.com # Ongoing Suggested Menu Entries and the Suggestor are noted! default 0 timeout 30 root=(hd0,0) color NORMAL HIGHLIGHT HELPTEXT HEADING splashimage=(hd0,0)/rescue/splash.xpm.gz foreground=FFFFFF background=0066FF 2. Phn gia tch hp cc ng dng cn dng : # Suggested by MrChuCong@gmail.com title Kaspersky Rescue CD (Virus Scanner) find --set-root /rescue/rescue.iso map /rescue/rescue.iso (0xff) || map --mem /rescue/rescue.iso (0xff) map --hook root (0xff) chainloader (0xff) 3. Phn cui thot khi ng dng : title Boot First Hard Drive (HDD) map (hd0) (hd1) map (hd1) (hd0) map --hook chainloader (hd0)+1 rootnoverify (hd0) title Restart reboot title Shutdown halt title Grub4Dos Command Line commandline # End Suggested by Erhan Sohail # Suggested by Relst title Run a Linux OS from the Internet kernel /gpxe.lkrn Hng dn cch tch hp cc chng trnh s dng boot GRUB for NT Phn loi nh dng cc tp tin c th s dng : *.ima , *.img , *.gz, *.iso 1. Cng thc FDD image : l cc tp tin c nh dng *.ima hoc *.img . chng c kch thc

kh nh gn do gii hn bi dung lng cha ca a mm. hin nay cc a mm hu nh khng cn na , tuy nhin cc tp tin dng sa cha v cu h my tnh vn cn hu dng. Cng thc : title t tn tiu map --unsafe-boot /Tn tp tin *.img (fd0) map --hook chainloader --force (fd0)+1 rootnoverify (fd0) V d : title Balder DOS image (FreeDOS) map --unsafe-boot /balder10.img (fd0) map --hook chainloader --force (fd0)+1 rootnoverify (fd0) 2. Cng thc CD image : l cc tp tin c kh nng khi ng ( Boot) v c nh dng *.iso. chng c ghi ra a s dng vi nhiu ng dng khc nhau. tuy nhin nu ghi ra a ta ch s dng duy nht ng dng m thi. c th s dng nhiu ng dng trn 1 thit b lu tr l khng th iu ch xy ra khi ta s dng 1 ng dng trung gian kt hp hoc s dng cc chng trnh trn thit b di ng nh USB flash. Vi USB flash ( USB -HDD) ta c th khi ng nhiu ng dng khc nhau theo la chn, ngoi ra ta cng c th s dng ngay trn HDD m khng cn thit b cm ngoi no c. Cng thc ( p dng cc tp tin c size =< 100MB ) # Suggested by MrChuCong@gmail.com title t tn tiu ty find --set-root /Tn tp tin *.iso map /Tn tp tin *.iso (hd32) map --hook root (hd32) chainloader (hd32) V d : # Suggested by MrChuCong@gmail.com title Parted Magic 4.11 (Partition Tools) find --set-root /pmagic-4.11.iso map /pmagic-4.11.iso (hd32) map --hook root (hd32) chainloader (hd32) Note : Ta c th thay i ng dn cha tp tin find --set-root /pmagic-4.11.iso map /pmagic-4.11.iso (hd32) i thnh : ( ta a tp tin vo th mc c tn rescue th lm nh bn di ) find --set-root /rescue/pmagic-4.11.iso

map /rescue/pmagic-4.11.iso (hd32) Cng thc ( p dng cc tp tin c size > 100MB ) # Suggested by MrChuCong@gmail.com title Tn tiu ty find --set-root /Rescue/Tn tp tin .ISO map --mem /Rescue/Tn tp tin.ISO (0xFF) map --hook chainloader (0xFF) V d : Sau y l 1 s m c bn cc bn c th tham kho v s dng copy vo menu.lst

# Suggested by MrChuCong@gmail.com title LiveXP Embeded find --set-root /Rescue/LIVEXP.ISO map --mem /Rescue/LIVEXP.ISO (0xFF) map --hook chainloader (0xFF)

# Suggested by MrChuCong@gmail.com title Hiren't Boot CD 10.x find --set-root /rescue/Hiren's.BootCD.10.3.iso map /rescue/Hiren's.BootCD.10.3.iso (0xFF) map --hook chainloader (0xFF)

# Suggested by MrChuCong@gmail.com title Fixed Missing NTLDR find --set-root /rescue/NTLDR.iso map /rescue/NTLDR.iso (0xff) map --hook chainloader (0xff) boot

Ch : - Mt s tp tin khi ng kiu nhn NT ( hu ht l ca microsoft ) mc d c kch thc ( size) rt nh, ch vi MB nhng khi s dng ta lun gn gi tr (0xff) th mi c th s dng c.

- Ngoi ra cn c cc chng trnh c bit l cc Antivirus Rescue ( kaspersky, avg, bitdefender ...) cn phi gn thm gi tr "map--mem/Tn tp tin .iso (0xff) " mi c th dng c V d : # Suggested by MrChuCong@gmail.com title Kaspersky Rescue CD (Virus Scanner) find --set-root /rescue/rescue.iso map /rescue/rescue.iso (0xff) map --mem /rescue/rescue.iso (0xff) map --hook root (0xff) chainloader (0xff) - Tp tin s dng boot Grub nhng vi dung lng qu ln size =>300MB ta phi s dng c php kernel (p dng cho tt c os linux khi boot trn usb hoc hdd) V d : # Suggested by MrChuCong@gmail.com title BitDefender Rescue CD 2010 map /bitdefender-rescue-cd.iso (0xff) map --hook root (0xff) kernel /casper/vmlinuz boot=casper persistent isoscan/filename=/bitdefender-rescue-cd.iso initrd /casper/initrd.gz

# Suggested by MrChuCong@gmail.com title Ubuntu 10.04 find --set-root /ubuntu-10.04-desktop-i386.iso map /ubuntu-10.04-desktop-i386.iso (0xff) map --hook root (0xff) kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper persistent iso- scan/filename=/ubuntu-10.04-desktop-i386.iso splash initrd /casper/initrd.lz

You might also like