Results 1 to 2 of 2

Thread: Howto: BT4 boot without changing partitions, no USB boot, etc in grub

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Jan 2009
    Posts
    10

    Default 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.

    Code:
    sudo mv BT4 /
    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 =)

    Code:
    sudo mkdir /boot/BT4
    sudo chmod 777 /boot/BT4
    
    Now move the BT4 boot file to the directory.
    
    mv boot /boot/BT4
    You can play with the chmod, and see what works best for you for security purposes.

    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:

    Code:
    title   Backtrack 4
    root (hd0,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 that should do it! When testing it, I kept getting an error of " init: illegal runlevel: (null) " . I added
    Code:
    root=/dev/ram0 ramdisk_size=6666
    , 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!

    --Marfi

  2. #2
    Just burned his ISO
    Join Date
    Jan 2009
    Posts
    10

    Default 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

    Code:
    sudo mkdir /changes
    to put a folder in the root of the file system. Once you do this, you can modify the boot to look like
    Code:
    title 		Backtrack 4
    root (hd0,4)
    kernel		/boot/bt4/boot/vmlinuz rw changes=/dev/hda5 root=/dev/hda5 root=/dev/ram0 ramdisk_size=6666
    initrd		/boot/bt4/boot/initrd.gz
    With this, all changes are save in the folder changes to /dev/hda5. I hope this helps anyone out there!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •