Reply to topic  [ 13 posts ] 
Mac system question 
Author Message
Official forum cat lady
User avatar

Joined: Fri Apr 24, 2009 8:04 am
Posts: 11039
Location: London
Reply with quote
Our work image is pretty locked down so one of my colleagues has partitioned the mac in to 2 with one being the work image and the 2nd being a standard OS install. How ever when he boots from the work one the 2nd is still visible. he can unmount the drive but wants to know if there is a way to do it permanently?

They're being far too geeky if you ask me. I'm going to wipe mine and put the non work image on it because it's so slow!

Carolyn

_________________
Still the official cheeky one ;)

jonbwfc wrote:
Caz is correct though


Tue May 31, 2011 10:57 am
Profile
Moderator

Joined: Thu Apr 23, 2009 6:13 pm
Posts: 7262
Location: Here, but not all there.
Reply with quote
I have, finally, moved this to the Mac Software forum. I'm not sure it fitted properly into PC software or the Open Source forums. :oops:

_________________
My Flickr | Snaptophobic Bloggage
Heather Kay: modelling details that matter.
"Let my windows be open to receive new ideas but let me also be strong enough not to be blown away by them." - Mahatma Gandhi.


Tue May 31, 2011 11:07 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Jun 18, 2009 5:10 pm
Posts: 5836
Reply with quote
Assuming it's anything like what I know, is there not a partition manager where you can stop the partition being mounted in the first place?

_________________
Jim

Image


Tue May 31, 2011 11:20 am
Profile
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 12:43 pm
Posts: 1798
Location: Manchester
Reply with quote
You could always create an alias to the one you want visible in the Finder, then use Finder preferences to disable showing hard drives on both the desktop and in the side bar.You can then simply double-click the alias to open that volume.

I'm pretty sure you can also write an AppleScript to unmount that volume, which if saved as a Run-only Application in Script Editor and added as a log-in item, would automatically unmount that drive when you startup. I'll have to have a dig in my old scripts folder sometime... watch this space!
:P

_________________
* Steve *

* Witty statement goes here *


Last edited by steve74 on Tue May 31, 2011 11:53 am, edited 1 time in total.



Tue May 31, 2011 11:43 am
Profile
Spends far too much time on here
User avatar

Joined: Fri Apr 24, 2009 8:38 am
Posts: 2967
Location: Dorchester, Dorset
Reply with quote
You could certainly deny access to a different user, but as to not having it mount, probably some command line trickery, but I wouldn't know where to start on that!

_________________
I've finally invented something that works!

A Mac User.


Tue May 31, 2011 11:44 am
Profile
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 12:43 pm
Posts: 1798
Location: Manchester
Reply with quote
OK, think this should work. Open Script Editor and copy and paste this into a new window...

Code:
tell application "Finder"
   eject "Name-of-volume"
end tell

Obviously, replace Name-of-volume with the actual volume name as shown in the Finder - keep the quotes around it though.

Now, File > Save as - select the following options...

Image

And save it somewhere that it's not going to be deleted (Applications or Documents folder?), then add it as a Login Item in System Preferences > Accounts > Login Items

It may appear briefly when the Finder loads in, but should be unmounted as soon as the script runs.Unless there are a lot of login items, that should be almost immediately.

_________________
* Steve *

* Witty statement goes here *


Tue May 31, 2011 11:51 am
Profile
Spends far too much time on here
User avatar

Joined: Fri Apr 24, 2009 8:38 am
Posts: 2967
Location: Dorchester, Dorset
Reply with quote
That's a nice solution.

_________________
I've finally invented something that works!

A Mac User.


Tue May 31, 2011 4:18 pm
Profile
Official forum cat lady
User avatar

Joined: Fri Apr 24, 2009 8:04 am
Posts: 11039
Location: London
Reply with quote
HeatherKay wrote:
I have, finally, moved this to the Mac Software forum. I'm not sure it fitted properly into PC software or the Open Source forums. :oops:


I have never been in Open Source so don't know how that happened but thanks anyway.

