Single-user mode: How to mount and access an external USB drive?

My MacBook Pro HD is acting up. Cannot boot normally or into "safe mode". Cannot reinstall OS without wiping out the HD. Need to recover some critical files but DiskUtil First Aid and Restore options cannot successfully complete. Problem traced down to "invalid node structure" which means I either have a hardware problem or my filesystem partition directory structure is corrupted. I need to recover some files that are not backed up (timin issue with my regular backup process).
I can boot into single-user mode, mount the root file system (/sbin/mount -uw /) and can see/navigate the rot filesystem structure via good UNIX command line. Here's what I would like to do (in single-user mode):
1. Mount an external USB drive (250 GB already formatted as Mac OS X Extended)
2. Copy various files and/or directories from my HD to the external USB drive (UNIX cp command)
I realize I could go spend $$ for the Disk Warrior or Data Rescue products (or something similar) that SHOULD help me recover my HD or files, but it seems silly to do this when I can see, touch and taste them from within single-user mode....
Comments? Suggestions?
TIA --
Trent
P.S. Once I've recovered my files, I'll try to reformat the HD and then reinstall the OS. And THEN go have Apple look at my machine (thank goodness for AppleCare coverage)!

Resolution:
1) Boot system in single-user mode (SUM) with external HD attached.
2) Execute the following UNIX CLI commands once SUM boot process is completed:
# fsck -fy
# mount -uw /
# mkdir /Volumes/target_directory
# mount -t hfs -w /dev/diskXXX /Volumes/target_directory
# cp -RXv /source_directory /Volumes/target_directory
Where XXX is the device-level name for your external HD's data partition. In my case this was /dev/disk1s2. It may take some experimentation to identify this device name if your system has multiple HD's.
3) Verify contents were successfully copied onto the /Volumes/target_directory.
Comments and observations:
- Do NOT use "/" as your source directory - cp will make a second (redundant) copy of /volumes/target_directory
- I was able to successfully copy ALL files off my HD despite the fsck command's "invalid node structure" error message with this simple procedure. YMMV, depending on the state of your HD.
- The repeated disk0s2: I/O error warnings displayed during the SUM boot process did not seem to have a negative effect on this procedure. I also received this same error warning intermittently as I navigated the mounted filesystem did not seem to be a problem, either. Again, YMMV.
Commercial software:
I downloaded ProSoft Engineering's Data Rescue 3 product (trial version) before spending $99 to attempt to recover my "bad" HD's data via mounting to a good system with FW target mode. It could not successfully complete its "QuickScan" process and immediately hung on block 0 of 390M during its "Deep Scan" process. The product did seem to function properly on an operational system. ProSoft's technical support was responsive and helpful but had no answer for my "Deep Scan" error.
I did not attempt to use Alsoft's Disk Warrior 4 product. I could not find any trial software available and was reluctant to spend $100 based upon the mixed reviews and comments on this discussion forum as well as other reviews. Alsoft does claim to address the "invalid node structure" error in their marketing materials. Hindsight being 20/20 - I saved $100 by using this simple procedure.
Final note:
Neither Leopard nor Snow Leopard's installation DVD could recognize the bad internal HD when trying to do a reinstall. While DiskUtil was able to "see" the bad internal drive it immediately failed when I tried to do an "erase and format". Took the system to my local Apple store and the Genius ran a tool called "SMART Utility" from Volitans Software (www.volitans-software.com). SMART utility confirmed that my HD was bad so it was replaced. AppleCare pays for itself (once again!).

