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...")
 
 
(2 intermediate revisions by the same user not shown)
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>
 
The device associated with USB can also be identified with Disk Utility:
 
::[[File:DiskUtility.png]]


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

Latest revision as of 23:36, 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)

The device associated with USB can also be identified with Disk Utility:

DiskUtility.png

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