Joomla TemplatesWeb HostingFree Money
Home
adult toys online shop
Storage Servers For Linux
Tags:

Storage Servers for Linux :
-------------------------------------------

1. Login as root
2. Create a directory where you want to mount the bighome files.
3. mount -t smbfs -o username=sumit_k,port=139 //bighome.iitb.ac.in/sumit_k /home/cms/big (for older versions of Linux)
OR
mount -t cifs -o username=sumit_k,port=139 //bighome.iitb.ac.in/sumit_k /home/cms/big (for newer versions of Linux).

Here sumit_k is to be replaced by the username and /home/cms/big by the directory where you want to mount your bighome files. It will prompt for authentication after which you can access your bighome files in this directory(/home/cms/big). If this doesnt work then make sure that your kernel has smbfs filesystem support.

_____________________________________________________________

To automatically mount your homedirectory of bighome on your computer -

Add this entry in fstab:
//bighome.iitb.ac.in/ap /mnt/bighome smbfs username=ap,port=139,password= 0 0 (for older versions of Linux)
OR
//bighome.iitb.ac.in/ap /mnt/bighome cifs username=ap,port=139, password= 0 0 (for newer versions of Linux)

Here username is login-id at bighome and passwd is password of that ID in clear text]

The best thing should be to put a shell script in /etc/profile.d
This should be that script


#!/bin/bash
df | grep bighome
if [ $? -ne 0 ] then
mount -t smbfs -o username=ap,port=139 //bighome.iitb.ac.in/ap (for older versions of Linux)
OR
mount -t cifs -o username=ap,port=139 //bighome.iitb.ac.in/ap (for newer versions of Linux)
fi
###########################

Set /usr/bin/mount setuid
Then it will check whether bighome is mounted only when you login. If the partition is not already mounted the script would mount it for you.

Tags:
Last Updated on Monday, 02 May 2011 20:07
 
feedback