iMac nuovo - partizionare HD per installare Linux

Mac OS X e le sue Applicazioni

Moderatore: ModiMaccanici

Avatar utente
Hammarby
Stato: Non connesso
Unix Expert
Unix Expert
Avatar utente
Iscritto il: gio, 29 ott 2009 14:28
Messaggi: 5590
Località: Stockholm, SE

Top

Ciao,
ho appena ricevuto il mio nuovo iMac i5, e vorrei partizionare l'HD per montare Linux su una partizioncina.
Esiste una guida, o qualcuno che lo ha fatto?

Grazie,
Claudio.
Ognuno è come Dio lo ha fatto, ahimé...
...e spesso peggio.

Cervantes

Avatar utente
fragrua
Stato: Non connesso
Admin of my life
Admin of my life
Avatar utente
Iscritto il: sab, 08 ott 2005 07:00
Messaggi: 63321
Località: [k]ragnano

Top

Contatta:
Auguri! La partizioncina creala con Boot Camp e poi ci schiaffi Linux, credo. Ma attento alla tua principale.
Auguri per il Mac.
;)
La prima cosa su cui devi investire è il benessere del tuo corpo, l'unica cosa che ti porterai nella tomba.
Franz Grua (sarebbe fragrua)

In un mondo perfetto io sarei un essere inutile.
©2015 albertocchio

—> Uso corretto del Forum: https://goo.gl/9xOO0a

Immagine

Avatar utente
Hammarby
Stato: Non connesso
Unix Expert
Unix Expert
Avatar utente
Iscritto il: gio, 29 ott 2009 14:28
Messaggi: 5590
Località: Stockholm, SE

Top

fragrua ha scritto:Auguri! La partizioncina creala con Boot Camp e poi ci schiaffi Linux, credo. Ma attento alla tua principale.
Auguri per il Mac.
;)
Denghiu!

Mi avanza adesso un iMac G5 primissima serie 1.6GHz 1.5GRAM 80GHD
Chi lo vuole?
Ognuno è come Dio lo ha fatto, ahimé...
...e spesso peggio.

Cervantes

Avatar utente
ndin
Stato: Non connesso
Expert Latitante
Expert Latitante
Avatar utente
Iscritto il: mer, 02 giu 2010 10:11
Messaggi: 1963
Località: Konoha

Top

How much?
Per la partizione, io sto ancora smadonnando con EFI e grub, perché sul macbook in firma, dopo alcuni giorni mi si impalla la mappa delle partizioni. Dimenticavo, su quella macchina avevo messo prima SL, poi BootCamp epr la partizione, poi installato una Debian, poi eliminato la partizione mac con g parted. Con un puro dual-boot, invece, no problem.
Se hai idea di come mettere grub al posto di EFI direttamente al boot (rEfit non funziona sempre), ti ringrazio.
La vita di uno shinobi non viene misurata in base a come ha vissuto, ma in base a ciò che ha fatto prima della morte.

Avatar utente
fabio cf
Stato: Non connesso
Pietra Miliare Maccanica
Pietra Miliare Maccanica
Avatar utente
Iscritto il: lun, 07 dic 2009 07:02
Messaggi: 1277
Località: Ardea Rm

Top

Contatta:
Mi piace il tuo nuovo avatar!! [quote="ndin"][/quote]
La crisi è finita ora se hai fame è PSICOSOMATICA!
http://www.flickr.com/photos/obelix_1962/" onclick="window.open(this.href);return false;

Avatar utente
ndin
Stato: Non connesso
Expert Latitante
Expert Latitante
Avatar utente
Iscritto il: mer, 02 giu 2010 10:11
Messaggi: 1963
Località: Konoha

Top

Danke! Scaricato da internet...ma molto significativo.
La vita di uno shinobi non viene misurata in base a come ha vissuto, ma in base a ciò che ha fatto prima della morte.

