Mount external hard drive on boot

I have a Mac mini run on SL, I want to set it up as a samba server with a external hard drive which formatted in NFS format.
I tried to write a plist in LaunchDaemons to call a script to mount the hard drive, but it does not work.
Here is my plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.kg.mount</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/System/Library/script/com.kg.mount</string>
</array>
</dict>
</plist>
It get loaded at the start, if I user command 'launchctl list', I can see the service is loaded, but the disk is not mounted. If I run the plist manually after boot, the disk will be mounted.
Does somebody know how to mount a disk at boot time?
Thanks

The OS automatically mounts storage devices when they come online. If that doesn't happen, you need to fix the problem.
First back up the disk, if you haven't already done that.
Get rid of the script and the launchd item. Unload it first -- I assume you know how to do that.
Launch Disk Utility and select the "EX" volume, then run "Repair Disk." If any errors are reported, repeat until there are no more.
If the disk is now mounted, unmount it. Check the /Volumes directory for any empty subdirectories named "EX", "EX-1", or some such. If present, delete them.
Unplug the drive, then plug it in again. If it still doesn't mount, plug it into a different port (if it's USB.) If it still doesn't mount, try it on a different Mac.

Similar Messages

  • Help with using external hard drive to boot windows on PC

    Hi,
    I'm not sure if this is in the right place, so apologies in advance if not. I've looked around the internet for a good while now, and I haven't found anyone in my exact position.
    My PC's hard drive (running Windows 7) recently died; long story short, I am attempting to reinstall windows. The only other computer I have is this MacBook Pro, on which I have an .iso file of Windows 7. So I want to use my external hard drive (WD 500GB "MyBook") as a boot device so that I can install Windows onto my new internal hard drive.
    The problem I am having is that, well, nothing seems to be working. Every time I try to load the .iso onto my external hard drive and boot my PC with it, either a blank screen appears or it says "missing operating system".
    I have made sure that the BIOS is running the external hard drive as its boot priority.
    I have tried using Disk Utility to partition the external drive, then using 'Restore' to load the .iso onto the partition, to no avail.
    I have tried simply dropping the extracted .iso files onto the hard drive, this doesn't work.
    I have also tried changing the file system of the external hard drive using the 'Erase' feature (NTFS-3G (using an addon), FAT32, exFAT, all of the others), but I notice that whenever I use Restore after doing this, the file system seems to return to Mac OS Extended, which might be why it isn't booting up on my PC. Is there any way I can succesfully partition the external hard drive in a format that will allow Windows 7 to boot (such as NTFS?), and is Disk Utility even the right program to do this?
    If you want any more information from me, please let me know and I'll do my best to provide it - I'm not the most advanced mac user in the world, but I've spent days trying to fix this problem and nothing, no combination of anything, seems to work at all. So any help will be greatly appreciated!
    Thanks

    Here is a quick suggestion for you:
    Download Virtual Box (free PC Emulator for Mac) and install Windows 7 on your Mac (don't worry about activating it yet, as you don't need to keep it more than a few hours).  You can tell Virtual Box to use the ISO file as the DVD drive for your virtual Windows computer, so no need to burn a disk.
    Search Google for creating a bootable USB installer for Windows 7.  I found a link that gave good instructions on how to do this using DiskPart.
    Follow the instructions to make the bootable USB stick for installing Windows 7 using your virtual machine you created above.
    Use the USB stick to install Windows on your new PC.
    Remove the virtual Windows machine from your Mac.
    Remove Virtual Box from your Mac.
    I found a set of instructions and built an installable USB stick last night that worked great for installing Windows 7 Pro (64 bit) onto my older ThinkPad I had sitting at home.  The USB installer also installs in about half the time as a DVD install.  The only reason I have you create the virtual Windows PC is that all of the instructions for makeing the Windows install USB stick are written assuming that you already have access to a running Windows PC.  By doing this install, you have up to 3 days before you would need to activate it and you can build the installer USB stick and remove teh virtual computer long before that.

  • Mount external Hard drive in Single user mode

    Do any know how to mount an external hard drive in single user mode:
    I've issue the following command:
    /sbin/mount -uw /
    mkdir /Volumes/ex1
    /sbin/mount_hfs /dev/disk2s3 /Volumes/ex1
    (I've checked my external hard drive using df -k showing the device is disk2s3)
    Result:
    Permission denied

    I seem to remember the "Permission denied" or "Device busy" coming up in some situations but not others when attempting to mount drives at this early stage in "single user" mode...
    It might be worth trying to run:<pre>sh /etc/rc</pre>This is actually present among the "Tiger" messages in "Single User" mode, as the procedure to continue booting but remaining in "single user" mode. Indeed, it seems to start up the usual "services" like starting disk arbitration (so you can eg. use 'diskutil' to repair permissions, or loading "NetInfo" so you don't need to work in '-raw' mode - in the past, people had posted complicated procedures for doing these things manually.
    After running the 'rc' script, try creating your mount point and and running 'mount_hfs' as usual...

  • Proper way of mounting external hard drive - fstab rules?

    I have an external hard drive with all my music on it, and I want MPD to play this music. Now I was wondering how best to mount my external, such that MPD can actually access the music.
    I was told to create an fstab entry with the UUID of my external to have it being mounted to a fixed spot. But this only works during boot up, correct?
    What should I do, if I plug in the external after boot up? Is there a way to have it automounted to the same fixed spot as defined in fstab (maybe even using fstab)?

    As iBertus mentioned, you can use the automount features of different desktops. XFCE includes the Thunar file manager which can also be used in other lightweight desktops.
    If on the command line, pmount will let you mount the drive as a normal user, and without any fstab entries. This command will mount USB device sdb1  to /media/Stalafin.
    pmount /dev/sdb1 Stalafin]
    The cool thing about pmount is that if the drive/partition is encrypted with LUKS, you can throw other options at it and it will decrypt and mount at the same time.

  • Mount external hard drive

    My Mac crashed and when I restarted it I can only see 1 partion of my external hard drive.
    I have tried going to disk utility to load the partion but it wont load
    Please can anyone advise how to mount an unmounted drive?
    This is what is in the log
    Starting Restore…
    Starting Restore…
    An error (19) occurred while copying.
    Mount of “Mac” succeeded
    Mount of “Mac” succeeded
    Starting Restore…
    Starting Restore…
    An error (2) occurred while copying.
    Thanks for your help

    If this is not the drive you are booting from, you should be able to run Disk Utility's "Repair" function without booting from the CD. Otherwise, boot from the Installer CD, but do not install. Instead, choose Disk Utility from the Installer menu.
    Since you booted from another Drive or the Installer CD, when you select the drive, you will be able to use the "Repair" button. Run it repeatedly until there is no change between successive passes, then (if Mac OS X is present on it) run "Repair Permissions" once. Report any unresolved errors from "Repair" here. "Repair Permissions" chatters on forever about nothing, and its messages can generally be disregarded.
    Error (2) is a Bus error. It is a very serious error, which should have crashed your Mac. Error (-2) is an invalid queue element, which can be caused by directory damage.
    Error (19) can be caused by a damaged System Folder. Error (-19) is a color-manager error.

  • Mounting external hard drive at start up

    Hello, I have a G5 and I recently purchased an ethernet external hard drive. I also have a PC and two powerbooks. Since I have so many computers and so many different users I want to be able to centralize my music collection and also all the files like pictures and movies. The problem is that the other users at my house hate mounting the external hard drive each time they turn their computer on, or bring it back from sleep mode. In windows I have the HD mapped and each time the computer starts the drive is mounted automatically. I would like to do the same thing on OS X. As soon as I start any of the mac computers and they finish booting up, I want to be able to see the external HD mounted without having to click any buttons or type in any passwords. Anybody knows how to do this? Thank you so much for your help
    G5   Mac OS X (10.4.5)  

    sounds like you should set up a file server with OSX server software...

  • Can I make an external Hard Drive my boot drive

    My internal hard drive is about to die, it is making strange grunging noises and the computer is taking up to 30 minutes to boot up. The internal disk is the original 10GB disk with 9.7GB on it.
    I constantly get boot disk nearly full warnings. So I bought a Western Digital My Book 2, Home Edition 500GB Firewire Drive. I connected it up and it appeared on my desktop. Being a bit of a div, I tried to drag my old hard disk onto the new one but that failed (obviously). I now need to get everything off my old hard disk and onto my new firewire disk and then make sure that the computer boots up from that one. How can I achieve this, should I install the OS (OS X 10.4.11) on the new disk and then copy over the files, and applications? Or would it be better to "find a way of cloning my drive onto the new disk.
    More questions...do I need to make partitions on the new disk (I don't know what these are I'm afraid)
    When I have set up the new drive as a boot disk, can I just unplug the old internel disk?
    Grateful thanks to anyone who can assist thiscomputer illiterate technophobe.
    Allen

    Is it dangerous to use an external HD to boot from? The guy at Circuit City told me it was.
    One danger of using an external hard drive as a boot drive, is the connection is not as reliable as an internal hard drive. The other is the mistaken assumption that just because it is separate, or not part of the computer, that it is safe. The only true safety comes in numbers. You should always backup your data*:
    http://www.macmaps.com/backup.html
    2.5" hard drives are a little less reliable than 3.5" hard drives because of the smaller parts involved. Mac Minis have 2.5" hard drives, whereas other desktop Macs have 3.5" hard drives. Whether the reliability of Firewire or USB over SATA or Parallel ATA on 2.5" is enough to offset this difference is hard to say. Having enough backups ensures you don't have to be surprised when you find out in your situation.
    - * Links to my pages may give me compensation.

  • External hard drive foils boot?

    So, I find my self saying this a lot recently, but this is one of the strangest things I've seen in a while.
    I have a 2010 MacMini that I just got refurbished - 8G RAM, 2.66, and I just replaced the HD to a 750 (the old one was failing). I have two external hard drives. Here is the weird thing. When I boot up, if both external HDs are connected and on, the computer takes forever to boot up and the mouse and keyboard will not function. The computer accepts no input. The minute I turn the smaller drive off - disconnect power - the computer behaves normally. If I boot the computer with only the bigger drive on - with that smaller drive off - my boot time is normal (remarkably fast, actually) and there are no input errors.
    I ran AHT and there are zero errors reported. So, I'm guessing it is not the I/O panel (thought to be thorough I should check the different USB ports, I guess). I'm guessing it's the drive doing something strange. But, what could it possible be doing? What interference could it possibly be sending back *in* to the computer?

    Yep, they're all connected via USB. They are all on different ports, no hubs. I'll try verbose mode later on. I didn't even think of that. Nice thought. If I looked at the boot logs, any idea what I might be looking for?
    I don't know if this helps, but the smaller drive is an old Lacie drive that was removed from its enclosure (notoriously failing Lacie power units and controllers). It was since put into a third-party enclosure of some quality (I can't remember the brand, but a good one). I can use it perfecly fine however before now I've never had it connected to a machine on start-up.

  • Can I install SuSE on an external hard drive and boot to that OS?

    Hi,
    I'd like to figure out and maybe even keep up with what a friend is doing with linux on a pc.
    Can I install SuSE 10.1 on an external Lacie hard drive and boot to that OS by holding down option during start-up?
    Thanks,
    Garrett

    Hi,
    I'm an OS X fan who was totally engrossed in the terminal a few years back but became side-tracked into structural and sculptural stuff instead of the computer.
    The Mac mini forum mentioned putting OS X on external hard drives to supe up the mini so it made me wonder about other Operating Systems.
    Now I'm mostly interested in being a little familiar with the SuSE OS because I heared the Chinese have adopted Linux; my impression is China and Europe are the cultural future and vanguard.
    U.S. is the only place on Earth using inches, farenheit, gallons, and pounds, for example. I'm anxious to use software that will come from Europe in the next year or two and China in the next four or five. Most American corps, except Apple, seem to have peaked, to me.
    I'm just curious as to what's out there. Anyplace not gone metric yet is SO yesterday. I'll feel way cool when I send my PC friend a screen shot of Linux on my Mac using the external Lacie hard drive instead of an internal partition.
    Garrett

  • Trouble mounting external hard drive

    Hello,
    I'm having a problem with my external hard drive (formatted hfs+). While the hd was connected to a computer running ubuntu, the computer crashed. Since then the drive is read-only on ubuntu and won't mount at all on mac os x 10.4.
    I've tried repairing the the drive with disc utility, and get:
    Invalid sibling link
    Volume check failed.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    1 volume could not be repaired because of an error
    I've also tried running fsck_hfs in the terminal, with no luck. when I type:
    fsck_hfs -fy /dev/rdisk1s2
    I end up with:
    ** /dev/rdisk1s2
    ** Checking HFS Plus volume.
    ** Checking Extents Overflow file.
    ** Checking Catalog file.
    Invalid sibling link
    (4, 16531)
    ** Volume check failed.
    I also tried -r but it didn't work either.
    So before I back up and reformat the drive, does anyone have any suggestions?
    Thanks.

    Appears you need a stronger utility than Disk Utility. Sounds like you have directory damage.
    The following are a few forum favorites. You must use the versions that are compatible w/your OS system & keep the utilities updated to avoid damaging/harming/trashing your system.
    DiskWarrior
    Highly recommended for *directory damage* repairs.
    TechTool Pro
    Multi-functional utility.
    Drive Genius Multi-functional utility.
    You will need to make your own decision on which to purchase. Read up on them on their websites because each does something a little different.

  • Can I mount external hard drive to Time Capsule and use it as external storage?

    I have a 500GB external hard drive that I'd like to use on the Time Capsule as a hard drive to store mp3 and mp4 files.  Can I attach it to the Time Capsule and use it like this?  Or does it just give an additional 500GB worth of back ups from my iMac?

    Can I attach it to the Time Capsule and use it like this?
    Yes, if the drive has been formatted in Mac OS Extended (Journaled)...preferable....or FAT32. Access to the files will somewhat slower than if you had the drive attached directly to your computer.
    Have you given some thought as to how you will keep this drive backed up?
    Time Machine will not be able to back up the drive that is attached to the Time Capsule's USB port.
    But, it would be able to back up the drive if you connected it directly to your Mac and the drive was formatted in Mac OS Extended (Journaled).

  • Not mounting external hard drives

    Hi all,
    Amoungst a million other problems with my MacBook at the moment, as well as the infamous turning itself off problem, my MacBook Fails to recognise either my Iomega 100GB portable hard disk via USB or my LaCie 160GB external hard disk via firewire or USB. My iomega drive worked when I first got my cursed MacBook, the LaCie Drive is brand new and now mounts when i startup with the drive connected. Other peripherals work via my USB ports however I also have a problem with USB keys.
    System profiler recognises both devices, however neither mount onto my desktop. I tried to reformat using disk utilities however the drives were not seen by the program. I therefore reformatted the iomega portable drive from FAT32 to Mac OS extended using a G4 iBook, and even after that it failed to mount.
    Hope you guys can help.
    Many thanks,
    A frustrated MacLover

    I've noticed the Firewire bus to be less stable under Intel chips, but I'm not positive. It may be that my devices are just getting tired.
    Anyhow... troubleshooting (when was the last time you cleared the PRAM?)
    1. Turn off your MacBook (not restart, power off)
    2. Turn it back on, wait for it to fully startup
    3. With the power connected and the drive turned on, connect the Firewire drive
    If it still doesn't work, can you try a different Firewire cable? I'm guessing the cable probably works fine on your iBok G4, right? If it still doesn't work, it would seem that the Firewire port is not working properly. You can also try booting up with your install DVD and see if Disk Utility can read your Firewire drive. If it does then you might need to reinstall OS X.
    USB portable drive
    Repeat steps 1 and 2 above
    3. Plug your MacBook into AC power (my USB drive will not mount unless I plug into AC power)
    4. Connect your USB drive
    Again, I'm guessing this drive too works fine with your iBook?
    You could try accessing the drive while booting up from the install DVD too. This should rule out whether it is a software or hardware problem.
    It's a hardware problem if you can't access either the Firewire or USB drive (on AC power) while booting up from your install DVD. It's a software problem if you can.
    Good luck
    Greg

  • Can't mount external Hard drive and Can't change the ownership and permiss.

    Hello everyone, got a problem and maybe someone here will know. Apple care can't help because this is due to an external piece. I have a hard drive external. I partitioned it into two hard drives. Long ago, I opened the information window for one of my partitioned drives. And changed the ownership and permission to "no access". I do this all the time to keep my files from being read if its not the administrator (me). Just recently I plugged in my hard drive (firewire and USB). Only one drive mounts on the desk top. I cannot see my other partitioned hard drive and I can' access it to change the ownership and permission with "apple key and I".. I can see a trace of the two partitioned hard drives when I use disc utility. But again it won't let me change the ownership so I can mount this again. How do I access my harddrive without refomatting? I have tried to mount this with both of my apple laptops..no luck yet. Please help, anyone.

    Hi, Donnie. Welcome to the Discussions.
    What part of "No Access" was unclear?
    "No Access" means no access for anyone.
    To fix this:
    1. Launch Terminal, which resides in the Macintosh HD > Applications > Utilities folder.
    2. At the Terminal prompt, type the following command:
    sudo chmod a+rwx "/Volumes/partition_name"
    where: partition_name is the name of the affected partition.
    3. Press Return.
    4. Type your Admin password when prompted, then press Return.
    5. At the Terminal prompt, type exit and press Return.
    6. Quit (Command-Q) Terminal.
    7. Relaunch Finder: Press and hold the Option key, click and hold mouse button 1 on the Finder icon in the Dock, select "Relaunch" from the Finder icon's contextual menu.
    You should then see the volume, or be able to use Disk Utility to Unmount it, then Mount it and see it.
    Reset the permissions for Group and Other on the partition as desired. Do not change the permissions for Owner.
    If you want a volume / partition unmounted at startup, see:
    • this tip Mac OS X Hints, or...
    • this tip on the OSX86 Project forums.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Trouble mounting external hard drives to my Macbook after restoring it to factory settings. Solutions??

    I just restored my Macbook Version 10.4.11 to factory settings because I heard that it is good to do that to clean it up. I had saved everything on a WD My Book 1110 Media, but now when I try to retrieve the stuff on there, the WD won't even mount.
    The whole reason I was needing to make room on my macbook is the computer was freezing up and acting really slowly. I'm about to do a recording project using Protools and needed the macbook to be fast. I thought restoring it would help. Instead, it now won't mount my Glyph, which I need to run protools.
    Then was when I tried to mount the WD hard drive and it wouldn't mount either!!!! I'm guessing the problem is with the mac, since both hard drives would not mount. The glyph is connected with a firewire, and the WD is connect by USB. I'm clueless as to what to do. I definitely need to recover the stuff on the WD hard drive.
    One other thing: the drives do show up in Disk Utility, but the mount button is gray so I can't do that. Here is the info:
    Name :           WD My Book 1110 Media
              Type :           Disk
              Disk Identifier :           disk1
              Media Name :           WD My Book 1110 Media
              Media Type :           Generic
              Connection Bus :           USB
              Connection Type :           External
              USB Serial Number :           574D41563530363834343732
              Partition Type :           Apple_partition_scheme
              Writable :           Yes
              Ejectable :           Yes
              Mac OS 9 Drivers Installed :           No
              Location :           External
              Total Capacity :           465.1 GB (499,405,291,520 Bytes)
              S.M.A.R.T. Status :           Not Supported
              Disk Number :           1
              Partition Number :           0
    Do I need to install Mac OS 9 Driver? If so, how can I do that with out losing any data from my WD hard drive.
    I'm clueless. Any help would be much appreciated.

    The OS 9 Driver would only be applicable if you were to use OS X
    and OS 9 from the external drive; it is not necessary for OS 9 files
    to be stored on an external drive, only if you were to use Classic
    or OS 9 on there.
    So it would be unable to host an OS 9.2.2 system for Classic or
    any applications that would require read-write on external HDD.
    {What of the WD HDD's driver update, in link? Do Not update
    Western Digitals 'firmware' as it also is available, & wipes HD.}
    The linked driver download, for the WD drive itself, may (or not) be
    installable without harming data on the drive. I read where that driver
    can support back to OS X Tiger 10.4.11, so it would support Tiger final.
    Do you have an original source for the Glyph & Pro-
    Tools, outside of the saved content of the WD HDD?
    Another idea, could be the enclosure of the WD may have failed while the drive inside is OK. Would not be the first time, so that may be something to consider. If you get another enclosure, be sure if there are any jumper changes for WD drive to be compatible, they match. You may be able to get one of those cables to use instead of the enclosure, that allows the external drive itself to run; they usually include a power adapter, but the WD may not have had an external. However the cable set to run a bare drive often includes one.
    Hopefully you can restore access to the external drive
    & then find a better backup scheme, in duplicate.
    Good luck & happy computing!

  • Why do I get Error Code 35 when attempting to mount external hard drive?

    When I use Finder to Go, Servers, Connect to Server I am prompted to enter password. After I do that I hit Connect again which connects to the Server (Airport Extreme) and I see the external drive highlighted but then gives me Error Code 35. I had it working earlier but something is now obviously messed up. I have rebooted, restarted, hard restarted Airport, disconnected and reconnected hard drive. Help!!!! Does anyone know what Error Code 35 means on OS 10.4.11?

    Error code -35 means "No such volume; volume not found". Not terribly helpful.
    You have already tried everything I would have suggested. Maybe someone else will have some suggestions?

Maybe you are looking for