Last active
July 15, 2018 19:30
-
-
Save futurisma/6cfc1b52e6e81ce99a0796385999a92c to your computer and use it in GitHub Desktop.
Mount USB drive on Mac in Single User mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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