Similar Messages

  • Why won't single user mode recognize /sbin/mount command?

    I need help from people who are knowledgable abou these Mac wonders of the world and single user mode.
    I'm trying for the life of me to run "memtest" in single user mode and am finding it impossible.
    After I boot into single user mode, I get a "Shell>" prompt.
    I type in /sbin/fsck/ -y to do some check thing.  I then type in /sbin/mount -uw /
    Both times I get an error saying that "/sbin/yada yada yada  is not recognized as an internal or external command, batch or whatever"
    No command work at all.  I have no clue what I'm doing and am using instructions from where I got the memtest app.  Sure I could just run it from the Terminal but then you're not testing all of the RAM, only the available portion.  There's a huge chunck that won't be tested as OSX is using it.  I want to do this as I just upgraded RAM to 8G with Crucial and now my MBP is acting very slow and weird.
    HELP????  Why does this have to be sooooo hard.

    I found the solution to the problem.  Somone on a different forum had the same issue at one time.  The problem is my use of Refit.  When you hold Command-S at start when using refit you go into a single user type mode inside the refit shell.  So it is something different.
    Instead I needed to let the Mac boot Refit like normal.  With the Mac partition highlighted press "F2" and it will display boot options for the Mac partition.  One of them is Mac OSX single user mode.  Simply select and hit enter and then I enter the correct single user mode and I'm off.
    Then everything works like it should.  I was my own undoing with my use of Refit. 

  • Single user mode, Lost Admin Account, and Disk Permissions

    Okay, so I have quite a few issues here. I will start from the beginning.
    About a week ago, I tried to install some updates and I could not get the Admin account to work. I went to the users profile and noticed my Admin account was not there. Did a quick search and found Apple's outline of how to fix this via the Operational DVD and the root user. Tried this and it would never work, because as soon as I restarted the computer or changed screens it switched back to a standard account.
    Next up, I went into the terminal to check the Admin User group. As it turns out it is not there. So I find a discussion on there that outlines how to rebuild this in single user mode and the Unix prompt. So, I print it off and try to restart in single user mode. After trying two different keyboards and a sum total of 8 to 10 times, I can't restart in single user mode to get to the Unix prompt.
    One last thing, last night I went into the Disk Utility on the start-up DVD. I wanted to check the Repair Permission log and I got the following:
    ACL found but not expected on "private/var/root/Library/Preferences"
    ACL found but not expected on "private/var/root/Library/"
    ACL found but not expected on "Network"
    Thoughts?
    Thanks for your help!
    tpp

    first, the ACL messages can be ignored. if you can't get to single user mode you can't fix your admin group. the only reasons that I know why you wouldn't be able to do that is
    1. a defective keyboard
    2. you have a firmware password set. have you? you'd have to turn it off before you can get to single user mode.
    lastly when you restart in single user mode make sure you press command+s right after you hear the chime. do not press it too early or too late. lastly, I'm not sure which instructions you've found to fix the admin group but I have them in this thread
    http://discussions.apple.com/thread.jspa?messageID=8011324

  • How do I block access to external hard drive

    I have a child account on my computer, and have set up various parental controls but can't see a way to block the access to external hard drives which are connected to my Mac.
    I have a couple of drives which contain my work related files so I don't want my child to view or edit them. Is there a way I can stop her seeing these drives when she searches for something in Finder?
    Thanks

    You can create encrypted sparse disk image.
    Once you have done that you can move the data you wish to protect into it.
    This way the only to access the data is by first providing the password to open the disk image.

  • HELP!: How to read and write to External hard drives? What file system to use?

    hey all, this has been really frustrating for me today. i want to be able to write to an external HDD that's formatted in NTFS. today i find out it isn't possible to write to this file system on a Mac and that on FAT32 it is possible. however, FAT32 can't address files larger than 4GB so this hurts me a lot. are there any other file systems that'll allow me to read and write from a Mac? my goal was to use freeNAS to build a NAS with an old tower and connect my external hard drives to it, but if i can't write to them this may not be possible.
    thanks guys, i'd appreciate any help!

    Read this, you don't need to install any software unless you have no choice.
    https://discussions.apple.com/docs/DOC-3044
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • How to Store and Access Clips on Another Drive

    hi all...how can I keep clips/projects on a drive other than my boot volume? Do I just have to move them back and forth? Or can you setup iMovie to access clips from various drives?
    Thanks!

    imovie will store new clips where you tell it to in your import options, it will see any valid connected drive and list it in the drop down list of locations.
    imovie will also look for attached drives and list any clips it finds in your event list whenever it is opened.
    In the top RH corner of the events list is a small HDD icon, click on it to reveal which of your events are stored where, if you want to move an event, drag it to the appropriate drive, imovie will copy it over and remove the original.
    DO NOT move events in the finder, it will cause you problems.

  • How do install Tiger from an external USB drive?

    I'm trying to upgrade from 10.2.8 to Tiger. How do I install Tiger from my external USB DVD drive? Tiger only comes on DVD and my G4 only has a CD ROM as an internal drive. Is there a way to boot from an external USB DVD drive?

    bamim2,
    you obviously just cracked some known hardware restrictions that not even Apple knew how to do: Don't start up from an external USB device.
    The procedure you described is the standard procedure for the startup manager. However, as Apple's article explains this does NOT work with USB-devices on PowerPC (G3, G4, G5) based Macs.

  • Windows 7 Professional XP Mode won't recognize internal DVD or external USB drives

    Windows 7 Professional XP Mode - won't recognize USB external drives or internal DVD drive
    I recently purchased a new Toshiba laptop and ordered configured with Windows 7 Professional so I could use XP mode for some older programs.  The Virtual Mode and XP mode work ok, but the computer will not
    recognize any external USB storage drives or the internal DVD drive.  This prevents me from saving and transferring any file that I work on in XP mode. 
    ,I also tried to copy and paste the file from XP Mode over to a document file to 7 Professional Mode, but it won't allow that.  It also will not recognize any printer when in XP Mode,
    so I can't print out the file either. 
     Basically, I have no way to store or move a file out of the computer when in XP Mode.
    Does anyone know what I need to do so that the computer will recognize the USB drives and internal DVD drive when I am running in XP mode? 

    Checked these ? 
    http://social.technet.microsoft.com/Forums/en-US/b44bbcf1-04d4-4a2f-8806-d34d2d8b477b/windows-7-with-xp-mode-not-recognizing-usb-20-port?forum=w7itprovirt
    http://social.technet.microsoft.com/Forums/en-US/dd9cd509-f9ac-4295-a75b-863f92f5595f/windows-7-notices-but-does-not-see-external-usb-hard-drive?forum=w7itprohardware
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Accessing FAT32 external USB Drive via web server for streaming of content

    Hi all
    I've read a post about streaming music from my mac via wifi to my iPhone 3g.
    It involves enabling the webserver, adding a symbolic link to my music directory and then browsing to the webserver using safari on my iphone.
    I've enabled the webserver, added the symbolic link however when I try and follow the instructions to add permissions to the music folder I get no error however browsing to the folder I receive a "Forbidden" message saying I don't have access.
    A friend of mine who knows more about Mac's than myself (macmini is my first mac) has suggested it's because my external drive isn't part of the core system???
    Has anyone else seen/tried this with an external drive setup?
    Regards
    Wayne

    here is the link to the post/instructions I'm using...
    http://forums.ilounge.com/archive/index.php/t-208191.html
    I ran the chmod command successfully (no error's in Terminal) but still cannot view the contents of the directory via a browser
    Cheers
    Wayne

  • How to fix computer freeze with external USB drive attached

    Hi, My computer has frozen a few times lately when my external drive was hooked in, mostly to upload music to Itunes on my MacBook Air.  Anyone know what's happening and how to fix it?
    Thanks
    Peggy ;~)

    the image isnt just 1 big file
    its got a bunch of files
    som .ini configuration files here and there
    the trick is to find which files controls the directory to start loading from
    and change the waiting for f:
    to waiting for anything else
    external ODD, flash drive, or anything other than the internal ODD cuz its broken
    the files on the disc are
    recovery disc+
    .....boot+
    ..............fonts
    ..............bcd
    ..............boot.sdi
    ...................eftsboot.exe
    ......efi+
    .................microsoft+
    ...................................boot+
    ..............................................font s
    .................................................. ......bcd
    .....HDDPREP+
    ............................boot
    ............................sources
    ............................bootmgr
    ......HTMPREP+
    ...........................readme.html
    ...........................toshiba.jpg
    ......sources+
    .......................boot.wmi
    .......tools+
    ..................crtdll.dll
    ...................imagex.exe
    ...................version.txt
    ...................vRecoFastCRC.exe
    ...................XcludeCRC.ini
    ...................zlibwapi.dll
    ....06466XR1.CRC
    ....06466XSP.SWM
    ....06466XSP2.SWM
    ....06466XSP3.SWM
    ....06466XSP4.SWM
    ....06466XSP5.SWM
    ....06466XV1.CRC
    ....bootmgr
    ....Setenv.ini
    im know im not super computer expert but as far as my knowledge goes its probably 1 of thos xxx.ini files cuz usually contain settings and stuff like that
    they are easy to open with notepad and easy to just change one of them and burn a new disc with the corrected file
    i just need someone to help me figure out which one to change and what to change it to the rest is easy

  • How to run windows from an external usb drive

    Hi,
    I've just install windows using bootcamp. after that i restore that windows installed bootcamp volume to an GUID partitioned external HDD. Now it is shown in startup disc, but when i select that (external HDD) volume it is unable to start.
    I don't know what to do? I just want to run windows from an external usb drive like i can run mac osx.
    please help.  thanks

    Windows will not run from an external drive.

  • Mounting external drive while in Single-User mode

    Last night, a friend of mine's hard drive was failing in his Macbook (in San Diego, I'm in Colorado). Booting into normal mode would cause a lot of errors. He booted into single-user mode and could not figure out how to mount his firewire drive. I booted into single-user mode on my Macbook and hooked up my USB drive and did an 'ls -ltr /dev' to see if the device showed up. Since it did not show up on the listing of /dev, there's no obvious way to mount it. I can't seem to find any legitimate posting out there nor here. Is there an answer to this problem?
    Thanks,
    Dave

    Perform the mount command listed here, using a different mount tool if it's not a Mac formatted drive.
    (36291)

  • How to mount USB & CDROM drives from single user mode - Solaris boot disk?

    Hi All,
    I need to carry out ufsrestore on a single newly replaced system disk (no redundancy / mirroring) from either USB or CDROM drives from the following steps:
    ( i ) GRUB => e, e, cdrom –s, Enter, b (boot from Solaris 10 x86 media).
    ( ii ) Choose menu 1 for Install Solaris Interactive Mode to reach single user mode.Below are the commands that I have tried in single user mode without success:
    mount –r –F pcfs /dev/dsk/c1t0d0p0 /cdrom (after unmount Solaris CD)
      mount: /dev/dsk/c1t0d0p0 is not a DOS filesystem.
    svcadm –v enable smserver
      svcadm: Pattern ‘smserver’ doesn’t match any instances
    svcadm enable autofs
      svcadm: Pattern ‘autofs’ doesn’t match any instances
    devfsadm
      devfsadm: mkdir failed for /dev 0s1ed: Read-only file system
    mkdir /mnt
      mkdir: Failed to make directory “/mnt”; Read-only file systemPart of the problem is due to the current READ ONLY filesystems which does not allow the creation of mount point such as /mnt.
    I have been able to create both / root (/dev/dsk/c1t0d0s0) and /export/home (/dev/dsk/c1t0d0s0) filesystems with newfs that are awaiting for restore using ufsrestore.
    The only option I am left with is to attach a secondary disk to install Solaris 10 on either of them before bring the system to multi-user mode so that service such as volmgt, autofs, volfs are available to access USB & CDROM drives.
    Any suggestion on how to resolve this issue?
    Many thanks,
    Jack

    Hi JKGN,
    Is the directory a located under the root filesystem. ie /a? Are there any other mount point for say USB drive as well? I am not in a position to try it out right now but will get back
    to you soon on whether /a exist or not.
    Btw, the last thing I managed to do on this system at the time was added a secondary 1TB internal disk with the intention to restore both / and /export/home data onto this disk while
    making use of all the disk device management services such as the following services only available in a fully installed Solaris system (both single & multi-user modes) installed on the
    primary disk:
    # svcs smserver
    STATE          STIME    FMRI
    online         Jun_08   svc:/network/rpc/smserver:default
    # svcs autofs
    STATE          STIME    FMRI
    online         Jun_08   svc:/system/filesystem/autofs:default
    # devfsadm
    # iostat -En
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: ATA      Product: SAMSUNG HD321KJ  Revision: 0-11 Serial No: 
    Size: 320.07GB <320072932864 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 41 Predictive Failure Analysis: 0
    c0t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
    Vendor: PHILIPS  Product: DVD+-RW DVD8801  Revision: AD21 Serial 
    Size: 17.54GB <17538875392 bytes>
    Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
    Illegal Request: 10 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: JetFlash Product: Transcend 16GB   Revision: 1100 Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
            Connected Device: PHILIPS  DVD+-RW DVD8801  AD21
            Device Type: DVD Reader/WriterHowever, I was disappointed that "iostat -En" has not found the secondary disk (1 TB) even though it was available earlier, for Solaris installation as the only disk on the same system.
    As a result, I am left with no option but the need to rebuild this system with only a single primary disk while in single user mode. However, the single user mode that I am in is the
    one from Solaris installation disk with restrictive (_cannot create folder for mount point or running disk management utilities_) capability such as those services just covered, compared to one from a completed Solaris installation system with full access to all filesystems and utilities / commands in general.
    I would very much value your assistance on how to mount both CD & USB in this restrictive limited Read Only OS (assume that it is running from memory) in order to get complete access to
    the blank primary disk so that full restore with ufsrestore could take place.
    Thanks in advance,
    Jack
    Edited by: 797805 on 9/06/2012 04:15

  • Single User Mode - mount external drive and copy user files to there

    I have an iBook G4 running (I think) Tiger (although it may be Panther). AHT reports a bad HD and it will not boot from that drive. Mounting it via Target Disk to another Mac won't permit me to even see beyond the root directory; just a spinning sunburst at the bottom of the Finder window.
    If I boot into single-user mode, I can "ls" and "cd" to see the files and folders in the home folder. Assuming the HD is named "Macintosh HD" and I have a USB-connected hard drive named "Backup", what are the commands I need to use in single-user mode in order to mount "Backup" and copy the user's home folder (there's only one on this drive) over to "Backup"?
    As I indicated above, I'm not absolutely sure whether this iBook is running Panther or Tiger.
    Thanks in advance for any assistance!

    I'm in the middle of copying things.
    I did a chmod -R ug+w (IIRC) to the 300GB volume and this made it writable.
    I then CD'd to the Pictures folder on the Macintosh HD.
    I then did a cp *.jpg /Volumes/300GB/ and found that it managed to copy all of the jpegs that were sitting loose in the Pictures folder. Some of the photos were corrupted but I expected this as the drive is reported to have a hardware issue by AHT.
    I'm now in the process of copying the iPhoto Library using the cp -r command. Some files are being reported as bad and can't be copied but, again, I'm expecting this.
    Whatever I can get from this drive will be a bonus. I'll mention that I used Drive Genius to duplicate the HD to a disk image and, while this was done successfully, it resulted in a "no filesystem" error when I attempted to mount it. However, I -did- ask for it to be mounted anyway and then used DiskWarrior on it (even though it didn't appear in the Finder). It took a few hours for DiskWarrior to come up with a "preview" of the disk (as the filesystem was thoroughly hosed). The User folder was nowhere to be found and every file that was displayed was corrupt. That's why I'm trying this "out of the GUI" process.
    I'll thank everyone who made suggestions; they all pointed me in the proper direction.

  • Mounting a dmg in single user mode

    When ever I try to mount a .dmg in single user mode using "hdiutil mount /path/to/dmg" I get no errors but I can't actually access the mounted dmg, it never appears in /Volumes
    My question is how do you access a mounted dmg is single user mode

    I've run into similar difficulties. I don't know about 10.6, but in 10.5.8 the HDI driver appears to load fine. (You can check that with the kextstat utility.)
    In fact, my 10.5 Install CD uses hdik to create RAM disks early in startup. However, the same calls to hdik fail when I try them in single-user mode.

