Mounting UNRSL Sun Disks on the Macintoshes

If you have an account on the UNRSL Sun System, it is easy to mount a Sun disk directly to any networked Macintosh in the University System. This allows you to keep all your files on Sun disks, where they will not fill up the limited Mac hard drives, and will get backed up to tape regularly.

From Mac OS X

It's kind of a pain to set up, but we've got two Macs in Seismo now that connect really easily to UNIX disks. The disks appear mounted on the MacOS X desktop just like any other network disk, transfers are very fast and reliable, it deals well with huge numbers of files, and all the Finder facilities work.

I'll give step-by-step instructions here, but I will probably forget a few steps. Also, for the UNIX server, I will tell you the commands I used for Sun Solaris. I don't know the equivalents for bornite's SGI IRIX.

  1. Assemble the following information:
    1. Users' login names, passwords, and UID numbers on the UNIX server.
    2. The principal ownership group name and GID on the server.
    3. Users' login names, passwords, and UID numbers on MacOS X.
    4. Server TCP name and IP address- e.g., bornite.mines.unr.edu (134.197.44.45).
    5. MacOS machine TCP name and IP address.
    6. Path to the UNIX server to the disk you want to mount.

  2. Configure the server to share a disk to the Mac via the NFS protocol.
    1. Become superuser on the server.
    2. Edit the /etc/dfs/dfstab file.
    3. Add a line to /etc/dfs/dfstab that is a share(1M) command. Example:
      share -F nfs -o root=rumble:quake:slip,rw=seismonet:seismoimac.seismo.unr.edu:ramble.seismo.unr.edu:rip.seismo.unr.edu /space
      
      This line from shake.seismo allows NFS access to the local disk mounted at /space. Root ownership access is granted to three specific machines; read-write user access is granted to all machines in the netgroup seismonet (defined in Seismo in rumble:/etc/netgroup and distributed by NIS), and also to the three Macs in the colon- separated list: seismoimac, ramble, and rip.

      Add the TCP name of the Mac to the list of machines with rw access.

    4. Run the shareall command.

  3. Set up the MacOS X machine so each user accessing the UNIX disks has the same login name, password, and UID number as they do on the UNIX server. This allows write access to the UNIX disk. If anything is different, users will have read-only access.
    1. Open the Applications/Utilities folder.
    2. Start NetInfo Manager.
    3. In NetInfo Manager, select Authenticate from the Security menu.
    4. Select Security->Enable Root User
    5. You may have to restart the Mac
    6. In NetInfo Manager, in the middle list, select groups.
    7. Select staff from the next list to the right.
    8. Select Edit->Duplicate
    9. Select staff copy in the list.
    10. In the lower window double-click in turn on the values for group name, gid, and the list of user names belonging to that group, to put in the same values as are on the UNIX server. In seismo we have, for instance, the group named seismo, gid=101, with every user being a member.
    11. To register the changes, click on some other group in the list, confirm the changes, and then select Management->Restart Local Netinfo Domains.

    Now for each Mac user who wants to connect:

    1. In NetInfo Manager, click on users.
    2. Click on the user's name in the list.
    3. In the lower window, double click successively on the values in the uid and gid fields, and change them to the values that user has on the UNIX server.
    4. If the login (short) name of the user is different on the UNIX server, it is probably easier to just create a new user on the Mac with that (short) name, than to change an existing Mac user's login name.
    5. To register the changes, click on some other user in the list, confirm the changes, and then select Management->Restart Local Netinfo Domains.
    6. Once the uid of a user is changed on the Mac, the user no longer owns or can change any of his/her files and folders! To fix this:
      1. Open the Terminal application from Applications/Utilities.
      2. Become superuser on the Mac with the su command.
      3. Suppose the Mac user named jim used to have uid=21, and you changed it to 12345 to fit the uid on the UNIX server. The following command will change every file owned under the old uid to be owned by the user under their new uid:
        find / -user 21 -exec chown jim {} \;
        (substitute values for this user)
        
        For a user who has installed applications and has used the machine a lot, this could take a half hour or more. But it only needs to be done once.

    New users added to this Mac need the same procedure.

  4. Now the user can mount the disk and use it:
    1. On the Mac, switch to the Finder and select Connect to Server... from the Go menu.
    2. If you don't see an Address field, click on the down-pointing arrow button.
    3. Type a server address into the Address field, like: nfs://bornite.mines.unr.edu/usr/people This has the server name and the path to the disk.
    4. The UNIX disk appears on the user's desktop.

  5. When you are done with a UNIX disk, always disconnect it by dragging it to the Trash. A Powerbook with an NFS disk mounted, taken away from the network, will grievously hang and have to be hard powered-down. After trashing the network disk, it's a good idea to log out of the Mac.

From Mac OS 7 through 9.1

The first step is to create a simple text file named ``.AppleVolumes'' (note the leading dot and the capitalization) in your home directory on the Sun system. An example .AppleVolumes file looks like:
	/tmp            Temp
	~        	Home
	/quake/net/ftp	FTP
	/quake/net/web	Web
	/rumble/a1	Rumble-a1
	/rumble/a2	Rumble-a2
	/rumble/a3	Rumble-a3
	/rumble/a4	Rumble-a4
	/rumble/s1	Rumble-s1
	/rumble/s2	Rumble-s2
	/rumble/s3	Rumble-s3
	/         	Root
	/cdrom        	CD-ROM
The first column is the UNIX directory path for the disk partition or sub-directory you wish to use on the Macs, and the second column is the name of the disk that will appear on the Mac. You can add any partitions or sub-directories you like to the list.

In your Web browser hold down the mouse menu button on this link, and save the file in your Sun home directory with the name ``.AppleVolumes''.

Next sit down at a Macintosh and select the Chooser from the Apple Menu located at the upper left corner of the Mac's display:

In the Chooser, select AppleShare, and the ``seismo'' AppleTalk Zone. You should see a list of machines on the right, including at the name of at least one Sun workstation. Generally all user accounts and all disks are available from any UNRSL Sun, so it does not matter which Sun you choose:

Then the Chooser will ask you for your Sun login name and password:

You can then select which disks to mount on the Mac, from those listed in your .AppleVolumes file:

The Sun disk then appears on your Mac DeskTop like this:

Some pointers on using Sun disks on the Mac:

If you are not the only person who uses this Macintosh, be sure you unmount the all the Sun disks before you leave the machine. Otherwise someone could delete all your Sun files. Just select and drag the Sun disks to the trash, and they will be disconnected from the Mac.