Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Windows, Linux & others on the Mac

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 10, 2009, 10:01 AM   #1
Avizzv92
macrumors regular
 
Join Date: Mar 2008
Linux on a Mac question.

Sorry if this post is in the wrong forum, I figured this would be the best area.

Can I boot and run Linux from a USB flash drive on my Intel Mac? I have Windows XP installed from Boot Camp and works great. I was just wondering before I try, if it is possible and safe too do this.
__________________
13.3" Macbook, 2.2Ghz, 4 GB RAM, 160 GB HD
8 GB iPod Touch
16 GB iPhone 4
Creating Content For Mac http://www.alternativevisuals.com
Avizzv92 is offline   0 Reply With Quote
Old Jan 10, 2009, 10:59 PM   #2
Killthee
macrumors newbie
 
Join Date: Jan 2009
AFAIK, No and yes.

Short answer: No, you cannot run a USB Linux Distro by just installing it to a USB drive and rebooting your Mac, but you can run a Linux distro off USB when you use a bootloader on the internal drive or on a CD/DVD to boot the USB drive.

Long answer: The EFI on Intel Mac's refuses to boot off USB what it considers a legacy OS, i.e. Windows & Linux. You can bypass this issue and run Linux off a USB drive by either first running a Linux Boot CD that will allow you to boot a linux image on a USB drive (I've done this with a Backtrack CD that contained LILO to boot a copy of Backtrack on a USB flash card) or you can install a boot loader on a partition in the internal drive so you can boot the USB drive (I've done this with GRUB to boot a copy of Backtrack on my iPod). If you choose to install a bootloader on the internal drive, do a backup first and be very careful before you start partitioning/formating the drive Also keep in mind that you have to install the bootloader to the partition in which it will reside in, not to the MBR and you'll also need to install rEFIt if you do a bootloader install and you want to jump between Windows and Linux without chainloading.
Killthee is offline   0 Reply With Quote
Old Jan 10, 2009, 11:16 PM   #3
twoodcc
macrumors G5
 
twoodcc's Avatar
 
Join Date: Feb 2005
Location: Right side of wrong
Send a message via AIM to twoodcc Send a message via MSN to twoodcc
Quote:
Originally Posted by Killthee View Post
AFAIK, No and yes.

Short answer: No, you cannot run a USB Linux Distro by just installing it to a USB drive and rebooting your Mac, but you can run a Linux distro off USB when you use a bootloader on the internal drive or on a CD/DVD to boot the USB drive.

Long answer: The EFI on Intel Mac's refuses to boot off USB what it considers a legacy OS, i.e. Windows & Linux. You can bypass this issue and run Linux off a USB drive by either first running a Linux Boot CD that will allow you to boot a linux image on a USB drive (I've done this with a Backtrack CD that contained LILO to boot a copy of Backtrack on a USB flash card) or you can install a boot loader on a partition in the internal drive so you can boot the USB drive (I've done this with GRUB to boot a copy of Backtrack on my iPod). If you choose to install a bootloader on the internal drive, do a backup first and be very careful before you start partitioning/formating the drive Also keep in mind that you have to install the bootloader to the partition in which it will reside in, not to the MBR and you'll also need to install rEFIt if you do a bootloader install and you want to jump between Windows and Linux without chainloading.
interesting. thanks for that info! now, what about triple and quadruple booting? like leopard, xp, vista, and ubuntu? is this possible?
__________________
tville
Smarter than the average bear
twoodcc is offline   0 Reply With Quote
Old Jan 10, 2009, 11:19 PM   #4
costabunny
macrumors Demi-Goddess
 
costabunny's Avatar
 
Join Date: May 2008
Location: Cancer Free Zone ~ UK
You could try installing the rEFIt bootloader for Mac - that will pickup pretty much anything and boot from it (Its how I tripple boot my Mac Pro)

Just an idea.... (I havent tried it with USB Key baesed distros but Id suggest putting slax on it as a tester)
__________________
"When two tribes go to war; ONE is all that you can score!"
costabunny is offline   0 Reply With Quote
Old Jan 10, 2009, 11:47 PM   #5
Killthee
macrumors newbie
 
Join Date: Jan 2009
Quote:
Originally Posted by twoodcc View Post
interesting. thanks for that info! now, what about triple and quadruple booting? like leopard, xp, vista, and ubuntu? is this possible?
Don't get me started on triple booting, that was such a headache X_X Mostly because most of the information on it was so freaking scattered and inadequate.

It's possible, but everything has to be done in a certain order and on a certain partition. First of all you need to install rEFIt if you want to boot without chainloading. Secondly, the Windows & Linux installation have to be on the MBR partition table which means a max of three of any Windows OS or Linux Distro (in any combination) installations since the MBR partition table can only contain 4 entries and the EFI partition takes the first entry. Thirdly, AFAIK, the XP bootloader and the Vista bootloader don't get along so you have to install XP before Vista or something like (I haven't tried installing XP ) The only OS that doesn't give a damn where its located is OS X

The way my MBP is currently setup, I have the EFI partition first on my internal drive, followed by my Vista install, then a NTFS partition holding all my Music, then Ubuntu installed with GRUB on the same partition and with a entry to chainload Windows just in case something goes wrong, followed by OS X (which is inaccessible in Windows with Macdrive because it falls out of the MBR table), followed by my Linux swap. It's a freaking mess, but it all works

Quote:
Originally Posted by costabunny View Post
You could try installing the rEFIt bootloader for Mac - that will pickup pretty much anything and boot from it (Its how I tripple boot my Mac Pro)

Just an idea.... (I havent tried it with USB Key baesed distros but Id suggest putting slax on it as a tester)
It won't work. The EFI crashes when booting a USB drive directly, he needs to boot into another bootloader to boot the USB drive.
Killthee is offline   0 Reply With Quote
Old May 7, 2009, 02:07 PM   #6
dividido
macrumors newbie
 
Join Date: May 2009
Smile

great info Killthee...I also want to run backtrack off usb on my macbook. Could you elaborate on your grub setup.

Are you using grub or grub2?
How did you compile it? - 32 or 64?
How did you configure your grub.conf to boot off the usb stick for backtrack?

I'm running into some problems doing it myself and can't seem to find the info I need to get it working.

Thanks in advance!
dividido is offline   0 Reply With Quote
Old May 7, 2009, 04:32 PM   #7
Daveoc64
macrumors 68040
 
Join Date: Jan 2008
Location: Bristol, UK
I found that a reasonable triple boot solution is to use Wubi with Ubuntu.

You use Boot Camp to install Windows in the normal way, and then Wubi to install Ubuntu on a file in your Windows installation.

There are small performance losses doing it this way, but it's really easy to set up if you're ok with just using Ubuntu (or one of its variants).
__________________
iPhone 5 32GB Black (Three UK) | Nexus 7 | Kindle Keyboard 3G
White MacBook (Late 2007)
Windows 8 | iCloud, Dropbox, Spotify Premium
Daveoc64 is offline   0 Reply With Quote
Old May 7, 2009, 04:34 PM   #8
dividido
macrumors newbie
 
Join Date: May 2009
thanks for your reply, but what I really wanted was how he was able to setup the mac to boot a portable linux distro installed on a usb stick.
dividido is offline   0 Reply With Quote
Old May 8, 2009, 06:47 AM   #9
Daveoc64
macrumors 68040
 
Join Date: Jan 2008
Location: Bristol, UK
Quote:
Originally Posted by dividido View Post
thanks for your reply, but what I really wanted was how he was able to setup the mac to boot a portable linux distro installed on a usb stick.
I forgot to mention, that I tried the Wubi method with a USB stick and it didn't work.

I was a little surprised really because I thought it would given that the EFI had handed control to the bootloader in Windows.
__________________
iPhone 5 32GB Black (Three UK) | Nexus 7 | Kindle Keyboard 3G
White MacBook (Late 2007)
Windows 8 | iCloud, Dropbox, Spotify Premium
Daveoc64 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Windows, Linux & others on the Mac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
windows games on linux on a mac jmufellow Mac and PC Games 2 Jun 3, 2008 11:51 PM
The promise of Linux on a Mac G5 MacBytes MacBytes.com News Discussion 1 Aug 4, 2004 11:32 AM
Linux on my Mac? What for? MacAztec General Mac Discussion 44 Dec 10, 2003 02:57 PM


All times are GMT -5. The time now is 03:52 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC