Howto: BT4 boot without changing partitions, no USB boot, etc in grub
This is my first tutorial, and I am writing it hoping that I can help someone else who has old hardware. My laptop has a busted DVD drive, can't boot from a USB drive, and I don't want to edit the partitions, and install it onto the drive. (security reasons...covered shortly)
This is being performed on Ubuntu 8.10 (ducks), but should work with any other install of Linux. If the backtrack DVD's stay the same, you should be able to slightly modify the files, so you can boot the latest version. Let's get started!
First things first. Download the latest DVD copy of backtrack. From the date writing this, the latest is BT4 beta.
Open the .iso, and extract the 2 folders, boot and BT4, and put them somewhere you can find them.
Now comes the fun part. Copy the BT4 folder to the root of the drive. There was a problem with older hardware not liking this folder anywhere else other than /. To cover all basis...just put it there.
Once that folder is moved, make a new directory in /boot, and chmod it. This will let you put new files into it later, so you can use up coming releases the same way. (Which is what I will be doing =)
You can play with the chmod, and see what works best for you for security purposes.
sudo mkdir /boot/BT4
sudo chmod 777 /boot/BT4
Now move the BT4 boot file to the directory.
mv boot /boot/BT4
Now, it's time to edit your menu.lst, which is found in /boot/grub/menu.lst , if your using Ubuntu. We need to tell it how to boot BT, and where to find it. For me, the partition that is being used is /dev/sda5. Heres what mine looks like:
And that should do it! When testing it, I kept getting an error of " init: illegal runlevel: (null) " . I added
title Backtrack 4
kernel /boot/BT4/boot/vmlinuz rw root=/dev/hda5 root=/dev/ram0 ramdisk_size=6666
initrd /boot/BT4/boot/initrd.gz #boots directly to BT
, and the problem is fixed. I also saw that many others had a similar problem, and hopefully it will help them out. If you have any other questions...feel free to ask away!
How to keep persistant changes
I figured this out, and decided to add it to here. In order to keep the changes made to the system, you can
to put a folder in the root of the file system. Once you do this, you can modify the boot to look like
sudo mkdir /changes
With this, all changes are save in the folder changes to /dev/hda5. I hope this helps anyone out there!
title Backtrack 4
kernel /boot/bt4/boot/vmlinuz rw changes=/dev/hda5 root=/dev/hda5 root=/dev/ram0 ramdisk_size=6666