Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Triple Booting an Intel Mac the Right Way

Posted by timothy on Fri Oct 31, 2008 11:00 AM
from the use-three-boots dept.
Miah Clayton writes "In the past, installing Mac OS X, Linux, and Windows on an Intel mac meant that you were forced into only having 3 usable partition slots due to the MBR/GPT hybrid limitations. Steven Noonan figured out a way to avoid dealing with the MBR partition limit and have a Linux install that isn't performance-crippled by having a swap file instead of a swap partition."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by Foolhardy (664051) <csmith32&gmail,com> on Friday October 31 2008, @11:03AM (#25584661)
    I was under the impression that modern Linux kernels had negligible performance impact from using a swap file as opposed to a dedicated swap partition.

    Personally, I much prefer using a swap file because it gives me more flexibility in locating, resizing and moving swap.
    • Re: (Score:3, Insightful)

      Quite true. Along that line, who uses physical partitions on a disk for linux installs anymore? Make yourself one physical linux partition, and use LVM to get all the volumes you need. You can even make yourself a swap partition under LVM if you want.

      • Maybe it's technically possible to do this without a /boot partition, but /boot makes it a LOT easier. I'm not even sure if it's possible without a small /boot partition

    • by Sockatume (732728) on Friday October 31 2008, @12:02PM (#25585679) Homepage
      To elaborate on that, the advantage of putting the swap on a seperate disk is that your main HDD can be dealing with real apps and data while the secondary swap disk is working away paging things into and out of RAM, giving a performance boost. Using a swap partition on the same drive as the OS makes absolutely no sense.
      • by Ant P. (974313) on Friday October 31 2008, @04:27PM (#25589399) Homepage

        I don't have a separate drive to spare on my laptop for swap space, luckily I found a workaround for that by putting the swap on a ramdisk

        • Sure, it shouldn't be an issue for the vast majority of users in practice. I certainly don't keep myself up at night thinking about how I can fit a seperate swap device in my laptop - like most users I have enough RAM that I don't have to page out running apps all the time or anything like that. It's just that if you are going to move your swap somewhere, it should be to another physical device.
    • Re: (Score:3, Insightful)

      With 4GB of RAM...My box could hardly use Swap. Or put it in another way, when it does use the swap space, it's slow like hell!

      The 'free' command tell me that most of my ram goes to caching, but I very seldom encounter the case that I need more than 4G.

      When the time comes that I need more than 4G, I would just go out to buy more ram! Paging to the harddisk is far too slow...

    • With current memory prices, what is the point of bothering with swap on a laptop?

      It seems like the whole issue becomes moot when the extra memory costs less than a license for one of the OSes that's contributing to the problem.

      • With current memory prices, what is the point of bothering with swap on a laptop?

        For one thing, a motherboard might not be able to take large enough RAM modules to make Windows Vista work efficiently. If each of two slots can take up to a 512 MiB module, you aren't going to get the 2 GB you need for Vista. For another, you need a swap file to back up RAM should your laptop's battery run out while it is on standby.

    • by Taxman415a (863020) on Friday October 31 2008, @01:16PM (#25586979) Homepage Journal

      Indeed it's been a long time since that wasn't the case. Since the 2.6 Kernel came out basically. Here's the lkml thread on it. http://lkml.org/lkml/2005/6/29/11 [lkml.org] and http://lkml.org/lkml/2005/7/7/326 [lkml.org] are the two posts. The latter is more informative, the former is definitive and clearly shows Andrew Morton is the one saying that part too. This is from 2005 folks. Someone notify the submitter. That is of course unless you don't trust Andrew Morton to know what he is talking about. And just because this comes up every once in a while, googling for linux swap file performance finds that post easily.

    • Mod parent up even more :D

      The performance difference between a dedicated swap partition and a swap file (as created by dd or something) is absolutely negligible - within the fractions of a percentage point.

      You may actually see slightly better performance because, when dealing with disk accesses on your / partition, the disk has less of the platter to seek to in order to actually write or read blocks back than sweeping potentially right across the disk to another partition.

      Since the block cache gets used for

  • GPT partitions (Score:5, Informative)

    by c_g_hills (110430) <chaz@cCOUGARhaz6.com minus cat> on Friday October 31 2008, @11:15AM (#25584817) Homepage Journal

    Since Windows even now only recognizes the Master Boot Record (MBR) format

    This is untrue. 64bit versions of Windows support GPT, as do versions newer than Vista.

    Also, I don't have a problem using a swapfile. I see no performance difference at all.

      • Re: (Score:2, Funny)

        by Anonymous Coward

        Windows Server 2008 most likely.

        Vista is old :)
        Server 2003 is in midlife crisis
        XP is ancient
        2000 is lore of years past...

        or something along those lines...

  • What is the point? (Score:3, Insightful)

    by CannonballHead (842625) on Friday October 31 2008, @11:26AM (#25584997)

    As much as this will sound like a trolling post, it's not... what is the point of buying a Mac and then triple booting OS X, Windows, and Linux? It seems to be that Linux and OS X are redundant, not to mention that most things you can run on OS X can be run on Windows as well... why buy the Apple hardware?

    The only reason I can think of is the image of the Mac, honestly. If there were major redeeming qualities of OS X (especially as compared to Linux?), I could understand that as well, but I am not aware of them (granted, I don't use Macs much, but if you're going to install a Unix based OS, Linux, in addition to a Unix based OS, Mac OS... hm!).

    Or am I missing something - i.e., Apple hardware actually is that much better to warrant a higher price tag? Back when they were using RISC based processors, I would readily believe that there might be a difference... but now that even the CPU architecture is the same (Intel...) ... ?

    • by Alinraz (533041) on Friday October 31 2008, @12:04PM (#25585703)

      I agree with your: "what is the point of buying a Mac and then triple booting OS X, Windows, and Linux?" But for totally different reasons.

      I ask: why would you bother with even a double boot, let alone a triple boot? There is nothing you can't do with a Mac, in OSX alone, that you can do with any other OS.

      First, hardware: Apple hardware is clean, reliable, with features that are difficult to find in combination on other systems. Apple hardware works; and when it doesn't they fix it. You don't have to keep fussing with it like you do if you build a machine from scratch. And its price is comparable to similarly equipped PC equipment (there was a recent post here on /. about that specifically). Yes, you can buy a PC for less... but that misses the point doesn't it?

      As for the OS: OSX is like running Linux in many ways. It is solid, never breaks, it performs well, doesn't have virus and worm issues: basically everything that Windows isn't.

      It is based on BSD, and has gcc and other open source tools. It has ssh, bash, tcsh, and X. You can build and run nearly any open-source application or tool.

      What OSX is missing from Linux: fiddlyness. While running a Linux distribution feels good, at the same time it's a fair amount of work. Need to get a new piece of hardware working: compile a new kernel module, add that, and muck with configuration files in /etc. And if you're unlucky, possibly have to muck with device nodes in /dev or monkey around with udev configurations. And that's just one example. Every time you want to add or change something it's rinse and repeat time. Oh and forget Linux on laptops... it's famous for having spotty laptop hardware support.

      But really the question is "why multi-boot"? With VMWare Fusion on the Mac, I really don't know. Just run Windows applications side-by-side with your Mac ones in OSX. Run an entire Linux development server in a virtual box. When you need to compare configurations, clone the sucker and try out a different one. When your Windows VM starts to get a polluted registry, slows down and starts to eat itself, delete and reinstall it...while compiling the Linux kernel in a Linux VM, while writing a software certification test proposal in OpenOffice running directly in OSX. No lost productivity simply because you have to reinstall Windows.

      The real question here is not "Mac vs Linux vs Windows?", it's "why are you still multi-booting?"

      • by lupis42 (1048492) on Friday October 31 2008, @12:49PM (#25586571)
        From gblackwo (1087063):

        There are arguably different pros and cons to all three operating systems

        You say there is no need to multi-boot because OSX does everything perfectly. I submit that OSX does nothing perfectly, but everything well, which makes it useless to me. I have many devices, each for one thing, and OSX doesn't do any of those things better than the alternatives. Why use it?
        Ubuntu Netbook remix is much nicer on the ultra-portable than OSX or Windows, 64 bit Windows is required on the gaming machine, and Linux+XBMC does for the mediaboxen quite well. Macs were never an option there, because the one piece of hardware that has component and TOSLINK out in a small form-factor with no adapters or messy cables, the Apple TV, has no DVD drive and does not allow me to easily put stuff on it (where stuff includes zsnes & and a controller, a DVD drive, and support for all of the stuff I have that's not in a format Apple accepts).

        I wasn't intending to attack OSX here, just to attack the evangelism in the parent suggestion that we should all use X because it does what he needs, and we obviously need the same things. Everyone wants different things from their computers, and there is no single solution that will ever satisfy them all.

        • Ubuntu Netbook remix is much nicer on the ultra-portable than OSX or Windows, 64 bit Windows is required on the gaming machine, and Linux+XBMC does for the mediaboxen quite well.

          You make a good argument for booting into different operating systems on different hardware, depending on usage requirments. What it doesn't address is why anybody would want to boot into different operating systems on the SAME hardware. If the hardware is "good for many things, perfect for none", why not use a single OS that matc

          • The reason not to use a single os for multipurpose hardware (or to use one) is all about good "enough". A nice 17" mobile workstation with a gaming graphics card is an excellent example: if the os is good enough for gaming, you can game on it. If the os creates a good enough environment to do video editing, or image composition, you can do that. If the os has good enough power management, it can be a portable, for use on the train. The thing is, to use only one OS for all of those tasks, that OS has to
            • while I agree completely,one should use the OS for the main tasks required. Giving windows plenty of uses. As well as Linux and OS X. However what feature of OS X makes it unusable for you? Or is it simply you don't like their limited hardware options? A valid reason by itself.

              • For gaming, there's no question that OSX doesn't work. I like Supreme Commander, Team Fortress 2, Portal, C&C (pretty much the whole series), and most of them just don't work on anything but Windows.
                For the mediaboxen, aside from the fact that they are all commodity hardware and thus cannot run OSX, I really like Amarok. The netbook, obviously, isn't even the right processor architecture, (Atom, not Core 2), and my wife really prefers Ubuntu to OSX or Windows anyway. As for the servers, the fileserver
                • atom is still x86 compatible. RAID,samba, mediawiki, and MYsql all run on OSX but if your family prefers ubuntu, and windows for gaming then that is enough.

        • Everyone wants different things from their computers, and there is no single solution that will ever satisfy them all.

          I really wish people would get this through their heads, and we could stop all of these "[your OS of choice] sucks! [my OS of choice] is awesome!" arguments. I'm typing this in OSX with a dual-boot Linux/Windows desktop next to me, both of which are used to administer both Linux and Windows servers. In each case, the operating system was chosen specifically because it was the best OS to do the tasks that machine was being set up to perform.

          So each has some strengths and weaknesses, and beyond that it fal

        • Re: (Score:2, Interesting)

          Assuming you were actually replying to me (not exactly clear based on your quote and what you said), I'd like to answer you.

          First off, I'm not evangelizing anything. I was merely answering the parent poster when he asked about the benefits to purchasing a Mac over a PC. I was describing why it works best for me; I recognize that other people might want/need other things.

          I've just always thought it ironic that I'm so much more productive developing Linux software on OSX than when I used Linux as my primary

          • I was half replying to you, and half making my own point. Sorry for the confusion.

            As for the multi-booting thing, though (and I think I've answered this elsewhere), multi-booting is what happens when you have multi-purpose hardware and there is no single OS that serves all of those purposes. That is essentially the logic behind all of the laptops with a flash based linux that can be booted into to do email and whatnot without booting up the full system, a second os for when the requirements are speed a
        • You say there is no need to multi-boot because OSX does everything perfectly. I submit that OSX does nothing perfectly, but everything well, which makes it useless to me.

          Y.. you're one tough customer to please!

      • While running a Linux distribution feels good, at the same time it's a fair amount of work.

        When was the last time you installed and used Linux seriously? Really, you're describing the situation as it was a couple of years ago.

        • For "using Linux seriously": Um, well... about 5 minutes ago. I've got a current release of Fedora running in a VM that I installed a few weeks ago.

          I use it every day. I write both kernel-level and application level software for it every day. Yet I find I need to spend lots more time configuring and maintaining Linux than I do OSX. That's me. YMMV.

          • I've got a current release of Fedora running in a VM that I installed a few weeks ago.

            To borrow a phrase, "Well, there's your problem!"

            Semi-seriously. In my experience, Fedora is fidgety. Red Hat products are fairly fidgety in general, but I set up CentOS on the household server and treat it like a server: it needs routine care and feeding. It needs cursory log inspection. It needs basic maintenance. I don't multi-boot it. I don't reboot it at all. It ticks over, warm and happy, serving files and email an

      • There is nothing you can't do with a Mac, in OSX alone, that you can do with any other OS.

        If you play a wide variety of proprietary games on a computer, you need either Windows or some sort of Wine hackery. How far has Darwine come? Or do you fall back on picking another title in the same genre? Or if you develop software for clients who use an operating system other than Mac OS X, you need to be able to test that software on the operating system that they use.

        But really the question is "why multi-boot"? With VMWare Fusion on the Mac, I really don't know. Just run Windows applications side-by-side with your Mac ones in OSX. Run an entire Linux development server in a virtual box.

        In order to keep a Windows and Linux session open at the same time as Mac OS X, I'd need to multiply the RAM by 3. How much RAM can one p

        • I have 4 Gb RAM in my MacBook. Ububtu runs just fine under VMWare Fusion, as does XP. I don't usually run two VM's at the same time, but I've tried it with four running, and the machine was usable.
      • I wasn't trying to go for Mac vs. Windows necessarily, at least not from an OS perspective.

        As for fussing with hardware, I have built many PC's over the last few years and rarely have to "fuss" with it. I don't know where this presumed hardware failure all the time comes, but I have not had that experience really since I stopped buying generic RAM about 10 years ago.

        OS X never breaking - I have worked with Macs, in very limited capacities. However, in that limited capacity, I've actually seen quite a

    • It's the software, of course. If there's a single OS that runs all the software you need, you'll probably stick with it. Otherwise you might need two or three. Maybe you can get by with Wine, Crossover, and virtual machines... maybe you can't.

      The list of things that are Windows only is huge -- lots of business apps and games, Visual Studio, Netflix watch-it-now... If your job/lifestyle don't require any of them, good for you, but otherwise you've gotta have Windows.

      There's a lot of great software in the

    • Seriously? You can't think of any advantages? Then I guess I'd suggest that OS X isn't for you.

      But if you want my opinion, and what else is the point of the internet, then when comparing OS X vs Linux the only thing I can say is that for modern desktop computing OS X does just about everything better than linux. It is simply more polished and easier to use. The apps are more mature and usually easier to use. Plus you get some really first rate commercial apps. Finally since it is *nix you can run whatever O

      • But if you want my opinion, and what else is the point of the internet

        Is the internet no longer for porn?

    • by HTH NE1 (675604) on Friday October 31 2008, @12:35PM (#25586301)

      As much as this will sound like a trolling post, it's not... what is the point of buying a Mac and then triple booting OS X, Windows, and Linux?

      We choose to triple-boot a Mac in this decade and hack the other things, not because it is practical, but because it is fun.

    • For a developer who needs to test their cross platform 3D application on Windows, OS X and Linux then triple booting a Mac means that they have a single machine that is legal and supported by Apple, Microsoft and Canonical - and all in one attractive package.

      But I would imagine that for any computer geek who wants choice (play current PC titles, try out Intrepid Ibex, have their everyday computing platform be reliable and almost maintenance free), a triple booting Mac is a thing of desire.

    • Re: (Score:3, Insightful)

      The iMac really is a beautiful piece of hardware, leaving OS aside. I have an "old" white one (dual core intel, just with the older white case before the all-aluminium ones came out) and I love the damn thing.

      I can carry it around easily when I need to go somewhere (it packs up neatly even for transatlantic flights) and if I want to move it between home and a friend's house it takes about 2 minutes to unplug it and the KB/mouse and pack it back into the box it came in, which has a big carry handle on the to

    • I used to think the same until I got a Mac. I love the Terminal App, and I use the exact same software I use on Linux-- GNU Screen, Vim, Unison, TeXlive, GCC, Git, virtual desktops (spaces) etc... I just don't see the difference, really. AND, with the Mac laptop I get 5+ hours of battery life and a slim case for $1000.

      I don't dual boot because it seems nowadays everyone is compiling free software for Intel Macs (and I don't use Fink anymore). All my desktops are Linux, but I do like how Itunes handles
      • There are arguably different pros and cons to all three operating systems, so why not have all three if you have the space? This is slashdot, the question is not why, but why not.

        I was about to talk about my opinion of the various OSs and hardwares, but your point is more succinct and helpful.

        • That's not strictly true. While the hardware configurations are far fewer than on a traditional PC, Apple still uses a wide variety of components and manufacturers for their various machines. They have both ATI and Nvidia GPUs for example, and optical drives from several different manufacturers, and sound cards, firewire boards, USB hubs etc from different people that are used in different machines.

          Yes, it's a lot easier than Windows having to accommodate any of 5 billion different sound cards, but it's not

      • Re: (Score:2, Insightful)

        Why Macs? Well, if you need a lot of power (I do a lot of PhotoShop) you can't get a Windows machine with 8 cores cheaper than you can get a Mac Pro - sorry. It's cheaper to buy the Mac Pro and put Windows on it (even with the cost of that license) than it is to buy an 8-core Windows machine. Go figure!

        If only there was some use for all those cores...

        Scroll down for graphs of Power Macintosh G5 routinely outperforming Mac Pro in Photoshop:
        http://arstechnica.com/reviews/hardware/macpro.ars/7 [arstechnica.com]

        Read the text to

        • by Chrononium (925164) on Friday October 31 2008, @12:29PM (#25586181)

          Sadly, since we are dealing with the world of computing, things do change, especially for the Mac in the times since those articles were written. The ARS report was benchmarking an emulated version of Photoshop (that's what "Rosetta" does). Fast forward to today, we already have Photoshop CS3 (Mac Pro's do beat the G5's) and there's also CS4. According to one benchmarking source, Photoshop CS3 did do slightly better with the 8 core Mac Pro versus the 4 core (although I would agree that the difference is so small that it could be within measurement error).

          • Well.. thanks for mentioning CS4.
            Otherwise, I had no direct link to the post above and actual pointlessness of so many cores.

            And while it may seem as heresy to the proud owners of multiprocessor work stations - Photoshop was never really about processing power.
            Or graphic cards (completely worthless investment up until CS4).

            Photoshop was, is and probably always will be primarily about memory.
            While processing power is great to have in excess the key component of any Photoshop station is memory.
            That is why eve

  • Here is why. (Score:4, Interesting)

    by Miah Clayton (1397863) on Friday October 31 2008, @12:21PM (#25586021)
    I am not an enthusiast of anything. I like my Mac for a few reasons, but the purpose for triple booting is a sole one: I am a developer. I need the ability to cross develop. And I need to do it on the run, since I am very seldom in a fixed position for more than a few hours. Therefore, I need to use a laptop for most development. This is not an ideal situation, ever. Laptops notoriously have smaller HD sizes, more RAM restrictions, slower processors, and, typically, integrated graphics. With these limits, using VMWare Fusion (which I own and still use for certain things) carries an unacceptable overhead. It also occasionally interprets OpenGL and DirectX improperly, which is not an acceptable scenario as a game developer. The ability to genuinely triple boot allows me to remove the RAM and CPU overhead caused by booting as a guess operating system. It has nothing to do with "Macs are awesome" and everything to do with "I can cross develop every major platform on one machine, and one I can be on the move with"
  • If you're going to triple boot...why not do it on a Dell? That's what I do. I think I have booted into Vista and OSX twice each.
    • In my case, I rather enjoy keeping my nose clean. You can't have Mac OS X on a Dell without breaking the TOU, and most likely not without warezing it.
    • My MacBook Pro came with BootCamp and OS X and Windows installed. I booted into Windows once. Something is just wrong with seeing the windows desktop framed in an apple laptop bezel cover. I reminded myself why I got a Mac in the first place, rebooted, and eventually nixed the Windows install, no pun intended.

  • I provide software and hardware support for a college campus that has a range of operating systems and application packages. I'm running a Mac that I managed to get to boot in OS 10.4, OS 10.5, Win XP and Vista.

    It took a bit of finagling to get the quad boot setup to work because the copy of Vista I had didn't want to install after 10.4, 10.5 and XP were in place. I eventually had to pull the drives for 10.4 and XP to get it to work.

    It wasn't the most elegant solution but it worked.