Avatar utente
pierecall
Stato: Non connesso
Expert Latitante
Expert Latitante
Avatar utente
Iscritto il: sab, 17 feb 2007 17:47
Messaggi: 2434
Località: Napoli

Top

Contatta:
attenzione che sembra bootcamp 4 non gradisca alcuna distro linux,quindi andare cauti nel merito :wink:
 Imac 24 2.4 Ghz-3 Giga Ram-Hd 1 Terabyte- debian Stretch 9 con repository kx studio 14.04.5 ( desktop xfce,mate,lxde,lqxt,kde)
Notebook Asus X54C-SX287D Intel Core i3-2350M, RAM 6 Gb, HD 320 Gb, , Intel Graphics HD 3000, Debian Stratch 9.2 lts - 64 bit

Avatar utente
ndin
Stato: Non connesso
Expert Latitante
Expert Latitante
Avatar utente
Iscritto il: mer, 02 giu 2010 10:11
Messaggi: 1963
Località: Konoha

Top

Grazie Gennaro. Sarà per questo che ogni tanto mi si impalla. Per aiutare Hammarby ho installato Mint partendo da Snow leopard ed usando BootCamp. Tutto liscio, ma crea una marea di partizioni. Per ora lo lascio così. Magari formatto solo la partizione BootCamp, che per Linux non è utile, o mi sbaglio?
Se si impalla di nuovo, uso l'utility di partizione di Linux, e faccio il dual boot senza bootcamp, ma con Refit.
La vita di uno shinobi non viene misurata in base a come ha vissuto, ma in base a ciò che ha fatto prima della morte.

Avatar utente
pierecall
Stato: Non connesso
Expert Latitante
Expert Latitante
Avatar utente
Iscritto il: sab, 17 feb 2007 17:47
Messaggi: 2434
Località: Napoli

Top

Contatta:
ndin ha scritto:Grazie Gennaro. Sarà per questo che ogni tanto mi si impalla. Per aiutare Hammarby ho installato Mint partendo da Snow leopard ed usando BootCamp. Tutto liscio, ma crea una marea di partizioni. Per ora lo lascio così. Magari formatto solo la partizione BootCamp, che per Linux non è utile, o mi sbaglio?
Se si impalla di nuovo, uso l'utility di partizione di Linux, e faccio il dual boot senza bootcamp, ma con Refit.
Ad essere sincero l'unico rischio ( per modo di dire) cui mi sono prestato solo per la ufficialità e consapevolezza di non creare danni al mio hw è stato quello di installare nella nuova partizione di bootcamp 4 con la nuova versione di mac osx lion 10.7 una versione originale di windows 7 nella fattispecie la home edition.In questo modo non ho avuto alcun problema e riguardo la curiosità di provare distro linux sia sulla partizione mac che prossimamente su quella bootcamp windows userò sempre un virtualizzatore per provare linux,cosi non mi creo alcun problema :wink: ciao
 Imac 24 2.4 Ghz-3 Giga Ram-Hd 1 Terabyte- debian Stretch 9 con repository kx studio 14.04.5 ( desktop xfce,mate,lxde,lqxt,kde)
Notebook Asus X54C-SX287D Intel Core i3-2350M, RAM 6 Gb, HD 320 Gb, , Intel Graphics HD 3000, Debian Stratch 9.2 lts - 64 bit

Avatar utente
Hammarby
Stato: Non connesso
Unix Expert
Unix Expert
Avatar utente
Iscritto il: gio, 29 ott 2009 14:28
Messaggi: 5590
Località: Stockholm, SE

Top

Ho trovato queste istruzioni, possono essere utili a qualcuno?

