Jump to content



Member Since 08 Sep 2010
Offline Last Active Jul 13 2011 03:23 PM

Topics I've Started

[GUIDE] How to mount drives in OS X Single User Mode using the command line

19 September 2010 - 04:31 PM

Snow Leopard 10.6.4

Recently I had a situation where I couldn’t get into the GUI (even with safe mode –x). I knew I had to replace a certain file on the root with a file I had stored on another drive. Now if this was DOS, it would be trivial to copy the file over – not so in OS X.

In order to use the mount command, we first need to know three pieces of information.
1. The name of the drive we want to mount (what do we call it?)
2. The type of file system that drive uses.
3. The folder we are going to mount the drive in.

First we need to enter Single User Mode. For Chameleon-type hackintosh bootloaders, hit any key then type –s enter. For legit Mac users I think you hold Apple and s key as you boot.

After booting, somewhere on the screen, you should see a line similar to this:
BSD root: disk0s1, major 14, minor 1
This tells us that we are currently on disk 0, partition 1 (ignore the major, minor).

You can now go ahead and enter the two commands listed on the screen.
fsck –fy
mount –uw /

The first command will check your disk for errors and the second will give you write access to the root. You now need to be EXTREMELY CAREFUL about making inadvertent or damaging changes to root.

We need to know what the computer has called our drives and partitions. We use the ls command (similar to dir in DOS).
ls –l /dev/disk*

We get some output which contains something like this:
/dev/disk0s1 <-- we know we are on this partition
<-- the file we want is here (we think)

Note this list seems to change and there is no guarantee that partitions named in the GUI using diskutil will have the same names here. Also CD’s and DVD’s take a while to show up sometimes so just repeat the command (use up arrow) until they do.

Check the file system used by the drive we want to mount. In my example it is a Windows NTFS partition.
fstyp /dev/disk1s2
<-- ok that’s what we expected

Now we create a folder to mount the drive to. For easy access let’s make a folder on the root called “drive2”.
mkdir /drive2

Now it’s time to use all this information in the mount command
mount –t ntfs /dev/disk1s2 /drive2

With some luck it worked. We check to see if our files and folders are there.
ls –l /drive2

If the device was a HFS/HFS+ volume (Mac OS) then we would use this command:
mount –t hfs /dev/disk1s2 /drive2

USB hard drives and flash drives would use similar syntax depending on what file system the device was formatted with eg. NTFS (windows), HFS (mac), MSDOS (older / smaller usb sticks).

For a CD…
mount –t cd9660 /dev/disk1s2 /drive2

For a DVD…
mount –t udf /dev/disk1s2 /drive2
if this doesn’t work then try the cd9660 switch as if it was a CD.

Mounting a Samba network share does not seem to work in Snow Leopard 10.6.4.

At this point you should be able to do the things you wanted to do (cp files etc.). Note, HFS drives are mounted with WRITE ACCESS by default even if the root is read-only (use -r switch if you want to mount read-only). NTFS drives are mounted as read-only and there is no native support for write access.

We can unmount the device using this command (note spelling of “umount”):
umount /dev/disk1s2

When you are finished, use the reboot or shutdown command. DO NOT use the exit command which will continue booting into GUI.

NOTE: Please do not reply to this thread to troubleshoot your problems. I'm not an expert, I just taught myself what I needed to know to get the job done. Single User Mode has an excellent man command (short for manual). This is the best way to teach yourself. Also look in the /sbin folder for variations of the mount command for other file systems.

If you have something useful to add, for example you know how to get SMB shares to mount, then please contribute.

ALC889A setup for 10.6.4 the easy way

13 September 2010 - 06:23 PM

Firstly, thank you for all the hard work and information in the ALC889A sticky. I eventually got my sound working but it was only after several failed attempts at trying to interpret the overwhelming amount of information in that post.

So here is the simplified version for beginners. These steps have all been distilled solely from the one sticky page above.

You must be on OS X version 10.6.4. I used iATKOS S3 v2 (10.6.3) with vanilla (no audio) options then upgraded to 10.6.4.

Download Kext Helper b7. Run the program so it's ready to go.

Download the file ALC889a_LayoutID_885.zip It is in the section "10.6.2 and higher". Yes it's hard to find. Open the zip and you'll see some folders.

Grab the file "HDAEnabler_for Snow/HDAEnabler_885/HDAEnabler.kext" and drag it to Kext Helper.

Next select the folder that matches your system depending on if you have 5 ports or 6 ports. I have 6 ports so I selected "4outs2ins HDA headphone/LegacyHDA.kext" and dragged that to Kext Helper.

So now you have the two Kexts ready to go just enter your admin password and click EASY INSTALL

That's it. Once again, thanks to all those who put so much work into this just to make it easy for beginners like myself.

EDIT: Motherboard was a GA-EP45-DS3R
© 2017 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy