BMCPub MoreInfo

From OpenWetWare
Jump to: navigation, search



Biomicro Center Public Storage Server Connection "Command line using an SMB mount"

SMB or Cifs mount from a UNIX System

BMC-Pub1 can accessed as a "mounted drive from a UNIX system". To do this:

  • Please note - the user must be "root" or given "sudo" access to mount a drive"
 Create a mount point on the system
 * Please ssh into the system
 * Move to the "\mnt" on the filesystem
 * Create a directory as a mount point: type   "mkdir bmc-pub1"
  • Make sure the directory is created.
  • Type in "ls-al"
  %/mnt/bmc-pub1 should appear
 The "mount command"
 The mount command requires the location the Windows Share.
 The mount point provides access as this user. It is recommended to delete after use.
 mount -t cifs -o username=bozo,password=clown //bmc-pub1/yoursharename /mnt/bmc-pub1 <enter>
 If there is no error message the command mounted the drive.

There is a command to check the status of all mounted drives. It is known as the "df-h"

 An example might be
 Filesystem                              Size  Used Avail Use% Mounted on
                                           72G  2.3G   66G   4% /
                         /dev/hda1         99M  9.0M   85M  10% /boot
                        none              506M     0  506M   0% /dev/shm
                    //bmc-pub1/biomicro  1008G   52G  957G   6% /mnt/bmc-pub1

Now you have the ability to copy / delete files via command line to the /mnt/bmc-pub1 directory as it was a local to the machine.

  To delete or remove the mount point
  At the / location
  Type  umount -f /mnt/bmc-pub1 <enter>
  • check the mount point is gone df -h <enter>"

Biomicro Center Public Storage Server Connection "SCP EXAMPLE"

Command line file copy from system to BMC-PUB1 UNIX System

You too can do a command line copy of a "file or folder" using SSH. It is known as SCP. Required:

 *User account on the system
 *Knowing beforehand the location you have the permissions to access.

Reference: Provides many examples.

This example we will copy a file:

  • SSH into a remote system other than BMC-PUB1"
 Move into the directory of the file you wish to copy via ssh
 * Type in "ls -al" to view the contents of the directory. 
 * scp nameoffile username@host:/locationofremotecopy
 * scp mit-krb-config-1.0-3.noarch.rpm
 *The authenticity of host ' (' can't be established.
  RSA key fingerprint is 15:e5:de:a3:dc:8a:02:38:bb:a9:61:7b:c4:63:d0:42.
  Are you sure you want to continue connecting (yes/no)? yes
  Warning: Permanently added ',' (RSA) to the list of known hosts.'s password: <enter your password on the remote system>
  *mit-krb-config-1.0-3.noarch.rpm               100% 4433     4.3KB/s   00:00  <transfer>

File copied.