Linux Usb Boot For Mac

2021年7月12日
Download here: http://gg.gg/vdify
The Need
May 25, 2020 There are a few ways to create an Ubuntu (or other Linux) bootable USB drive for Mac. You can go the freeware route for an easy option, or put a little bit of time into creating the drive yourself using Terminal. Oct 14, 2020 Easily Install Boot and Run your favorite Portable Linux operating system, antivirus tools, and diagnostic utilities from a bootable usb key or flash drive. If you want to use your USB stick with an Apple Mac, you will need to restart or power-on the Mac with the USB stick inserted while the Option/alt (⌥) key is pressed. This will launch Apple’s ‘Startup Manager’ which shows bootable devices connected to the machine. UNetbootin downloads the Ubuntu ISO, converts it to an image format the Mac can use, creates the boot chain needed by the installer for the Mac OS, and then copies it to the USB flash drive. Download the macOS version of UNetbootin from the UNetbootin GitHub website. If you want to use your USB stick with an Apple Mac, you will need to restart or power-on the Mac with the USB stick inserted while the Option/alt (⌥) key is pressed. This will launch Apple’s ‘Startup Manager’ which shows bootable devices connected to the machine.
I was recently using multiple machines for work (Lab machines, friend’s laptop, etc) and I needed Linux. I own a 128GB MacBook Air I could’nt install Linux on it as storage was tiny. I did have a USB 3.0 flash drive which had speeds comparable to some(not-so-fast) harddrives. It struck me that if I install Linux on my flash drive it would make my life a hell lot easier. It was later that I realised it wasn’t so straight forward mainly because of EFI boot and Mac ‘quirks’. I did a lot of googling but could’nt find anything that worked. After reading multiple sources I deduced what was the problem. Since I got it figured out I decided to write this post so that other people can benefit from it.The problem
*Modern Macs boot using EFI and their bootloader expects boot partition to be HFS+ or APFS(High Sierra) not EXT4.
*Ubuntu installer is buggy and always installs bootloader in EFI partition of internal HDD despite being instructed to install it on EFI partition of flash drive.
*This makes the flash drive only bootable on the mac it was made onThe SolutionStep 1: Preparing live USB for installation
*
Download https://unetbootin.github.io/
*
Download your favourite Ubuntu flavor, Im using Ubuntu Mate
*
Burn the iso to a USB drive(not on your installation flash drive) using UNetbootin

Step 2: Boot using live installation drive
*
Plug both drives and press option+power button
*
Choose EFI boot option
*
Choose Try Ubuntu without Installing
​Step 3: Install Linux on target flash drive
*Once into the live session, open terminal and run ubuquity —no-bootloader , this will start installation wizard in a mode that wont install a bootloader (Dont worry we will take care of it later)Fig 1: Run installer with no-bootloader option Linux Usb Boot For Mac Os
*Keep going next untill an option comes as shown in below image. Choose Something elseFig 2: Choose this option
*On your target drive, create a 200MB EFI System Partition as the first partition (Primary)
*Create a reasonable sized ext4 partition, with mount point = ’ (Primary)Fig 3: Sample partitions
*Click on Install
*Reboot into Mac after installation finishesStep 4: Setting up Boot manager
We will be using a super awesome 3rd party boot manager rEFInd. It can detect any operating systems installed in EFI mode and boot them.
*Download rEFInd zip and extract it
*Open Terminal and navigate to rEFInd directory
*Run diskutil list and find the name of your flash drive’s EFI partition. (In my case /dev/disk2s1)
*Run ./refind-install --usedefault /dev/diskXXX (replace XXX with appropriate name)Fig 4: Output must be similar to this
Now your flash drive is ready to boot on any Mac or EFI compatible PC. Moreover, if you ever mess up your bootloader and are unable to boot rEFInd can help you boot into your OS (if it exists :p)Testing on Mac and PCMacBook Air (Early 2015)
*Press option+power and select EFI Boot
Fig 5: rEFInd screen
*Select your apropriate Linux to boot
Fig 6: MacBook booted Damn Small Linux Usb BootAsus X550LD (PC)Create Bootable Os X Usb On Windows
*Boot from flash drive in UEFI Mode
Fig 7: rEFInd screen
*Select your apropriate Linux to boot
Linux Usb Boot For Mac OsFig 8: PC booted
Download here: http://gg.gg/vdify

https://diarynote-jp.indered.space

コメント

最新の日記 一覧

<<  2025年7月  >>
293012345
6789101112
13141516171819
20212223242526
272829303112

お気に入り日記の更新

テーマ別日記一覧

まだテーマがありません

この日記について

日記内を検索