Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Mac Desktops > How do I set up a volume to unmount at startup???

How do I set up a volume to unmount at startup???
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Seattle
Status: Offline
Reply With Quote
Aug 15, 2004, 11:41 PM
 
I recently bought a Rev.B dual 2.0 G5 and I found that Tech Tool Pro does not startup from the disk (Version 4.0.2). So I partitoned my external LaCie drive with a bare bones 10.3.5 with Tech Tool Pro and Disk Warrior on it to do repairs from. I want to be able to have that vlume unmount at startup when not using it. Does annyone know how to do this?
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Aug 16, 2004, 12:50 AM
 
Try this. Open a Terminal window, the Terminal application is in /Applications/Utilities/

type:
crontab -e (this opens the cron schedule for editing)
i (no Return key, this command puts you in Insert mode)
@reboot cd /Volumes ; umount -f volumename

Substitute the volume's real name for volumename. Remember to be case sensitive if this is under Panther or Tiger. Then type:
Escape key (this exits Insert mode)
:wq (saves the edited crontab and exits the editor)

You can quit Terminal now.

It should unmount the volume on each startup or reboot. Use at your own risk, it will forcibly unmount the volume even if something is writing to it at the time. If something is, you could end up with some disk damage to the volume in question. Check it after a few tries, see if it has any damage.

Edited for clarity
(Last edited by reader50; Aug 20, 2004 at 06:10 PM. )
     
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Seattle
Status: Offline
Reply With Quote
Aug 22, 2004, 04:37 PM
 
I wanted to be sure how to get the exact volume name for the drive. Also, is there a way to undo this comand if it does not work the way I want it to?
     
Mac Enthusiast
Join Date: Mar 2004
Status: Offline
Reply With Quote
Aug 22, 2004, 11:26 PM
 
to undo it, simply edit the crontab again and remove the line you added
     
Administrator
Join Date: May 2000
Location: California
Status: Offline
Reply With Quote
Aug 23, 2004, 01:44 AM
 
The Finder already displays the volume's real name. Select a volume's name (not the icon, the name below the volume's icon) in the Finder, then choose Copy from the Edit menu.

To remove the crontab, you follow much the same steps.

Open a Terminal window.

type:
crontab -e (this opens the cron schedule for editing)
i (no Return key, this command puts you in Insert mode)

(now move to the end of the line and Delete it all away)

Then type:
Escape key (this exits Insert mode)
:wq (saves the edited crontab and exits the editor)

You can quit Terminal now.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:04 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2