backtrack-4 script for grub4dos

Asked by huayucn

Hello Mr. Nomura Yoshihide,

You have done a great job for grub2. Is it possible for you to make a sript for backtrack 4 final ISO booting in grub4dos? Grub4dos does not have the command - loopback.

Thank you and best regards,
huayucn
<email address hidden>

Question information

Language:
English Edit question
Status:
Solved
For:
multiboot-usb Edit question
Assignee:
No assignee Edit question
Solved by:
huayucn
Solved:
Last query:
Last reply:
Revision history for this message
huayucn (huayucn) said :
#1

After testing, the modified file - initrd-mod-4.gz works well in grub4dos boot. Just need copy vmlinz from the bt4-final.iso.

title Start BackTrack 4 from ISO
find --set-root /boot/bt4-final.iso
kernel /boot/vmlinuz loop=/boot/bt4-final.iso boot=casper nopersistent vga=0x317 --
initrd /boot/initrd-mod-4.gz

Revision history for this message
huayucn (huayucn) said :
#2

After testing, the modified file - initrd-mod-4.gz works well in grub4dos boot. Just need copy vmlinz from the bt4-final.iso.

title Start BackTrack 4 from ISO
find --set-root /boot/bt4-final.iso
kernel /boot/vmlinuz loop=/boot/bt4-final.iso boot=casper nopersistent vga=0x317 --
initrd /boot/initrd-mod-4.gz

Revision history for this message
NOMURA Yoshihide (yoshimov) said :
#3

Thank you for your interest.

I think you could use map command in grub4dos like this:

title BackTrack 4
map /iso/bt4-final.iso (0xff)
map --hook
kernel (0xff)/boot/vmlinuz loop=/iso/bt4-final.iso boot=casper nopersistent vga=0x317 --
initrd /boot/backtrack/initrd-mod-4.gz

Of course, with grub4dos, the iso file must be contiguous one. (it is not with grub2)
I will consider to generate menu.lst for grub4dos too.

Revision history for this message
huayucn (huayucn) said :
#4

Thanks a lot for your reply.

In fact, Backtrack 4 iso with your fixed initrd can boot without map or map --mem in grub4dos. I copy the vmlinuz to /boot/backtrack folder, and I use grub4dos-0.4.4-2009-06-20. It seems that the new versions grub4dos have problem to boot Linux from ISO. You can find all versions grub4dos in http://nufans.net/grub4dos/

title Backtrack 4
find --set-root /iso/bt4-final.iso
kernel /boot/backtrack/vmlinuz loop=/iso/bt4-final.iso boot=casper nopersistent vga=0x317 --
initrd /boot/backtrack/initrd-mod-4.gz

By the way, burg - http://www.burgloader.com is better than grub2.

Revision history for this message
NOMURA Yoshihide (yoshimov) said :
#5

Thank you for your information.

With map command, you don't have to copy the vmlinuz file into usb memory and it saves small amount of free space of usb memory, but it requires contiguous iso, and your suggesting setting doesn't require contiguous iso but it acquires more disk space.

grub2 doesn't require the contiguous iso and could load the kernel directly from iso, so I decided to use grub2.

I don't know the burg much, but it looks nice.
Does it have whole features in grub2 like loopback or multiboot?

Revision history for this message
huayucn (huayucn) said :
#6

Yes, you are right. In fact, I run the ISOs from ntfs hard disk.

Regarding burg, it has whole features in grub2, and the author Bean add some features. Bean is testing map and map --mem function now.

Revision history for this message
adam liquorish (adamliq) said :
#7

Where can I find the modified initrd file to download for Backtrack 4

Revision history for this message
NOMURA Yoshihide (yoshimov) said :
#8

You could generate modified initrd in your Ubuntu environment.
Or download from following URL if you don't have Ubuntu.

http://archive.yoshimov.com/backtrack/initrd-mod-4.gz