Jump to content

Grub on a flash drive


Webhostbudd

Recommended Posts

default        1
timeout        10
color cyan/blue white/blue

title Kon-Boot
map --mem /konboot.img (fd0)
map --hook
chainloader (fd0)+1
map (hd1) (hd0)
map --hook
rootnoverify (fd0)

title Memtest
kernel /memdisk
initrd /memtestp.img

title BackTrack 4
root (hd0,0)
kernel /bt4/boot/vmlinux
initrd /bt4/boot/initrd.gz

Link to comment
Share on other sites

When I used grub(grub4dos) I format my usb key as bootable(hp usb format tool with boot options), point to some win98 dos files to boot from, then its set to copy anything to the drive, like grub and linux, etc.

Here is what I think I used to have for bt4

# This is a sample menu.lst file. You should make some changes to it.

# The old install method of booting via the stage-files has been removed.

# Please install GRLDR boot strap code to MBR with the bootlace.com

# utility under DOS/Win9x or Linux.

color black/cyan yellow/cyan

timeout 30

default /default

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP

fallback 2

find --set-root /cmldr

chainloader /cmldr

#####################################################################

# write string "cmdcons" to memory 0000:7C03 in 2 steps:

#####################################################################

# step 1. Write 4 chars "cmdc" at 0000:7C03

write 0x7C03 0x63646D63

# step 2. Write 3 chars "ons" and an ending null at 0000:7C07

write 0x7C07 0x00736E6F

savedefault --wait=2

title Load BackTrack4

root (hd0,0)

kernel /boot/vmlinuz vga=normal max_loop=255 initrd=/boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=9999 root=/dev/ram0 rw

initrd /boot/initrd.gz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...