Skip to content

Instantly share code, notes, and snippets.

@futurisma
Last active July 15, 2018 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save futurisma/6cfc1b52e6e81ce99a0796385999a92c to your computer and use it in GitHub Desktop.
Save futurisma/6cfc1b52e6e81ce99a0796385999a92c to your computer and use it in GitHub Desktop.
Mount USB drive on Mac in Single User mode
If you need to mount a USB drive in single user mode on a Mac, diskutil won't work , but mount can still be used if you can detect the device name for your USB drive
Use this to detect your USB drive id :
ls /dev > d1.txt
# insert usb
ls /dev > d2.txt
sdiff -s d1.txt d2.txt
Create a mount point with :
'mkdir /mnt/usb'
Mount the USB drive
'mount -t msdos /dev/disk1s1 /mnt/usb'
This will be writable, useful for backing up data.
When finished unmount with :
'umount /mnt/usb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment