Page 1 of 24 123456789101121 ... LastLast
Results 1 to 10 of 234
Like Tree1Likes
Discuss [Guide] Boot OS X from External USB drive - Complete HOWTO at the AppleTV - Hackint0sh.org; HOWTO: Boot Mac OS 10.4.8 on an AppleTV without opening the case Goal: Boot up ...
  1. #1
    Rookie Array

    Join Date
    Mar 2007
    Posts
    29
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [Guide] Boot OS X from External USB drive - Complete HOWTO

    HOWTO: Boot Mac OS 10.4.8 on an AppleTV without opening the case

    Goal: Boot up Mac OS X on an AppleTV from a USB drive without voiding warranty. This is done to allow the user to install hacks on the AppleTV internal drive itself.

    Credits:
    Modified Kernel by semthex [http://www.semthex.com/]
    Partitioning portions taken from Turbo's "Creating a disk to boot from USB" notes [http://0xfeedbeef.com/appletv/]
    Portions of this guide taken from semthex's "Mac OS X running on Apple TV" howto
    Small portions written by Paul Taylor [http://www.addressplus.net]

    Required materials:
    An AppleTV
    A boot.efi file from an AppleTV (don't ask me where to find this)
    Intel Mac
    Tiger Install CD
    External USB 2.0 hard drive

    Set up your USB drive
    1. In Mac OS, open Disk Utility
    2. In the left pane of Disk Utility, select the USB drive
    3. Hit the Options button at the bottom of the screen.
    4. On the resultant screen, select GUID Partition Table. This is required to be able to install Mac OS X.
    5. Lay out your partitions the way you want.. (One big, two, whatever) and format them with Mac OS Extended (Journaled)
    6. Let the format finish. When done, you should be able to mount the drive.

    Install Mac OS X
    1. Pop in your install disk with the external drive attached
    2. Reboot, holding down the Option key on your keyboard
    3. Select the CD icon to boot from your install CD
    4. Run through the complete installation process, selecting your USB drive as the destination.

    Customize your USB installation
    1. Run through the normal 1st boot stuff (Add user, etc.)
    2. Download this: http://www.apple.com/support/downloa...dateintel.html
    3. Install the 10.4.8 combo update
    4. Reboot. Go to software update and get all the updates EXCEPT 10.4.9
    5. System Prefs > Sharing
    6. Check Remote Login here (this enables SSH)
    7. Check Apple Remote Desktop
    8. Click "Access Privileges", check the "VNC viewers" box, and put in a password here. This will let you remote control your AppleTV after you boot it with this installation.
    9. Do any other customization you desire, except update to a newer version of Tiger

    Get ethernet working with PCGenRTL8139Ethernet 1.2.0
    1. Download http://www.sendspace.com/file/4i62j1
    2. Install per the instructions in the file
    (Note: This is needed to get either the built-in Ethernet to work or the Airport. This doesn't break Ethernet support for an Intel Core Duo iMac - not sure about others.)

    Install proper kernel
    1. Boot back up to your internal hard drive
    2. Download the kernel from one of the mirrors listed here:
    http://www.hackint0sh.org/forum/showthread.php?t=541
    3. Mount your external drive
    4. From a Terminal window, do this: ls -la /Volumes/YourExternalDisk
    5. You will see a file called mach_kernel there.
    6. Delete this file (may have to sudo rm /Volumes/YourExternalDisk/mach_kernel). Be careful here NOT to delete the kernel on your Internal Boot disk!
    7. Copy the unzipped kernel you downloaded in step 2 to /Volumes/YourExternalDisk

    Install boot.efi
    1. Replace /System/Library/CoreServices/boot.efi with the boot.efi file from the AppleTV boot drive (it is in the same path)
    2. To do the above, you may have to do a "Get Info" on the boot.efi file on your external drive and uncheck the "Locked" checkbox.
    3. Bless the installation from a Terminal:
    sudo bless --folder=/Volumes/YourExternalDisk/System/Library/CoreServices --file=/Volumes/YourExternalDisk/System/Library/CoreServices/boot.efi --setBoot

    Cleanup
    1. Delete the Nvidia kexts (all begining with NVD, there are 5) from /Volumes/YourExternalDisk/System/Library/Extensions
    2. Delete /Volumes/YourExternalDisk/System/Library/Extensions.mkext and Extensions.kextcache if they exist

    Patch AppleFileSystemDriver
    NOTE: Perform these steps with a command line text editor or with TextWrangler (http://www.barebones.com/products/te...ownload.shtml). DO NOT USE TEXTEDIT!
    1. Edit /Volumes/YourExternalDisk/System/Library/Extensions/AppleFileSystemDriver.kext/Contents/Info.plist
    2. Search for "IOPropertyMatch". It will be found similar to this:
    PHP Code:
                <key>media-match</key>
                <
    dict>
                    <
    key>IOPropertyMatch</key>
                    <array>
                        <
    dict>
                            <
    key>Content Hint</key>
                            <
    string>48465300-0000-11AA-AA11-00306543ECAC</string>
                            <
    key>Leaf</key>
                            <
    true/>
                        </
    dict
    3. Just after the line with <array>, copy/paste this in:
    PHP Code:
                        <dict>
                            <
    key>Content Hint</key>
                            <
    string>5265636F-7665-11AA-AA11-00306543ECAC</string>
                            <
    key>Leaf</key>
                            <
    true/>
                        </
    dict>
                        <
    dict>
                            <
    key>Content Hint</key>
                            <
    string>Apple_Recovery</string>
                            <
    key>Leaf</key>
                            <
    true/>
                        </
    dict
    Change Partition Type
    NOTE: Once you do this, you can't mount the disk on your Intel Mac anymore without reversing the change. If you mess up here, you'll need to start over.
    1. Open Disk Utility
    2. Select the external disk from the left pane. Right click and select "Information"
    3. Take note of the "Disk Indentifier". In my case, it is "disk3". For safety reasons, the rest of this guide is written with "diskX". Replace the X with the number of your drive.
    4. From Terminal:
    gpt -r show /dev/diskX
    5. You'll get something similar to this back:
    PHP Code:
          start       size  index  contents
              0          1         PMBR
              1          1         Pri GPT header
              2         32         Pri GPT table
             34          6         
             40     409600      1  GPT part 
    C12A7328-F81F-11D2-BA4B-00A0C93EC93B
         409640   77757488      2  GPT part 
    48465300-0000-11AA-AA11-00306543ECAC
       78167128     262144         
       78429272   77610032      3  GPT part 
    48465300-0000-11AA-AA11-00306543ECAC
      156039304     262151         
      156301455         32         Sec GPT table
      156301487          1         Sec GPT header 
    6. A little explanation here is in order. The first real partition is on the line beginning with 40. In this case, it runs from 40 through 409600. (I'm guessing these are bytes) Next to the size is the index, 1. The very next line is the one we are interested in. This is the partition that contains your bootable install. It is index 2. You may or may not have and index 3)

    7. Unmount the disk:
    disktool -u diskX

    8. Now, we remove the entry in the table for the 2nd partition
    gpt remove -i 2 /dev/diskX

    I got this back:
    gpt remove: /dev/disk3: 1 partition(s) removed

    9. Mac OS will remount any remaining partitions. Unmount them:
    disktool -u diskX

    10. Now, we add a new entry to the table. For index 2, take note of the start, and the size, as you'll need them here. Replace the START and SIZE strings with your values.

    gpt add -b START -s SIZE -i 2 -t "5265636F-7665-11AA-AA11-00306543ECAC" /dev/diskX

    Note that it doesn't tell you anything back.. You just get a prompt.

    11. Performing step 5's command again gets me this:
    PHP Code:
          start       size  index  contents
              0          1         PMBR
              1          1         Pri GPT header
              2         32         Pri GPT table
             34          6         
             40     409600      1  GPT part 
    C12A7328-F81F-11D2-BA4B-00A0C93EC93B
         409640   77757488      2  GPT part 
    5265636F-7665-11AA-AA11-00306543ECAC
       78167128     262144         
       78429272   77610032      3  GPT part 
    48465300-0000-11AA-AA11-00306543ECAC
      156039304     262151         
      156301455         32         Sec GPT table
      156301487          1         Sec GPT header 
    Note that the index 2 partition type is now the required type for AppleTV to boot to.

    Boot your AppleTV with OS X
    1. Attach your external drive to the USB port
    2. If already booted up, hit MENU and "-" on your remote and hold it until a reboot start
    3. If your AppleTV isn't on, plug it in to power. No remote finagling required.
    4. Watch in AWE as your AppleTV boots up OS X.
    Last edited by ptaylor874; 04-07-2007 at 11:44 PM.

  2. Thanks thanked for this post.
    Like stentorian liked this post.


  3. #2
    Newbie Array

    Join Date
    Apr 2007
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Thanks, ptaylor874. I followed the instructions exactly except for one step: I did not replace boot.efi from the appleTV, because to do so would require me to open the case and void the warranty.

    Of course, the appleTV did not boot from external HD without this step. So, this boot.efi is really the missing piece in all of this -- everything else is freely available and understandable.

    I know that you said not to ask where to get boot.efi. I just want to clarify that this boot.efi file looks to be critical for success with these instructions.

  4. #3
    Rookie Array

    Join Date
    Mar 2007
    Posts
    29
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Yes - That file is absolutely critical to get it to work.

    You may be able to convince a friend to buy an AppleTV and borrow it for an evening, extracting the boot.efi file from his... That way your warranty would be completely in tact..

  5. #4
    Senior Professional Array semthex's Avatar

    Join Date
    Oct 2006
    Location
    Vatican City :-P
    Posts
    150
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Thanks for this guide :-D Realoly great work.
    For support and more infos go to irc.osx86.hu
    Your happy hackint0sh IRC network.

  6. #5
    Newbie Array

    Join Date
    Mar 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0


  7. #6
    Rookie Array

    Join Date
    Mar 2007
    Posts
    23
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hmm that means booting from a USB thumb drive might be possible.

  8. #7
    DxQ
    DxQ is offline
    Advanced Array

    Join Date
    Apr 2007
    Posts
    30
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I attempted this with an install from my brand new (two weeks old, 10.4.8) MacBook Pro restore DVD, and when I tried to boot up, I was presented with the grey apple, then with the "invalid" sign (circle with a line through it), and the drive failed to boot. I tried the install again with the same results.

    Am I doing something wrong, is my DVD too new?

  9. #8
    Newbie Array

    Join Date
    Apr 2007
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by DxQ View Post
    I attempted this with an install from my brand new (two weeks old, 10.4.8) MacBook Pro restore DVD, and when I tried to boot up, I was presented with the grey apple, then with the "invalid" sign (circle with a line through it), and the drive failed to boot. I tried the install again with the same results.

    Am I doing something wrong, is my DVD too new?
    This happened to me too. I just rebooted it again... and then it showed me the Apple Logo... then it rebooted automatically *again* ... and then booted up to the Mac OS just fine thereafter...

    So just keep rebooting it I guess... let it grind away~

    *****

    Question about boot.efi

    I don't want to void my warrentee either with my Apple TV... Is a boot.efi file unique to each ATV? If it's not, then what's keeping people from providing it online...? Or should I not be asking that question...?

    Thanks,

    Eugene

  10. #9
    Rookie Array

    Join Date
    Mar 2007
    Posts
    29
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    DxQ,
    I don't know what the problem could be. If you are replacing the kernel with the semthex kernel, deleting the specified files, and handling the boot.efi as directed, it should work as long as you don't run into an issue with the partitioning.

    Yujean,
    The boot.efi file is not unique to an individual AppleTV, as far as I know.

    With that in mind, I guess that it, or perhaps even a copy of the AppleTV OS that you could pull it from, may be somewhere on the Internet.

    Whether it would be legal to download it is another question... I'm almost of the opinion that you could get away with it legally since you own an AppleTV box, but what do I know? I'm not a lawyer.

    One good bit of news that I read last night was that Apple wasn't planning to do anything to stop people from hacking their AppleTVs.

  11. #10
    DxQ
    DxQ is offline
    Advanced Array

    Join Date
    Apr 2007
    Posts
    30
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I am following the given instructions EXACTLY, and I've done it twice.

    I am not using the boot.efi from my image, as I haven't opened my case (I got one somewhere else, if you understand what I'm saying). Would a bad boot.efi give me this problem?

  12. Thanks seo_urani thanked for this post.

 

 
Page 1 of 24 123456789101121 ... LastLast

Similar Threads

  1. Replies: 1
    Last Post: 12-03-2011, 05:27 PM
  2. Replies: 1
    Last Post: 01-25-2010, 07:52 AM
  3. Boot from external drive?
    By Travish997 in forum Tiger
    Replies: 2
    Last Post: 05-13-2009, 11:44 PM
  4. Replies: 6
    Last Post: 07-13-2008, 06:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 08:29 AM.
twitter, follow us!