Thanks all for your replies I have passed it on.

Carolyn

_________________
Still the official cheeky one ;)

jonbwfc wrote:
Caz is correct though


Tue May 31, 2011 5:03 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
The more correct way to do this would be to do the following (tested on 10.6.7):
Open up Disk Utility
Select the volume on the left and get info
Note the disk identifier (should be something like disk1s1)
Open Terminal and do the following:
Code:
sudo nano /etc/fstab

Enter the following into the text editor:
Code:
/dev/<disk_identifier>    /Volumes/<volume_name>   auto    noauto,rw       0 0

ctrl+o will save the file, ctrl+x will exit.
Reboot and you're done! The only odd thing is that launching Disk Utility will automount the volume again...


Tue May 31, 2011 7:26 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Jun 18, 2009 5:10 pm
Posts: 5836
Reply with quote
forquare1 wrote:
The most correct way to do this would be to do the following (tested on 10.6.7):

Code:
sudo nano /etc/fstab

That's pretty much what I was thinking.

*Nix ubiquity rocks! 8-)

_________________
Jim

Image


Tue May 31, 2011 7:43 pm
Profile
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
The bigger question is, if the work image is locked down so much, is it a dismissable offence to re-partition the drive and install a second operating system?

He should be careful and check that, before doing the install!

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Wed Jun 01, 2011 4:26 am
Profile ICQ
Official forum cat lady
User avatar

Joined: Fri Apr 24, 2009 8:04 am
Posts: 11039
Location: London
Reply with quote
big_D wrote:
The bigger question is, if the work image is locked down so much, is it a dismissable offence to re-partition the drive and install a second operating system?

He should be careful and check that, before doing the install!


We're IT Dave, we don't have to use the images as long as we can do our jobs.

_________________
Still the official cheeky one ;)

jonbwfc wrote:
Caz is correct though


Wed Jun 15, 2011 8:26 am
Profile
Doesn't have much of a life
User avatar

Joined: Fri Apr 24, 2009 12:43 pm
Posts: 1798
Location: Manchester
Reply with quote
I also use a variation of my earlier AppleScript to mount multiple volumes on startup - I found with more than one or two volumes added as log-in items, they would sometimes fail to mount, or hang the Finder while it was trying to mount them from different sources. With this AppleScript, you can add as many volumes as you want, all with different login names and passwords. The key is to use static IP addresses on your network, otherwise the script doesn't know where the volumes are located. But, assuming static IP addresses are used, fire up Script Editor and use a script in this format...

Code:
tell application "Finder"
   mount volume "afp://username:password@192.168.1.2/Name-of-volume"
   mount volume "afp://username:password@192.168.1.15/Name-of-volume"
   mount volume "afp://username:password@192.168.1.62/Name-of-volume"
end tell


You can repeat this as many times as you like. Replace username with the login name you use to connect to that server, replace password with the password associated with your login name, replace 192.168.1.2 with the real IP address of the Mac/PC and finally replace Name-of-volume with the actual title of the volume as it appears when mounted in your Finder.

So, for example, if I connect to a Mac's volume called Big Disk at an IP address on the network of 192.168.1.34 using a username of Joe Bloggs and a password of Anything, then the script would be...

Code:
tell application "Finder"
   mount volume "afp://Joe Bloggs:Anything@192.168.1.34/Big Disk"
end tell


As before, once compiled, save the script as an Application format, using the "Run only" option, save it somewhere safe where it's not going to get trashed and add this script app to the Login Items in System Preferences > Accounts. It works much better than having individual servers added as Login Items, especially if you have, say 5 or 6 network volumes to mount on a daily basis.

To connect to a Windows PC using this type of script, I think you can replace afp with smb (although I've not tried this out yet!). So, that would be...

Code:
tell application "Finder"
   mount volume "smb://Joe Bloggs:Anything@192.168.1.34/Big Disk"
end tell

_________________
* Steve *

* Witty statement goes here *


Wed Jun 15, 2011 9:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.