Mount external USB drive in Single User Mode

9,569

First, get full access to your boot volume:

fsck -yf
mount -uw /

Then, get kextd and notifyd running to load the needed device drivers and create /dev/ entries:

launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.kextd.plist
ls /dev/disk*

Then, to mount the volume (assuming the /dev/ entry for it is /dev/disk1s2 and it's HFS/HFS+/HFSX format; adjust as needed...):

mkdir /tmp/usbvolume
mount_hfs /dev/disk1s2 /tmp/usbvolume

Edit: at least under 10.6.4, loading notifyd and configd seems to prevent the system from shutting down normally (i.e. the reboot command will hang). Loading configd and diskarbitrationd (using launchctl load ... as above) as well allows it to shut down normally.

Edit2: unloading kextd (launchctl unload ...) also allows shutdown (but you should probably wait 'till you're about to shut down).

Share:
9,569

Related videos on Youtube

Jaur
Author by

Jaur

Updated on September 17, 2022

Comments

  • Jaur
    Jaur over 1 year

    How can I mount an external USB drive when I'm in Single User Mode on my Mac?

    I'm not able to see it in /dev/

    • Jonno_FTW
      Jonno_FTW almost 14 years
      Have you googled the problem?
    • John T
      John T almost 14 years
      What type of filesystem is the USB drive?