Mac Low-Level Write on an USB Drive: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Mac =Overview= This is the procedure to write an USB drive at low level with dd. This is sometimes necessary when we want to create a boot...")
 
Line 13: Line 13:
Identify the device the USB drive was associated with:
Identify the device the USB drive was associated with:


<syntaxhighlight lang='bash'>
mount
mount
/dev/disk1s1 on / (apfs, local, journaled)
/dev/disk1s1 on / (apfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s4 on /private/var/vm (apfs, local, noexec, journaled, noatime, nobrowse)
/dev/disk1s4 on /private/var/vm (apfs, local, noexec, journaled, noatime, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk3s1 on /Volumes/NOVA ORDIS (msdos, local, nodev, nosuid, noowners)
/dev/disk3s1 on /Volumes/NOVA ORDIS (msdos, local, nodev, nosuid, noowners)
</syntaxhighlight>


Unmount with [[diskutil]]:
Unmount with [[diskutil]]:

Revision as of 19:59, 9 December 2018

Internal

Overview

This is the procedure to write an USB drive at low level with dd. This is sometimes necessary when we want to create a bootable USB drive, for example.

Procedure

Insert the USB drive in the drive, the system will mount it and expose it automatically.

Identify the device the USB drive was associated with:

mount

/dev/disk1s1 on / (apfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s4 on /private/var/vm (apfs, local, noexec, journaled, noatime, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk3s1 on /Volumes/NOVA ORDIS (msdos, local, nodev, nosuid, noowners)

Unmount with diskutil:

diskutil unmount /dev/disk3s1

Write with dd:

dd if=/Users/ovidiu/Desktop/rhel-server-7.6-x86_64-dvd.iso of=/dev/disk3s1