Cloud Storage

SAMBA

From GoGrid



SAMBA (Windows shares) allows you to connect your Cloud Storage as if it was another hard drive attached to your Windows system. You can then use any file manager (like Windows Explorer) to copy or drag and drop files between your system and Cloud Storage. In Linux, you can simply move files back and forth using standard commands such as mv and cd. Most SAMBA clients require the following settings to connect you to your Cloud Storage server:


  • Hostname: The host name of your Cloud Storage allotment as it appears in your user interface. It should be your customer number.cloud.storage.gogrid.com, i.e. 16642.cloud.storage.gogrid.com.
  • Username: Your username taken from the "Cloud Storage" item on the "Passwords" page in your my.gogrid.com portal.
  • Password: Your password taken from the "Cloud Storage" item on the "Passwords" page in your my.gogrid.com portal.


NOTE: Certain RHEL-based operating systems cannot download SAMBA using up2date. You must manually download the rpm from the SAMBA.org home page in order to install the package.


Using SAMBA for Linux

NOTE: Some versions of RHEL and CentOS cannot mount SAMBA or do Passive FTP without first running the following command to alter iptables:
iptables –I INPUT 1 –j ACCEPT –p tcp –s 10.117.0.0/24 –d 0.0.0.0/0

This will accept all traffic from the Cloud Storage Network for some server images. If you still cannot connect to Cloud Storage after running this command, run the following command to flush iptables:

iptables -F


Your Cloud Storage allotment can be mounted to your local machine via the command line. You will need to install the SAMBA-Linux client. To check if it is already installed, run the command:

rpm -qa | grep samba

If it is not installed, you can install it by running the command:

yum install samba-client
for CentOS or
up2date samba-client
for RHEL systems.

Create a mount point to mount to your Cloud Storage on your Linux system:

mkdir /mnt/cloudstorage

You can then mount the remote drive locally:

mount -t cifs //[customernumber].cloud.storage.gogrid.com/[customernumber] /mnt/cloudstorage -o user=[customernumber],pass=[password]

where [customer number] is the customer number portion of the Cloud Storage hostname displayed in your GoGrid customer portal and [password] is the password associated with your Cloud Storage allotment found in the password management interface of your my.gogrid.com portal. Dependent on distribution, i.e. Linux 4.X versions, you may want to remove the -t flag in the command line and replace user with username and pass with password. Here is an example of what the command may look like:

mount -t cifs //16642.cloud.storage.gogrid.com/16642 /mnt/cloudstorage -o user=16642,pass=19fd3jf

Using SAMBA for Windows

SAMBA is available for Windows by default. Your Cloud Storage allotment can be mounted to your local machine through Windows Explorer. Simply do the following to mount your Cloud Storage allotment as an additional drive on your Windows machine:

  1. Open Windows Explorer
  2. Select "Tools" then "Map Network Drive"
  3. Under "Drive", pick any letter you wish to associate with your Cloud Storage allotment, such as S: for storage
  4. In the "Folder" location, type in the hostname of your Cloud Storage allotment followed by the directory you wish to mount to (if any). This will be something like:
  5. \\16642.cloud.storage.gogrid.com\16642
  6. Check the "Reconnect at Logon" check box to ensure that the drive is mounted persistently after reboots.


You will be asked for your Cloud Storage user credentials when accessing the drive the first time.

External Links

Personal tools