Remote Exploit Forums

Go Back   Remote Exploit Forums > Archives > BackTrack 3 Final > BackTrack3 Howtos


BackTrack3 Howtos Add your howto articles / tutorials here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-01-2008, 11:57 PM
Just burned his ISO
 
Join Date: Aug 2008
Posts: 2
Default Installing BackTrack 3 Final to an Intel Mac

I know that there have been several threads created about installing BT3 Final to a Mac, but I tried three times unsuccessfully, but the fourth time I got it done. I have borrowed much of the information that I will be sharing from the following people: jeroenimo, Action discrete, Super n00b, and pureh@te.
FYI before I get started, I installed BT onto an Intel Mac Mini. And as always BACKUP YOUR HARD DRIVE (that means make an image of the Macintosh HD if you need to restore it, which I did the first time I messed up, but then I realized that I hadn't deleted data, just messed rEFIt up beyond recognition!)
I did not make a swap partition because I heard that I did not need to since I had a gig of RAM.
I am skipping the swap part because I did not need it (so have at least a gig of RAM), so if anyone needs my help on that I think that I am not of much assistance because I tried that and it did not work out for me.
Let's get started:


Make a 5 gig boot camp partition.
Download and install rEFIt, making sure that you read the documentation extensively so that you know it like the back of your hand.
Insert the BT3 Final CD.
Restart your computer (for me rEFIt did not show up the first time, so restart again and it will appear).
Select the rEFIt partition tool and make sure that you carefully read the tables and then sync them.
Boot the LiveCD of BackTrack (choose VESA KDE immediately).
Once you get to the desktop, open up a shell.
Code:
fdisk /dev/sda
Hit p
You should see the Boot Camp partition as sda3 (it will say something like W95 FAT).
If you only have OS X on your drive then you will see an EFI partition and an "unknown" partition (which is OS X).
Hit t.
Code:
Partition number (1-3):
Hit 3.
Code:
Hex code (type L to list codes):
Hit 83.
Hit w.
Now this part is important, make sure that the following command works (it should just act as if nothing happened, like you hit enter. To check if it worked successfully, type "mount" without the quotes at the Konsole).
Code:
umount /dev/sda3
Now it's time to make the filesystem.
Code:
mkfs.ext3 /dev/sda3
Now we install BackTrack.
Code:
mkdir /mnt/backtrack
mount /dev/sda3 /mnt/backtrack/
mkdir /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/
That was pureh@te's code modified in one way, we did not have to make a root or swap partition.
Finally we get to editing the lilo.conf file.
Code:
chroot /mnt/backtrack/ /bin/bash
nano /etc/lilo.conf
Now here is my lilo.conf file:
Code:
lba32
boot = /dev/sda3
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = BT3
Now we are ready to execute lilo.
Code:
lilo -v
Now we exit the chroot environment and we reboot the system.
Code:
exit
reboot
If something goes wrong right off the bat that means you were not very careful in checking each of these commands entered.
When I installed it (which just so happened to be about two hours ago), I was having trouble with rEFIt so I did not trust it, which meant that I used the Boot Camp boot menu to choose the LiveCD before i installed it, but that was because I had messed up my other three times. So what I did was first try the Boot Camp menu, which did not work (i selected Windows, because I only had Mac and Linux on it), so then I tried rebooting and using rEFIt, which worked! However, I played around with BackTrack and then I rebooted it and I could not get back in to it. The solution was to boot into OS X and reboot from there and then boot into rEFIt.
If you have a lot of trouble with this, then delete the partition with Boot Camp Assistant and start over from the beginning.

Hopefully this helps all the other people out there like me!
Reply With Quote
  #2 (permalink)  
Old 08-05-2008, 10:06 AM
Junior Member
 
Join Date: Aug 2007
Location: Nashville, TN
Posts: 12
Default

I started with a fresh 5GB partition using Boot Camp, copy and pasted each command from this page then rebooted into OS X with no problems.
When I rebooted the rEFit menu had three options: OS X, Boot Linux from HD, Boot Linux from Partition 3.
Selecting either Linux option would give me a screen full of "99 99 99".

Last edited by LeeRock; 08-05-2008 at 10:43 AM.
Reply With Quote
  #3 (permalink)  
Old 08-05-2008, 02:57 PM
Just burned his ISO
 
Join Date: Aug 2008
Posts: 2
Default

Well, I think that the commands must be verified because your computer is different and it may have a different partition number. I don't think copying all of the commands very fast is a good idea. I don't know what to say except to delete the partition with bootcamp and sync the tables and then start over from the top.
Reply With Quote
  #4 (permalink)  
Old 08-15-2008, 12:02 AM
Member
 
Join Date: May 2008
Posts: 37
Default

Great post! worked flawlessly. you should keep writing guides for bt3 on the macbook. i need them
Reply With Quote
  #5 (permalink)  
Old 08-18-2008, 07:44 PM
Member
 
Join Date: Jun 2008
Posts: 39
Default

Well I followed your guide and it worked great...

Edit:
Well I hit the alt/option key at the boot sound and it brought up rEFIt and displayed both OSX and BT3, but when I select BT3, the little penguin just stares me in the face...

The partitions are sync'd according to rEFIt and look to be correct. So it might be my lilo.conf maybe?
Mine looks just like yours

lba32
boot = /dev/sda3
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = BT3

Last edited by toohxc; 08-18-2008 at 08:17 PM. Reason: added more information
Reply With Quote
  #6 (permalink)  
Old 08-18-2008, 09:07 PM
Just burned his ISO
 
Join Date: Aug 2008
Posts: 2
Default

Quote:
Originally Posted by toohxc View Post
Well I followed your guide and it worked great...

Edit:
Well I hit the alt/option key at the boot sound and it brought up rEFIt and displayed both OSX and BT3, but when I select BT3, the little penguin just stares me in the face...

The partitions are sync'd according to rEFIt and look to be correct. So it might be my lilo.conf maybe?
Mine looks just like yours

lba32
boot = /dev/sda3
prompt
timeout=60
change-rules
reset
vga=791
image = /boot/vmlinuz
root = /dev/sda3
label = BT3
Well that happened to me when I first installed but a boot into OS X and reboot from there fixed it for me. If that solves the problem then in the future just always reboot from OS X if the penguin is just sitting there.
Reply With Quote
  #7 (permalink)  
Old 08-19-2008, 01:07 AM
Member
 
Join Date: Jun 2008
Posts: 39
Default

Quote:
Originally Posted by macpentester View Post
Well that happened to me when I first installed but a boot into OS X and reboot from there fixed it for me. If that solves the problem then in the future just always reboot from OS X if the penguin is just sitting there.
Well it works now (am currently posting from it) i redid the lilo.conf and I might have messed up the first time but its works now... Thanks for the great write-up!
Reply With Quote
  #8 (permalink)  
Old 10-26-2008, 05:28 PM
Junior Member
 
Join Date: Jul 2008
Posts: 11
Default

Ugh, I keep getting :

Reading boot sector from /dev/sda3
Fatal: creat /boot/boot.0800: Read-only file system




any ideas?
Reply With Quote
Reply

Bookmarks

Tags
boot camp/refit, bt3final, hd install, mac

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:56 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2