terminal mount command
I’ve been trying to understand the mount command in Unix. If anyone can shed some light on it, please do post. This is what I have figured out. You can mount an afp volume using the command mount -t afp. But you first have to establish a share point for the mount to land. So what I do is go to /Volumes and do these steps:
mkdir /Volumes/sharepoint
mount -t afp afp://[username:password]@rhost[:port]/volume /Volumes/sharepoint
Here is what I get returned when I get a successful mount:
mount_afp: the mount flags are 0000 the altflags are 0020
I’m not sure what the mount flags are. I’ve been trying to find out, but haven’t found a good explanation yet.
This is good to know as scripting a volume to mount is easy after you get the system command down.
If you would like to post on my weblog, you are welcome to post. Comments are moderated at this time, since the bulk of the comments I get are spam.
June 28th, 2005 at 1:57 pm
I’m getting the same thing. It’s driving me nuts!!!! I’ve set up xgrid to process hundreds of mri scans of brains, and it was all working beautifully last week. Then I rebooted the machines for some upgrades and I can’t connect to my network file system through xgrid anymore! Arg! There’s clearly something I don’t understand going on here.
If I do something like:
mount_afp afp://username:password@myserver.uoregon.edu/mountpoint /Volumes/mountpoint
it gives me
mount_afp: the mount flags are 0000 the altflags are 0020
but it works! But it doesn’t work through xgrid due to user rights issues (xgrid runs as user “nobody”). I have a feeling something weird is going on on the server side, but I don’t understand what.