Showing posts with label mount. Show all posts
Showing posts with label mount. Show all posts

08 April, 2012

how to connect to networkdrive from terminal ?


How Do I Map a Drive Network Share Using the Linux Terminal?

You need to install:

sudo apt-get install smbfs -y

then Create a directory on your machine to use as a mount point for the share:
sudo mkdir /media/yoursharename
exp. sudo mkdir /media/nas

then I use the mount command to map a windows share folder
from your NAS server to the mount point you just created:


sudo mount -t cifs -o username=nasserverlogin 
//server/sharename /media/yoursharename

or 
sudo mount.cifs -o username=nasserverlogin 
//server/sharename /media/yoursharename

You should now be to access the share from your /media/yoursharename mount point.

29 October, 2009

mount: you must specify the filesystem type

Having problems mounting hd.
(mount: you must specify the filesystem type)

If you have problems with mounting, then try this
Creating the partition is not enough to use it, you need to put a filesystem on it.

Code:
mkfs.ext3 /dev/hdb1
Then you can mount it using
Code:
mount -t ext3 /dev/hdb1 /mnt/hdb1