Maybe you are looking for

  • How to Refresh a Page once saved to database in ADF.

    Hi, I created a JSF page using project template as "JSF,ADF,business components". There is a List of values displayed in a dropdown list, User can create new value and once it is saved to the database it should reflect in the list of values.But it is

  • 1:n Message split and Abap Proxies??

    Hello, Can I not use Message split and Abap Proxy together? My scenario is MDM->File ->XI->Proxy->BI. I am getting a single file syndicated from MDM and in XI If I use message mapping to do 1:n split in the message mapping, can I use it with Abap Pro

  • Regarding fieldcatalog to store a text field

    Hi friends, I want to store a text field in field catalog .so that it won't effect in field catalog . when if loop at fieldcatalog depending on that value i need to perform. regarding anil

  • Migrating from MYSQL oracle.dbtools.metadata.persistence.PersistableObject.

    Hello, I am a new bie I am trying to migrate MySQL database to oracle, I am using Windows XP with servicepack 2, Oracle 10.2.0, SQL Developer 1.5, MySQL 5.0.58b and the mysql-connector-java-5.0.8 I am getting the following error when I click on "capt

  • Batch Order Confirmation

    New to SAP through attrition and have found a wealth of help here!  My current situation is a customer is requesting a single emailed PDF containing all Order Confirmations for each respective day.  Is it possible to do this and where would I start?