(sorgente http://www.montanalinux.org/mac-triple-boot.html)

HOWTO: Linux on the Intel iMac - Triple booting
Submitted by Scott Dowdle on Thu, 2009-07-30 10:02. Fedora | Howto | Mac

Introduction - Why Macs?

I work as a System Administrator for a Computer Science Department and as a result I manage both server machines and lab machines. Some time ago the department decided (and I was in agreement) that it would be a good idea to offer the students additional variety in the computer lab by replacing some of the "Pee Cee" machines in the main undergrad lab with some Apple Macintosh systems. This would give students access to Mac OS X (pronounced "ten") in the lab in addition to Linux and Microsoft Windows.

Although Apple switched to Intel-based machines a few years ago, you can't just run their OS on any Intel/AMD machine as they have both licensing reasons and technical reasons why their OS should ONLY run on Apple hardware. They don't seem to be friendly to running Mac OS X inside of Virtualization either. Mr. Jobs, why do you hate us? I digress.

The first three years we had Macs in the lab they only ran Mac OS X and as time passed, fewer and fewer people used them. The usage slowdown was caused by a number of reasons that I'll not go into here. This year though, I decided not to give up on the Macs and to make them triple-boot... so if people don't want to use Mac OS X they don't have to, and the machines can get better utilization.

Looking for black magic?

Apple realized some time ago that people might want to dual-boot their new machines so they created Boot Camp. Indeed, Boot Camp does make it easy to dual-boot and they even give you all of the drivers needed to make Windows support their hardware... but what about triple-booting? Maybe someday the Boot Camp developers will implement triple-booting but for now it only supports dual-boot.

While Intel Macs are very similar to traditional PC machines there are a number of differences that make it challenging to setup a triple-boot scenario. The first thing is that they use an EFI type BIOS. The second thing is that they use a GPT (GUID Partition Table) type partitioning scheme rather than MBR. While GPT isn't as common yet, GPT is the wave of the future mainly because hard drive sizes are constantly growing.

I searched and searched for a recipe for triple-booting but most of the info I found was either outdated or for PowerPC based Macs. I finally found a HOWTO written by a fellow CS sysadmin that was both fairly recent and complete... although after doing it over and over I found a few points to refine and decided to write this.

Hardware I used

I did this recipe on two models of Intel iMacs:

The 2006 Core Duo unit
The 2009 Core 2 Duo unit

Although I only installed on two models of iMac, these intructions should work on any Intel-based Macintosh.

Reviewing the steps

Repartitioning the hard drive to make room for additional OSes. This is complicated because of the GPT and the final solution has a hybrid GPT/MBR partitioning scheme.
Installing a bootloader that understands the strange partitioning scheme needed that can actually assist.
Installing the OSes and making them work well with the hardware.

Repartitioning the a hard drive

This is an easy step because Apple includes the tool you need. It is a command line tool named diskutil. To see how your hard drive is currently partitioned run the following command from the terminal.

diskutil list disk0

You should see three partitions: 0 = GUID_partition_scheme, 1 = EFI, and 2 = Apple_HFS Macintosh HD. Of course sizes will vary depending on what size hard drive you have. To repartition the hard drive you use the following form:

diskutil resizeVolume disk0s2 {#}G \
"MS-DOS FAT32" Linux {#}G \
"MS-DOS FAT32" Windows {#}G \
"MS-DOS FAT32" Swap {#}G

You'd replace {#} with the desired number of GBs you want the drive to be. In my case the iMacs I'm using have 320GB hard drives but some space is lost because of overhead. I settled on the following:

diskutil resizeVolume disk0s2 200G \
"MS-DOS FAT32" Linux 43G \
"MS-DOS FAT32" Windows 50G \
"MS-DOS FAT32" Swap 4G

Note that the last partition you make won't actually be what you told it to be as it will use whatever is left.

Why specifiy "MS-DOS FAT32" as the partition type? Well diskutil is nice but it only knows about a handful of filesystems and Linux and Linux swap aren't included. When we install Linux we'll edit the existing partitions and change them to ext3 and Linux swap. For the Windows install we'll also change the partition set asside for Windows to NTFS.

There is some debate on whether it is safe to issue the diskutil repartitioning command from a live system or not. Some recommend booting from the Mac OS X install media so that the disk/partitions you are working with aren't live. I haven't had any trouble doing it from a live system with the drive in use. Perhaps it is a matter of changes from Tiger to Leopard. I've only used Leopard based machines and haven't had any trouble as diskutil has been totally non-destructive with the commands I've used.

Your mileage may vary so if you have data you care about on your Mac, make sure to back it up completely before starting.

After issuing the diskutil command in the form mentioned above, it will verify the disk first and then repartition it. It usually only takes a few minutes.

Installing a bootloader

Download rEFIt and install it. rEFIt is a fantastic bootloader and I wish the bootloaders we have for Linux were as fancy. rEFIt is not only a bootloader but it is smart and looks at the partitions and automatically makes entries when it finds an OS. It also assists in partitioning because it helps construct and maintain the needed GPT/MBR hybrid partition table. After installing rEFIt make sure to run the /efi/refit/enable-always.sh script so that the rEFIt bootloader will always appear rather than requiring holding down a key on the keyboard during power up.

Now that the bootloader is installed properly, reboot.

Syncing the partition table

One of the rEFIt features and an option on the rEFIt menu is "Start the Partition Tool". Any time you change the partition table select "Start the Partition Tool" from the rEFIt menu. It will let you create and manage the needed hybrid GPT/MBR partition table. Since we recently repartitioned the hard drive with the diskutil command you want to "Start the Partition Tool". Once back at the rEFIt menu, select "Reboot". I don't know if rebooting is technically required after running "Start the Partition Tool" but it seems to avoid some minor issues so I recommend it.

Installing Linux

I'm a big Fedora user and I recommend it. The Fedora 11 LiveCD media require three Linux partitions -- an ext3 /boot partition, an ext4 / partition, and a swap partition. You will notice from the diskutil command line I used above that I only made two partitions for Linux (one for / and one for swap). As a result you CAN NOT use the Fedora LiveCD media. In my early testing I tried making three partitions for Linux but either I made a mistake or it simply won't work. As a result I settled for having two partitions. So, to install Fedora 11 you'll need to use the DVD install media although the minimalistic netinstall media might work, I haven't tried it.

Put the install media into the optical drive and reboot. You can either hold down the c key on the keyboard to tell it to boot from the optical drive, or you can select the icon for the install media that shows up on the rEFIt menu. Please note that rEFIt reads all of the drives/partitions before showing the menu and will not refresh if you put in a CD/DVD... so if you put the install media in at the rEFIt menu, you'll have to reboot for it to see the media. I wish that rEFIt had an option to rescan for optical media insertion as well as a feature to eject inserted media... but it doesn't.

I'm not going to cover all of the install steps but just know you want to pick custom disk setup, select the first MS-DOS partition, edit it to make it ext3 and mounted on / and make sure to select the format option. Edit the last partition and make it Linux swap and format it. Also when it comes to the grub install screen make sure that it installs the grub bootloader to /dev/sda3 rather than the MBR of the drive. The install should proceed normally. When done reboot.

Since we changed the partitions some during the Linux install, at the rEFIt menu select "Start the Partition Tool" again to sync the partition table. Then reboot. Linux should be functional now.

Installing Windows

I used a Windows XP Pro SP3 install CD. I recommend that you find install media that has Service Pack 3 already installed because during my testing I used SP2 media and had a problem with it. Windows will install fine but in order to have a fully functional and more secure Windows you have to install all of the updates... and before the network card will work you'll have to install the Boot Camp drivers (located on your Mac OS X install media). After installing the Boot Camp drivers I was unable to get Service Pack 3 to install. It always gave me an error about there not being enough disk space for the SP3 update even though there were tens of GBs of free disk space. While there may be a way around using SP2 media and getting the SP3 update to install, it just seems to go more smoothly if you use install media that already has SP3 installed. Supposedly Vista works fine (and probably Windows 7) but I haven't tried them.

Boot the Windows install media just like you did the Linux install media. Install Windows just like you normally would as I'm not going to cover the normal installation steps. The only difference is that you need to make sure you select the remaining MS-DOS partition as the target and format it as NTFS. I've always selected the NTFS Quick format option. If you want, I guess you could format it as FAT32 but I don't recommend that unless you have a good reason to do so.

Anyone who has installed Windows knows that it is a two stage/boot process. The first stage lets you pick the partition, format it, and then copies all of the data files it needs to the hard drive. Then you have to reboot to the second stage where it actually has a GUI interface and installs everything... and of course, asks you for the license key. When the machine reboots you'll get the rEFIt menu as usual. I find that it is a good idea to "Start the Partition Tool" and reboot even though it tells you nothing has changed. It seems to go better that way although maybe I'm just imagining it. I have had a few occasions where the second pass refused to boot on the first attempt and it ended up just sitting at a black screen. I just cycled the power and tried again and it worked.

After the second stage is done and it reboots, again from the rEFIt menu select "Start the Partition Tool" and reboot. Again, it may or may not be required but it seems to avoid little quirks.

After installing Windows the first thing you want to do is install the Boot Camp drivers so all of your hardware works properly... especially the NIC... so the next thing you can do is install the remaining Windows updates.

Conclusion

With both Linux and Windows installed and rEFIt bootloader letting you easily pick between Mac OS X, Linux and Windows, at boot time... the job is all done.

The instructions I give above I've used at least a half dozen times on a half dozen machines and it has always worked for me. As Mac hardware changes and updates to Mac OS X happen... and depending on what Linux distros or Windows versions you use... the recipe might need slight modifications for your tastes. Please feel free to provide feedback in the comments so we can keep this information as up-to-date as possible.

I would like to offer up a big "thank you" Ashley AT csse.uwa.edu.au for the original HOWTO that educated me enough on the process to do my first successful triple-boot install.
Ognuno è come Dio lo ha fatto, ahimé...
...e spesso peggio.

Cervantes

Avatar utente
pierecall
Stato: Non connesso
Expert Latitante
Expert Latitante
Avatar utente
Iscritto il: sab, 17 feb 2007 17:47
Messaggi: 2434
Località: Napoli

Top

Contatta:
Per il triplo boot ma fino a che vi era installato snow leopard 10.6 vi era una ottima guida anche con l'ausilio di filmati su youtube in italiano di un ragazzo dal nick testomatto ( cui fa capo anche il sito suo ufficiale e la pagina di youtube) Riguardo invece il dopo snow e quindi con lion 10.7 sembra che vi siano più problemi nel voler mettere nativamente distro linux in primo luogo perchè lion crea una partizione di recovery disk ( un po come hanno fatto anche alla microsoft per windows 7) e poi perchè come ho scritto nel post precedente sembra che non sia possibile sfruttare come prima la partizione bootcamp 4 per problemi sempre di riconoscimento.Quindi al limite segui questi tutorial video in italiano e leggi anche dal suo sito per confrontarti con gli altri utenti che hanno voluto provare il triplo boot.ripeto se non ti occorre per seri motivi non pasticciare e affidati ad un virtualizzatore cosi sei sicuro appena ti passa la curiosità di non aver creato danni al tuo system principale :wink:
 Imac 24 2.4 Ghz-3 Giga Ram-Hd 1 Terabyte- debian Stretch 9 con repository kx studio 14.04.5 ( desktop xfce,mate,lxde,lqxt,kde)
Notebook Asus X54C-SX287D Intel Core i3-2350M, RAM 6 Gb, HD 320 Gb, , Intel Graphics HD 3000, Debian Stratch 9.2 lts - 64 bit

Rispondi

Torna a “Software”

Chi c’è in linea

Visitano il forum: Google [Bot], Yandex [Bot] e 31 ospiti