Mounting storage01 in linux¶
This took me a bit of googling to find once and has been a great deal of help since. This will work on the linux lab machines as well as personal linux machines provided you have smbmount installed. It’s a nice little one-liner. Also, I’ll assume that you have a directory that you can mount to. For example, on my laptop I have /mnt/storage01 and on the linux lab I have /home/icordasc/storage01/.
smbmount //storage01.stevens.edu/public ./storage01 -o \
user=username,domain=campus
This will then prompt you for a password. You would then enter the same password you use for the wireless access points at Stevens. Once this completes successfully, feel free to explore your now read-only directory. (By which I mean you cannot add anything to it, but can read anything from it.
Advantages to this¶
If you do this in the linux-lab and logout, as long as you know which machine you logged into, you can scp files from that directory like so:
# local machine
scp <machine_name>.cs.stevens.edu:~/storage01/Matlab\\\ Archive/\
Matlab2011A/Activation.txt ./
So long as that machine doesn’t shut down, you can keep the directory mounted and log back into that machine later without it being changed.
If you plan to not log into that same machine again later but you want to have the directory mounted, simply use
smbumount ./storage01
So you can remount this. Also you can add to your ~/.bash_profile file, the following line:
alias storage01mount='smbmount //storage01.stevens.edu/public \
./storage01 -o user=username,domain=campus'