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 > macOS > Getting a Partition NOT to Mount at Startup

Getting a Partition NOT to Mount at Startup
Thread Tools
latrapeze
Junior Member
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 5, 2004, 09:46 PM
 
Is there a method of getting a partition NOT to mount at startup?
Thanks.
     
macaddict0001
Mac Elite
Join Date: Jun 2004
Location: Edmonton, AB
Status: Offline
Reply With Quote
Dec 6, 2004, 01:05 AM
 
You go to system preferences and choose a different boot volume or I think you can hold option at startup
     
Lateralus
Moderator Emeritus
Join Date: Sep 2001
Location: Arizona
Status: Offline
Reply With Quote
Dec 6, 2004, 01:21 AM
 
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
     
latrapeze  (op)
Junior Member
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 6, 2004, 08:33 AM
 
True.
     
bowwowman
Mac Elite
Join Date: Jun 2000
Location: If I tellz ya, then I gotsta killz ya !
Status: Offline
Reply With Quote
Dec 6, 2004, 12:57 PM
 
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"
Personally I find it hilarious that you have the hots for my gramma. Especially seeins how she is 3x your age, and makes your Brittney-Spears-wannabe 30-something wife look like a rag doll who went thru WWIII with a burning stick of dynamite up her a** :)
     
latrapeze  (op)
Junior Member
Join Date: Nov 2004
Status: Offline
Reply With Quote
Dec 6, 2004, 01:19 PM
 
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
     
sine -''-..-
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, 01:23 PM
 
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

     
macaddict0001
Mac Elite
Join Date: Jun 2004
Location: Edmonton, AB
Status: Offline
Reply With Quote
Dec 6, 2004, 01:52 PM
 
sorry I guess i didn't fully understand the question, now that it has been answered there is no need for me here.
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Dec 6, 2004, 04: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"

     
Hal Itosis
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Dec 6, 2004, 05: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-
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 6, 2004, 05:44 PM
 
Edit /etc/fstab. See the diskarbitrationd manpage - i think "noauto" in the flags will do it.
     
Tsilou B.
Senior User
Join Date: May 2002
Location: Austria
Status: Offline
Reply With Quote
Dec 6, 2004, 05: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, 06: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!
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 12:43 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,