Jump to content











Photo
- - - - -

Dual-boot flash drive with Backtrack 4 and Ubuntu 9.10


  • Please log in to reply
9 replies to this topic

#1 talsemgeest

talsemgeest
  • Members
  • 7 posts
  •  
    New Zealand

Posted 22 October 2009 - 11:08 AM

Hey all, I am trying to create a multiboot flash drive, with a persistent Backtrack 4 prerelease install (which uses grub 1.5), and ubuntu 9.10, not persistent, which uses grub 2.0. BT4 needs 2 partitions, one formatted FAT32 for the booting, the other as ext3 for the persistent files.

What is the best way to go about doing this? I would like to be able to put on other distrobutions another time, but it is not essential.

Thanks,

talsemgeest.

#2 talsemgeest

talsemgeest
  • Members
  • 7 posts
  •  
    New Zealand

Posted 26 October 2009 - 01:10 AM

Guess I will have to bump up my post :confused1:

#3 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 26 October 2009 - 08:57 AM

just wondering , cant grub4dos handle both ?

if my memory serves me right , i have helped a net friend from other forums in booting BT4 from grub4dos . but he did not ask me anything about other partition what you are asking . but i guess it can also be workable with grub4dos .

will you please post menu.lst files from both of distros ? although i am a noob in linux booting , but i ll try .

#4 ktp

ktp

    Silver Member

  • Advanced user
  • 758 posts

Posted 26 October 2009 - 09:07 AM

Both Back Track 4 and Ubuntu 9.10 use /casper as directory name, so I am afraid there is a conflict.

#5 talsemgeest

talsemgeest
  • Members
  • 7 posts
  •  
    New Zealand

Posted 26 October 2009 - 09:16 AM

Thanks for the reply maanu, grub4dos might work.

Heres the menu.lst for BT4:

# By default, boot the first entry.

default 0



# Boot automatically after 30 secs.

timeout 30



splashimage=/boot/grub/bt4.xpm.gz





title				Start BackTrack FrameBuffer (1024x768)

kernel				/boot/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x317

initrd				/boot/initrd.gz



title				Start BackTrack FrameBuffer (800x600)

kernel				/boot/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x314

initrd				/boot/initrd800.gz



title				Start BackTrack Forensics (no swap)

kernel				/boot/vmlinuz BOOT=casper boot=casper nopersistent rw vga=0x317

initrd				/boot/initrdfr.gz



title				Start BackTrack in Safe Graphical Mode

kernel				/boot/vmlinuz BOOT=casper boot=casper xforcevesa rw quiet 

initrd				/boot/initrd.gz



title				Start Persistent Live CD

kernel				/boot/vmlinuz BOOT=casper boot=casper persistent rw quiet 

initrd				/boot/initrd.gz



title				Start BackTrack in Text Mode

kernel				/boot/vmlinuz BOOT=casper boot=casper nopersistent textonly rw quiet

initrd				/boot/initrd.gz



title				Start BackTrack Graphical Mode from RAM

kernel				/boot/vmlinuz BOOT=casper boot=casper toram nopersistent rw quiet 

initrd				/boot/initrd.gz



title				Memory Test

kernel				/boot/memtest86+.bin



title				Boot the First Hard Disk

root				(hd0)

chainloader +1

Unfortunately, Ubuntu 9.10 uses grub 2, so there is no menu.lst as such, but here is the text.cfg:
default live

label live

  menu label ^Try Ubuntu without any change to your computer

  kernel /casper/vmlinuz

  append  file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --

label live-install

  menu label ^Install Ubuntu

  kernel /casper/vmlinuz

  append  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.lz quiet splash --

label check

  menu label ^Check disc for defects

  kernel /casper/vmlinuz

  append  boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --

label memtest

  menu label Test ^memory

  kernel /install/mt86plus

label hd

  menu label ^Boot from first hard disk

  localboot 0x80

And yes ktp, there is a conflict, but is there a way to get around it?

Thanks for the help,

talsemgeest

#6 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 October 2009 - 09:24 AM

A possibility is to use backtrack as install and Ubuntu as .iso mapped to (hd32)/(0xFF) with grub4dos. :unsure:

You don't need ANY change in the BT4 menu.lst, you will need to add to it an entry for UBUNTU like this one:
http://www.boot-land...?showtopic=5041
http://www.boot-land...?...=5041&st=20

BUT
read this also:
http://www.boot-land...?...=9391&st=10

AND this (just in case ;)):
http://www.boot-land...?showtopic=8944

:confused1:

jaclaz

#7 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 26 October 2009 - 09:48 AM

what is the exact version # of BT4 you are using ?

im 110% sure , the following worked for that guy i mentioned above , i am copy pasting the reply i sent to him about a month ago ,

1st command = root (hd0,0) ENTER
2nd command = kernel /boot/vmlinuz ramdisk_size=6666 vga=0x317 root=/dev/ram0 initrd=/boot/initrd.gz rw ENTER

3rd command = initrd /boot/initrd.gz ENTER

4th commands= boot

reply back takedown32 ,i hope it ll work .



#8 talsemgeest

talsemgeest
  • Members
  • 7 posts
  •  
    New Zealand

Posted 26 October 2009 - 11:11 PM

what is the exact version # of BT4 you are using ?

im 110% sure , the following worked for that guy i mentioned above , i am copy pasting the reply i sent to him about a month ago ,

I am running Backtrack 4 prerelease (codename Pwnsauce). Ok, off to try the suggestions. :confused1:

#9 talsemgeest

talsemgeest
  • Members
  • 7 posts
  •  
    New Zealand

Posted 17 February 2010 - 07:55 AM

Well, it has taken me this long, but I have finally done it. I started by booting the Ubuntu iso from my flash drive as per this tutorial. I had a try at booting the Backtrack 4 iso as well, but had no luck with that. So, I extracted the iso into the root of the flash drive, and edited the menu.lst of the Ubuntu loader to have the option for Backtrack. All in all, here is the final menu.lst:

title Boot Ubuntu 9.10find --set-root /ubuntu-9.10-desktop-amd64.isomap /ubuntu-9.10-desktop-amd64.iso (0xff)map --hookroot (0xff)kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper persistent iso-scan/filename=/ubuntu-9.10-desktop-amd64.iso splashinitrd /casper/initrd.lzboottitle Backtrack 4kernel                /boot-bt4/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x317initrd                /boot-bt4/initrd.gz


#10 breaker

breaker

    Frequent Member

  • Advanced user
  • 112 posts
  •  
    United States

Posted 07 March 2010 - 07:32 PM

I haven't tried BackTrack specifically, but I have used grub2 to boot multiple isos on a usb flash drive. Once you setup your flash stick, you can make menu entries to boot the isos, but you need to know what cheat codes to use for the Linux distro you are trying to boot.

Like so - http://www.panticz.de/MultiBootUSB




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users