14

I want to create a USB stick with GParted on it that will be recognized by my Mac. Obviously, I want to create it on a Mac, also. This is not mentioned in the documentation here.

3 Answers 3

17

I will answer my own question. Since I had a lot of trouble creating Live USBs on Ubuntu and Mac and wanted to dig a bit deeper into the subject and will also list the output of the successful partition schemes.

  • Download .iso from here under "stable releases". If unsure, chose the 32bit-Version.

  • Put a USB stick in the slot and look into Disk Utility for its device number (disk1, disk2, diskX, etc). This can be found by clicking the icon "Info".

  • Open up a shell

  • Unmount the stick in terminal (nowhere else) with sudo diskutil unmountDisk /dev/diskX

Make sure you don't dd to a wrong disk, e.g. your working HDD!

  • Copy the downloaded file with sudo dd bs=1m if=file.iso of=/dev/rdiskX

We use the r for raw in of=/dev/rdiskX to make the copy faster. You should not be using the s1 extensions: these are partitions on the disk, not the disk itself.

The USB stick then looks like this with diskutil list:

/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *7.8 GB     disk1
   1:                       0xEF                         3.0 MB     disk1s2

sudo gdisk -l /dev/diskX will show this (aborting the question is possible with ctrlC):

GPT fdisk (gdisk) version 1.0.1

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: present

Found valid MBR and GPT. Which do you want to use?
 1 - MBR
 2 - GPT
 3 - Create blank GPT
Your answer:

Finally, sudo fdisk /dev/diskX will show

Disk: /dev/disk1    geometry: 942/255/63 [15138816 sectors]
Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 2: EF 1023 254  63 - 1023 254  63 [    535612 -       5948] <Unknown ID>
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused 

OS X will show a dialog to Initialise..., Ignore or Unmount the USB stick when it is put into the slot. Clicking Ignore is safe. I put the German screenshot in, I think it's pretty clear.

dialog upon inserting USB stick

When booting the Mac now press alt or option and there should be an option to boot to that is called EFI boot. This will bring up GParted Live.

But beware, there are some Macs (e.g. Macbook Pro 17" Early 2011 that are not able at all to boot anything other from USB than OS X).

6
  • Which download should I use for an i7 Mac - I tried the AMD64 but it keeps crashing Commented Jan 27, 2018 at 11:44
  • 3
    This is good information. Another good tool that I have been using recently to get images onto USB is Etcher: etcher.io
    – SunSparc
    Commented Sep 18, 2018 at 3:06
  • Thanks, I did it with etcher, took me 1 minute. Commented Nov 12, 2018 at 9:20
  • 1
    Using dd didn’t work for me. Think it has to do with dd writing a MBR scheme. I believe GUID is required now to boot off USB thumb drives. The following worked for me. apple.stackexchange.com/questions/166807/…
    – sunknudsen
    Commented Jul 25, 2019 at 2:23
  • I wanted to add that you will need to connect an external USB keyboard/mouse to use the live USB of gParted or CloneZilla on MacBook Pro 2016 or later I know the post is a bit late, but I was searching for how to do this and this was the best post I found so wanted to note that. Commented Dec 13, 2021 at 13:35
8

Note: This answer does not require any third party tools or the use of the Terminal application.

How to Create a GParted Bootable Flash Drive

Note: The operating system used to create the bootable flash drive was macOS High Sierra Version 10.13.6.

  1. Download the latest gparted-live-*-amd64.zip file. Replace * with the current version. For example, if the latest version is 1.3.1-1, then you want the gparted-live-1.3.1-1-amd64.zip file. I assume this file will download to your Downloads folder. After the download completes, the zip file will automatically convert to a folder. I my case, this folder was named gparted-live-1.

  2. Use the Disk Utility application to erase a 500 MB or larger flash drive. Select the options shown below.

  3. Using the Finder application, open the folder named gparted-live-1. The contents are shown below. Use the Finder application to copy the contents to the flash drive.

  4. Make the following changes to the names of the boot files, so the firmware in your Mac will boot directly from GRUB. From a Finder window, open the EFI folder on the flash drive, then open the boot folder. The result should be the folder shown below.

    Rename bootx64.efi to bootx64original.efi. Duplicate grubx64.efi to produce grubx64.efi copy, then rename grubx64.efi copy to bootx64.efi. The result should be the folder shown below.

How to Boot from a GParted Flash Drive

A GParted flash drive was tested to successfully boot on the following computers with the latest firmware updates installed.

  • iMac (20 inch, Mid 2007)
  • iMac (21.5 inch, Mid 2011)
  • iMac (21.5 inch, Late 2013)
  • Mac mini (2018)

Note: I had access to an Apple wireless keyboard and an Apple wireless mouse. Neither worked with GParted. You may need to use a wired keyboard and wired mouse.

Using the above Macs, GParted was found to recognized the internal drives and USB external drives. However, GParted did not recognize an external Thunderbolt 3 SSD.

Steps to boot GParted.

  1. Insert the flash drive in a USB port on the Mac.
  2. Restart the Mac and immediately hold down the option key.
  3. When the Startup Manager icons appears, choose the external drive icon labeled EFI Boot.

Note: When prompted, the default option was chosen.

References

GNU/Linux Method B: Manual
If you read this reference, you will realize the advantages of using macOS instead of Linux.

1
  • 1
    I wanted to add that you will need to connect an external USB keyboard/mouse to use the live USB of gParted or CloneZilla on MacBook Pro 2016 or later I know the post is a bit late, but I was searching for how to do this and this was the best post I found so wanted to note that. Commented Dec 13, 2021 at 13:34
0

I know I'm a bit late, but I was searching how to do this and this was the best post I found.

I wanted to add that UNetbootin is available for OSX now and just by running it with the latest version of GPARTED I was able to fix my PCIe SSD in seconds.

1
  • Welcome to Ask Different. It's not clear if you have a new question or need to comment. If you can edit this to include the version number on what "latest" is - it might make a good edit to another post or turn this into an answer that would get votes.
    – bmike
    Commented Feb 9, 2020 at 17:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .