16

Their approach https://wiki.debian.org/InstallingDebianOn/Apple/MacBookAir/3-2 does not work(everything goes fine but usb does not become bootable). It also seems seems several years old and outdated. Other distos have large amouts of troubleshooting this issue, but not debian. Any advice how can I debug why my usb did not becamse Debian bootable after those procedures.

My steps were:

1)erase usb drive using disk utils and create FAT partition(i tried also exFAT and OSX Extended).

2) downloaded the iso and converted it to img:

hdiutil convert debian-8.4.0-i386-DVD-1.iso -format UDRW -o debian-8.4.0-i386-DVD-1.img

and renaming the result to remove the ".img" from name. I also tried to us UDTO instead of UDRW.

3) finding my usb location using diskutil list, it was /dev/disk2

4) unmounting the usb: diskutil unmountDisk /dev/disk2

5) dding the image: sudo dd if=debian-8.4.0-i386-DVD-1.img of=/dev/disk2 bs=1m

what took several hours. The result was the expected message that usb could not be read.

6) ejecting the usb with: diskutil eject /dev/disk2

The result was that the usb was not bootable - in the loading screen pressing alt button - the usb does not show.

GAD3R
  • 63,407
  • 31
  • 131
  • 192
Draif Kroneg
  • 315
  • 1
  • 3
  • 7

3 Answers3

32

I didn't convert the ISO to img, I just formatted a USB drive for FAT and used dd:

sudo diskutil unmountdisk /dev/disk1
sudo dd if=./debian.iso of=/dev/disk1 bs=1m

I tested this with Debian 9.

It's important to note that the appropriate /dev/disk# should be determined by using the following command on the macOS command line:

diskutil list

In the question above, the USB device mapped to /dev/disk2 whereas the example above uses /dev/disk1. But the number could be 3 or 4 or some other number. Ensure the number correlates with the memory stick you use; you risk losing data if you get it wrong.

Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
Pavel
  • 421
  • 4
  • 2
5

Use unetbootin : https://unetbootin.github.io/. Here is a tutorial for ubuntu but you can also use it for debian just change the image :http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

LXGA
  • 312
  • 1
  • 3
  • 13
  • I tried, but it does not work. The usb becomes bootable, but if I try to load from it - grub brings the error message that it cannot find the kernel - "vmlinuz not found". – Draif Kroneg Jul 05 '16 at 09:23
  • Do you use uefi bios? Do you want to use the usb drive on the mac? – LXGA Jul 05 '16 at 09:26
  • I think it is efi machine. I just need to create bootable linux usb so I can install it on mac machine. – Draif Kroneg Jul 05 '16 at 09:34
  • 1
    You downloaded only a part of debian!!!!! You selected DVD-1!!! Debian is big so if you dont use dvd download netinstall(it will boot from usb and download packages from online) : https://www.debian.org/distrib/netinst – LXGA Jul 05 '16 at 09:39
  • Also see if you need to download amd64 or i386 : https://support.apple.com/en-us/HT201948 – LXGA Jul 05 '16 at 09:41
  • Yes, sorry - that was one of the images I tried to use. I also tried to use debian-8.5.0-i386-netinst.img as well in exactly the same way. It does not boot as well. – Draif Kroneg Jul 05 '16 at 09:48
  • Worked without problems for me with Ubuntu Gnome 16.10 on MacBook Pro 15' mid 2015. After booting nor everything works (webcam is not detected, touchpad is a little crazy), but the creation of a bootable USB and booting with `option` key pressed works. – Tad Lispy Mar 09 '17 at 22:54
  • When unetbootin (on OSX) is finished, it tells me: "The created USB device will not boot off a Mac. Insert it into a PC to boot it." – Karl Oct 04 '17 at 21:38
  • 2
    The debian installer now warns against using unetbootin, i suggest that you UNaccept this answer and choose one of the others below: https://www.debian.org/releases/jessie/amd64/ch04s03.html.en – gotjosh May 30 '19 at 07:59
  • The debian installer wanrs against images installed with unetbootin, and when continued it did not install, with problem says issue reading file. This method should be aborted. Tested with debian bullseye. – Dr.Sherif Omran Jun 28 '22 at 07:37
1

I've used unetbootin in the past just fine however recently I was trying to install on a really old PC for use as a server and it would hang at the USB boot menu when I tried to boot over USB.

I managed to install Debian successfully using this guide which I've duplicated in my answer

The idea is the following:

  1. Download the boot.img.gz for the relevant version of Debian from here. You will need to change the version to make it match the ISO that you have. http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/

  2. Unmount the target USB disk

  3. run gzip -dc boot.img.gz > /dev/disk# to your respective usb

  4. After it finishes (it took an oddly long time for a 50MB image, compression I guess), disconnect and reconnect the drive. Simply drag and drop the ISO into the root of the newly created partition.

Try and install! Worked for my Dell Optiplex 380

Allison
  • 268
  • 1
  • 2
  • 9