pity-riotous
pity-riotous
pity-riotous
pity-riotous
hyenas
hyenas
hyenas
hyenas
Linux on your Apple Mac | iLinux • View topic - How to create an Ubuntu live USB for both Mac and PC

How to create an Ubuntu live USB for both Mac and PC

How to create an Ubuntu live USB for both Mac and PC

Postby linuxopjemac » Wed Mar 31, 2010 9:14 am

This is an updated version of my tutorial.

First things first, you will need:

* 1GB or larger flash drive
* rEFIt (Link at the bottom)
* A linux installation, virtual machine, or live cd
* A Mac OS X installation/installation disk
* Administrator permissions
* gparted (comes on most linux live cd's)
* hfsplus/hfsprogs for hfs+ support in linux


Alright

Step one (in linux):

1. Format your USB key with an MBR partiton table.
2. Add an 8MB ext3 partition named "GRUB" for simplicity.
3. Add a 16MB hfs+ partiton.
4. Use the rest of your disk as FAT32.


Step two (also in linux):

1. Mount your ext3 GRUB partiton
2. Open terminal and do "sudo grub-install --root-directory=<mountpoint> /dev/myusb", of couse replacing <mountpoint> with the mount point and myusb with the correct sdX.
3. If you get an error saying that there is no bios boot partition (which you shouldn't), open gparted and select the grub partition and select the flag "bios_grub".
4. Close GParted if it is open and reopen it.
5. Set the boot flag on the GRUB partition.
6. Copy all of the contents of your live cd iso or cd (including the hidden folder ".disk") to your fat partiton.
7. Skip the following steps in the step two if you don't want persistence
8. In terminal create a zero'd out file called casper-rw in the fat partiton with "dd if=/dev/zero of=/media/LIVE/casper-rw". Replace the /media/LIVE with the mountpoint again.
9. Now type "mkfs.ext4 /path/to/casper-rw" and follow the instructions if there are any


Step three (in mac):

1. Open the rEFIt dmg and copy the "efi" folder to the hfs+ partiton.
2. Locate the file called "enable.sh" in the efi folder
3. Open a terminal and type "sudo " and then the path to the enable.sh. (You can find it by dragging the file into the terminal)


Step four:

1. Reboot your computer holding the option key
2. Select rEFIt on your USB drive (If it doesn't appear take it out and plug it back in or boot all the way up and then reboot again)
3. Select "Linux on HD" that has a picture of a flash drive on it.
4. You will now be at the GRUB prompt, so type the following:

Code: Select all
root (hd0,3)
linux /casper/vmlinuz boot=casper persistent
initrd /casper/initrd.lz
boot


Of course take out the persistent part if you didn't use the persistence file.


LINKS
rEFIt: http://refit.sourceforge.net/
Ubuntu live cd: http://www.ubuntu.com/desktop/get-ubuntu/download

Original here, thanks to Neds Moar Salt
linuxopjemac
Site Admin
 
Posts: 541
Joined: Tue Feb 02, 2010 8:48 am

Re: How to create an Ubuntu live USB for both Mac and PC

Postby linuxopjemac » Sun Mar 27, 2011 3:07 pm

another one:
http://mac.linux.be/content/bootable-usb-disk-mac-and-pc

and another one:
http://mac.linux.be/content/bootable-usb-disk-mac-and-pc-2
linuxopjemac
Site Admin
 
Posts: 541
Joined: Tue Feb 02, 2010 8:48 am

Re: How to create an Ubuntu live USB for both Mac and PC

Postby linuxopjemac » Sun Jan 01, 2012 10:23 am

Also interesting:

this should do it : http://www.plop.at/en/bootmanagerdl.html

unzip > burn the iso inside the folder into a cd > plug the live-usb-disk and insert the boot-cd into the computer > when you start up the computer from the disk it will bring you a menu to choose wich device to boot from (usb/hdd/cdrom/etc)>select usb

hope this works for the mac too, since i don't have one I cannot not test it but I did test it on pc that don't boot from usb and it works fine.
Edit - this has been reported to work.
linuxopjemac
Site Admin
 
Posts: 541
Joined: Tue Feb 02, 2010 8:48 am


Return to Installation

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

pity-riotous
pity-riotous
pity-riotous
pity-riotous
hyenas
hyenas
hyenas
hyenas