Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a Macbook Pro 8,1 (early 2011 model). My goal is to have Ubuntu installed onto a USB stick what I can plug into any Macbook / iMac (also potentially any pc) and use Ubuntu anywhere.

Here is what I tried so far:

1.

I followed the official instructions to create a bootable usb stick with the ubuntu live image amd64 14-04. It worked perfectly for me, I was able to boot up from the USB stick by holding down the Option key while turning on the Macbook and selecting the EFI in the boot menu. However, it did not save any of the modifications I made. Since I need to install a package to make WIFI work, it is necessary to save the changes.

2.

After this I created a bootable USB stick with "Startup Disk Creator" on an existing Linux machine, selecting 1GB as a reserved extra space. This was also booted up perfectly (holding down the option key, as above), however I did not see the extra partition mounted anywhere, and indeed it lost all modifications when I restarted.

3.

After this I installed Ubuntu to an other USB stick from the live ubuntu booted from the first USB stick. The new Ubuntu installation works. Set noatime and installed the Wifi driver without issues. There is only one problem: when I start up the Macbook, it starts grub. If the USB stick is plugged in, the grub shows Ubuntu as a boot option. When the USB stick is not plugged in, then I only get a grub prompt where I can enter grub options to boot up the OS.

When I installed Ubuntu I'm sure I selected the usb stick as a target for grub, so I don't know why did it modify anything on the computer's build-in harddrive.

Luckily I can start OSX by holding down the Option key and select the built-in harddrive. But the USB stick does not appear in Mac's boot menu, so I can only start Ubuntu with grub, also cannot boot it up on other Macbooks.

Questions:

A) How can I make the second USB stick similar to the Live Ubuntu USB stick, so it appears in the Macbook's boot menu as an EFI drive?

B) How can I remove grub from the built-in disk, so I can boot up my Macbook normally?

share|improve this question
    
The answer to question A) is here: Why doesn't the Ubuntu ISO burned to a CD or copied to a USB work on my Mac?. –  karel Jul 5 at 8:18
    
Thanks. These answers are for writing an ISO image onto a USB stick. Am I right? That's already done, and I didn't have any problem with it. –  psmith Jul 5 at 11:49
    
Yes, those answers are for writing an ISO image onto a USB stick. Please edit your question and add the following two tags to it at the bottom: efi and grub-efi. This will mark your question for attention by experts who follow these two tags. –  karel Jul 5 at 12:03
    
"however I did not see the extra partition mounted anywhere"- If you create reserved space(usually called 'Persistence') with startup disk creator it wont show up as a separate partition or anything. Your settings will get stored in a file called casper-rw(since you selected 1GB that file will be 1GB). If you really want a separate Persistence partition then refer to this . –  Venki Jul 5 at 12:12
    
@karel thanks for the tip, I added the extra tags –  psmith Jul 5 at 12:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.