Results 1 to 6 of 6

Thread: How to install BackTrack 3 Final from the shell, to a Macbook

  1. #1
    Just burned his ISO
    Join Date
    Apr 2008
    Posts
    16

    Thumbs up How to install BackTrack 3 Final from the shell, to a Macbook Pro

    I managed to install BT3 final on my MBP Core2Duo Intel. The steps were basically the same as pureh@te described [0], but here is the right steps to follow.

    1. You have at least 3 neuron, which is better than 2. (I'm a Mac, you're a PC).

    2. You may folow the how to of Jereonimo [1] if you start from scratch (from OSX environment), and follow this how to until Jereonimo starts speaking about Installer GUI (which is no more present in Backtrack).
    If you have followed the Jereonimo's explanation and previously installed BT2/BT3b/BT3Pre-IRC, and you would switch to the new BT3 release, you would just have to rewrite a blank filesystem using the command
    Code:
    mkfs.ext3 /dev/sda3
    3. The partition table :
    On a mac which have rEFIt, Leopard, and another prepared partition, this would like this :
    sda1==> EFI GPT (rEFIt boot)
    sda2 ==> MacOSX (to preserve)
    sda3 ==> Newly formatted partition to be Backtracked.

    To see this information, simply use the command fdisk with L parameter :
    Code:
    fdisk -l
    4. Insert the liveCD and reboot. rEFIt will run, and choose the LiveCD. If rEFIt don't launch, boot under OSX and follow the rEFIt manual. You can also press ALT once the boot sound plays, and choose rEFIt.

    5. You are now under the Backtrack environment. As you Macbook Pro have 1Go RAM or more, you don't have to make a swap partition. I'm on a MBP with 4Go RAM, this would be sic. So, I will jump the swap stuff and let the auto memory swap manage this thing.

    5. The steps to install BT3 on the sda3 partition. Open a shell, and type :

    Code:
    mkdir /mnt/backtrack
    mount /dev/sda3 /mnt/backtrack/
    mkdir /mnt/backtrack/boot/
    mount /dev/sda3 /mnt/backtrack/boot/
    cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /mnt/backtrack/  
    mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
    mount --bind /dev/ /mnt/backtrack/dev/
    mount -t proc proc /mnt/backtrack/proc/
    cp /boot/vmlinuz /mnt/backtrack/boot/
    Note about :
    - mount /dev/sda3 /mnt/backtrack/boot/ <<< We musn't write anything on our EFI GPT boot partition. So we will write the MBR to the sda3.
    - cp --preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,va r} /mnt/backtrack/ <<<< If you don't find the { and } key, it's : Right ALT then 5. Copy takes 5 min in my case.
    - cp /boot/vmlinuz /mnt/backtrack/boot/ <<< If you followed the thing, this will write the MBR to sda3.

    6. LILO

    Code:
    chroot /mnt/backtrack/ /bin/bash
    ## You can either use nano to edit the lilo.conf file or manually navigate to /mnt/backtrack/etc/lilo.conf and open it with any GUI editor.
    nano /etc/lilo.conf
    My lilo.conf look like this :
    Code:
    # /etc/lilo.conf
    
    boot = /dev/sda3
    prompt
    timeout = 60
    change-rules
    reset
    #vga = 769,771/773/792
    vga = 791
    # bootable kernel images:
    image = /boot/vmlinuz
    initrd = /boot/splash.initrd
      root = current
      label = BackTrack3
      read-only
    Then save the file, and execute the lilo.conf using
    Code:
    lilo -v
    You can now exit and reboot
    Code:
    exit
    reboot
    7. Troubleshooting

    If at first reboot OSX runs automatically, let it boot, and reboot from OSX. rEFIt should run.
    If rEFIt don't launch, hit ALT at boot sound and choose rEFIt the choose the Backtrack3 Icon.
    If Backtrack won't launch at all or if OSX wouldn't run after this, simply synchronize the GPT with the MBR using the one key press method provided by the rEFIt command GUI.
    If startx gives error, launch xconfig after log in.
    But anything of this would normally happen ifyou followed the steps.

    Everything works out of the box except sound which need a kernel upgrade, compiz which isn't installed by default in BT3-iso release, and keyboard locale switch under the system tool. For this last thing, I used " setxkbmap -model macbook78 -layout fr " to set it in my locale. Models can be "macbook78" (intel / ppc) or "macbook79" (Intel). You can also follow this how to [2] in order to install the NVIDIA drivers and get 1900x1200.


    Enjoy



    [0] : hxxp://forums.remote-exploit.org/showpost.php?p=87694&postcount=1
    [1] : hxxp://forums.remote-exploit.org/showthread.php?t=11154&highlight=macbook
    [2] It's in French : hxxp://wiki.backtrack-fr.net/index.php/Configurer_sa_carte_graphique_NVIDIA

  2. #2
    My life is this forum Barry's Avatar
    Join Date
    Jan 2010
    Posts
    3,817

    Default

    Can you change the title of your thread to MacBook Pro? MacBooks and MacBook Pros have different hardware and don't work the same with BT.
    Of course, if you really wanted to have some fun, go to Wal-Mart late at night and ask the greeter if they could help you find trashbags, roll of carpet, rope, quicklime, clorox and a shovel. See if they give you any strange looks. --Streaker69

  3. #3
    Just burned his ISO
    Join Date
    Apr 2008
    Posts
    16

    Default

    Quote Originally Posted by Barry View Post
    Can you change the title of your thread to MacBook Pro? MacBooks and MacBook Pros have different hardware and don't work the same with BT.
    Done.
    Do you to release a MB how to ?

  4. #4
    Just burned his ISO
    Join Date
    Sep 2006
    Posts
    1

    Default

    Been trying to do this on my 2008 mbp, but my googlegut feeling is telling me something is missing around the cp /boot/vmlinuz part, since everyone else with the same problem I've seen had to install GRUB? or I'm just tarded. I get my 3 partitions in GPT where it lists sda3 as Basic Data, and in MBR it lists it correctly as Linux. Shows "Legacy OS" in rEFIt boot menu. Tried syncing through the refit partition tool, and reinstalling few times.

  5. #5
    Just burned his ISO
    Join Date
    Apr 2008
    Posts
    16

    Default

    Quote Originally Posted by cahrnah View Post
    Been trying to do this on my 2008 mbp, but my googlegut feeling is telling me something is missing around the cp /boot/vmlinuz part, since everyone else with the same problem I've seen had to install GRUB? or I'm just tarded. I get my 3 partitions in GPT where it lists sda3 as Basic Data, and in MBR it lists it correctly as Linux. Shows "Legacy OS" in rEFIt boot menu. Tried syncing through the refit partition tool, and reinstalling few times.
    Hi
    GRUB can do the job too, but rEFIt ris really a ease of use, and GRUB is more complicated for the exactly same functionnalities. I'm using a Sept 2007 MBP and this steps worked fine. This worked fine too on a May 2008 MBP. Are you using a newly-released MBP ?
    Be sure to install the vmlinuz boot to the root of your ext3 partition and to declare it on LILO.conf. Synchronizing the GTP with the MBR is finally not a matter, as rEFIt should automatically synch the boot sectors if it found one which isn't at restart (restarting 3 times from OSX can make the thing).

    Is LiveCD boot working ?

    Is Lilo OK ?

  6. #6
    Just burned his ISO
    Join Date
    Jul 2009
    Posts
    6

    Default

    Hi Action discrete,

    It seems like you know quite a bit about installing Backtrack on a Mac and I am looking for some help with a similar problem to that cahrnah has described.

    I installed a "triple boot" configuration with OS X 5.7, Win XP and Backtrack 3, but when I boot up, I get icons for all the volumes including Windows, but the partition that should be Backtrack is showing up as "Legacy OS" with a grey Windows icon and will not boot. In fact, last time I tried to boot from it, it took me into the Windows partition and actually started up fine...

    I am having problems getting rEFIt to boot up, even after manually running the rEFIt script in Terminal to "bless" my primary startup volume. The computer refuses to boot up with rEFIt as it should, so I need to do an "Option" startup to see rEFIT, and the rEFIt shell starts and crashes. My post with all the details can be found in P1llowT@lk's instructions for setting up a triple boot system, and I am using a MacPro desktop from 2006:

    ://forums.remote-exploit.org/tutorials-guides/22133-triple-boot-install-backtrack-after-windows-installed-osx-no-data-loss.html

    I made the modifications to the lilo.conf file as per P1llowT@lk's instructions, adding these 3 extra lines to the end of the file as per the instructions:

    other = sda4
    label = Windows
    table = sda

    These 3 lines are supposed to get around the OS X problem with having a 4th partition. Also, there is a similar small mod to the Windows boot.ini file that works in conjunction with the lilo.conf modification. All the details are in the post I referenced above.

    P1llowT@lk also says to "modify the fstab and install it"... I have no idea what mods need to be done to this file or indeed how to "install" it, and I am not getting replies to my questions.

    Can you let me know if you have any ideas ? I have been through several attempts at installing sor a few weeks and still no luck

    Thanks !

    Apple-Z

Posting Permissions

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