image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old November 5th, 2003, 06:41 PM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
TheCrunge11 is on a distinguished road
Panther puts an alias to HD in /Volumes, why?

Does anyone have any idea why Panther is putting an alias to the hard drive in /Volumes? Here's the thing, in Jaguar, the /Volumes folder only contained volumes other than the boot drive. Now, Panther tosses an alias for the boot drive in there.

If I drag the hard drive onto a terminal window, it shows /
If I drag the alias from /Volumes to the terminal, it shows /Volumes/Macintosh\ HD.

So, for some reason, the ALIAS to the root of the boot drive shows up as an additional volume, instead of just /

Without getting too deep into why this is a problem for me, I need that alias to not be there because it's name is the same name as other drives that I must connect periodically. This makes the other drives show up as "Macintosh HD 1", thus rendering some of my scripts that I need useless
(and before anyone says "just change the name of the drive", I can't, they all need to be the same name for setting up loaner computers for people, I have scripts that move their home folder from one machine to another and all the machines are cloned to be exactly alike, so changing the name is out of the question).

In Jaguar, this wasn't a problem as the system didn't put the alias in the /Volumes folder.

If I delete the alias, all is fine, until a restart. Something during the boot process (not the login process) is putting that damn alias in there (and If I open /Volumes then change the name of the boot drive on the desktop, it changes the name of the alias).

So, my question is, does anybody know how to kill whatever is making that alias?

Is this clear?

Thanks for any help.
Reply With Quote
  #2  
Old November 5th, 2003, 07:23 PM
Arden's Avatar
Don't drink and derive.
 
Join Date: Dec 2002
Location: San Francisco
Posts: 7,743
Thanks: 0
Thanked 0 Times in 0 Posts
Arden is on a distinguished road
Are you proficient with Applescript? If so, write one that deletes that alias and put the script in your login items. If you aren't proficient with it, I'm sure someone would be happy to write the script for you (hell, I'll do it).
__________________
System:
2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.4
1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11
iPhone, 4 GB, OS X 2.0.2
Reply With Quote
  #3  
Old November 5th, 2003, 07:32 PM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
TheCrunge11 is on a distinguished road
The thing is with a login script is that the alias to the drive is created before login, so any subsequent firewire drive would still have the "1" after it (assuming its connected during the boot process).
Reply With Quote
  #4  
Old November 5th, 2003, 08:04 PM
Arden's Avatar
Don't drink and derive.
 
Join Date: Dec 2002
Location: San Francisco
Posts: 7,743
Thanks: 0
Thanked 0 Times in 0 Posts
Arden is on a distinguished road
Well, why not make the script rename the drive then?
__________________
System:
2.5 GHz MacBook Pro Core 2 Duo, 4 GB RAM, 200 GB hard drive, runs 10.5.4
1.6 GHz iMac G5, 1.5 GB RAM, 250 GB hard drive, runs 10.4.11
iPhone, 4 GB, OS X 2.0.2
Reply With Quote
  #5  
Old November 5th, 2003, 08:17 PM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
TheCrunge11 is on a distinguished road
I hear the logic there, but the thing is, even if I rename the drive, the other firewire drive will be mounted before the rename, thus it will have the "1" tagged after it. Besides, I can't rename the drive because that negates alot of management tasks that I currently have in place. You would really have to see it in action, but all the computers' hard drives need to have the same name because they are all imaged from a master, and from one day to another, any computer could be a loaner or an assigned unit. I am juggling home folders around (and no, I can't have a network home folder for the user because I'm dealing with laptops).
This has been working fine for months, until now this pesky alias.

The ideal situation would be to have my scripts get the drive name, no matter what it is. So my script to copy home folders wouldnt have to be absolute, it could be told to copy from the first non-boot disk, no matter what the name is. Unfortunately, I am a novice in scripting, and I'm not sure I'm comfortable making the script.

So if anyone can point me how to tell a shell script to do this:

ditto -rsrc /Volumes/firstnonbootdrive/Users/homefolder /Macintosh\ HD /Users/homefolder

where "firstnonbootdrive" can be named anything and the script will know...

Sigh

Thanks for help!
Reply With Quote
Reply

Thread Tools

Posting 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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 11:46 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.