I'm having a problem with the Finder (OSX 10.6.7) when using the terminal/shell to mount network drives.
-First: the reasons I'm doing it this was and not with a "drag and drop the device into the LoginItems/StartupItems--These mounts must be present for every user and the OSX systems are on a domain, so the user are not added manually and may not exist for some time--so the mounts must be performed automatically every time a new user logs in, even for the first time. There are also too many shares to allow to clutter up a desktop.
I have mounted external Linux server drives (shared with Samba on the linux box) with no problems using:
cd /Volumes
mkdir NewDeviceShare
chmod -a# 0 NewDeviceShare
chmod 777 NewDeviceShare
mount_smbfs -o nobrowse "//user
assword@LinuxServerName/NewDevice" "/Volumes/NewDeviceShare"
This works well. Devices are mounted to /Volumes and appear in a terminal using the 'ls' command. The devices are also hidden from the desktop because of the 'nobrowse' argument. Using the finder to navigate to the /Volumes folder also shows the newly mounted drive as expected.
*However*, if the shared device is a Windows 7 device share (as opposed to a Linux device share), the device appears on the desktop, and shows in /Volumes with a terminal 'ls' command, but it does *not* appear in the finder when you navigate to the /Volumes folder.
Because we mount all our devices within the Volumes folder to avoid cluttering the desktop with many devices, this prohibits navigating to the shares.
Does anyone know what might be causing the Windows mount to not be visible in /Volumes when using the finder?
-First: the reasons I'm doing it this was and not with a "drag and drop the device into the LoginItems/StartupItems--These mounts must be present for every user and the OSX systems are on a domain, so the user are not added manually and may not exist for some time--so the mounts must be performed automatically every time a new user logs in, even for the first time. There are also too many shares to allow to clutter up a desktop.
I have mounted external Linux server drives (shared with Samba on the linux box) with no problems using:
cd /Volumes
mkdir NewDeviceShare
chmod -a# 0 NewDeviceShare
chmod 777 NewDeviceShare
mount_smbfs -o nobrowse "//user

This works well. Devices are mounted to /Volumes and appear in a terminal using the 'ls' command. The devices are also hidden from the desktop because of the 'nobrowse' argument. Using the finder to navigate to the /Volumes folder also shows the newly mounted drive as expected.
*However*, if the shared device is a Windows 7 device share (as opposed to a Linux device share), the device appears on the desktop, and shows in /Volumes with a terminal 'ls' command, but it does *not* appear in the finder when you navigate to the /Volumes folder.
Because we mount all our devices within the Volumes folder to avoid cluttering the desktop with many devices, this prohibits navigating to the shares.
Does anyone know what might be causing the Windows mount to not be visible in /Volumes when using the finder?