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 > Software - Troubleshooting and Discussion > Mac OS X > Getting a Partition NOT to Mount at Startup

Getting a Partition NOT to Mount at Startup
Thread Tools
Junior Member
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 5, 2004, 07:46 PM
 
Is there a method of getting a partition NOT to mount at startup?
Thanks.
     
Mac Elite
Join Date: Jun 2004
Location: Edmonton, AB
Status: Offline
Reply With Quote
Dec 5, 2004, 11:05 PM
 
You go to system preferences and choose a different boot volume or I think you can hold option at startup
     
Moderator
Join Date: Sep 2001
Location: Arizona
Status: Offline
Reply With Quote
Dec 5, 2004, 11:21 PM
 
His question was about volume mounting, not selecting the boot device.
I like chicken
I like liver
Meow Mix, Meow Mix
Please de-liv-er
     
Junior Member
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 6, 2004, 06:33 AM
 
True.
     
Mac Elite
Join Date: Jun 2000
Location: If I tellz ya, then I gotsta killz ya !
Status: Offline
Reply With Quote
Dec 6, 2004, 10:57 AM
 
Originally posted by latrapeze:
Is there a method of getting a partition NOT to mount at startup?
Thanks.
In Panther......

Disk Utility >> highlight the partition >> select "unmount" from the toolbar >> whalah
to remount at any time, choose "mount"
Signatures are ugly. Bitchy women are ugly......YOU do the math :)
     
Junior Member
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 6, 2004, 11:19 AM
 
Yes, but can you get this to take place at start-up automatically and then mount the disk manually through Disk Utility when needed?
Thanks.
Phil
     
Grizzled Veteran
Join Date: Mar 2000
Location: meow meow meow meow, meow meow meow meow, meow meow meow meow meow meow meow meo
Status: Offline
Reply With Quote
Dec 6, 2004, 11:23 AM
 
I have a lock on this thread and will beam it to the Mac OS X fourm, its not appropriate to the mac mod forum.

Engage!
sine -''-..-

now known as pillowcase

     
Mac Elite
Join Date: Jun 2004
Location: Edmonton, AB
Status: Offline
Reply With Quote
Dec 6, 2004, 11:52 AM
 
sorry I guess i didn't fully understand the question, now that it has been answered there is no need for me here.
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Dec 6, 2004, 02:26 PM
 
Originally posted by macaddict0001:
sorry I guess i didn't fully understand the question, now that it has been answered there is no need for me here.
It wasn't answered. Using Disk Utility only unmounts the drive one time, it'll be back the next time he restarts (no different than ejecting a drive by dragging it to the trash can). On a normal *nix box I imagine you'd have to edit the filesystem table at /etc/fstab, but I don't think that same rules apply here. Plug and play dominates... hah.

The best thing I can think of is an Applescript that runs upon login that "tells" the Finder to eject the particular volume.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Dec 6, 2004, 03:39 PM
 
Originally posted by [APi]TheMan:
The best thing I can think of is an Applescript that runs upon login that "tells" the Finder to eject the particular volume.
Haven't done it myself, but recall reading a discussion back in the early Jaguar days. The script approach worked, but with one hitch: If the user logging in wasn't an admin, the OS would ask for an admin password before allowing the volume to be unmounted. Two possible ways of working around that were 1] put a password in the script (insecure), and 2] edit the sudoers file to allow all users access to that one command (disktool -p).

Not sure how much of this still applies in Panther.
-HI-
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 6, 2004, 03:44 PM
 
Edit /etc/fstab. See the diskarbitrationd manpage - i think "noauto" in the flags will do it.
     
Senior User
Join Date: May 2002
Location: Austria
Status: Offline
Reply With Quote
Dec 6, 2004, 03:45 PM
 
You can do this with VolumeWorks from SubRosaSoft. It can hide partitions, so that they won't be mounted automatically. VolumeWorks is not free, however.
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Dec 6, 2004, 04:01 PM
 
The cleanest way is to unset the "automount" flag in the partition map. I know that you could do this with Norton back in the OS 9 (or rather, 7) days. Today you'll have to use pdisk in the terminal, and pdisk is not for the faint of heart. Try "pdisk -h" to get some quick documentation on how it works. Essentially, what you want is something like

sudo pdisk /dev/disk0 -setAutoMount 9 0

Where:

/dev/disk0 is the device name for the raw device. You can get this from Disk Utility by selecting the disk (not its partition) and getting info - add "/dev/" before the name do it looks like my example above. You can get it from "df" as well.

9 is the number of the partition, or rather of the slice. That you can also see in Disk Utility, if you select the partition, Get Info, and read the number at the bottom of the info screen (Partition Number).

0 is the flag, 0 for false or 1 for true.

Oh yeah, and BACK UP YOUR DATA before messing with pdisk. Really!
     
   
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 11:07 AM.
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