Mount Windows/CIFS Share on Linux Mint

161 篇文章 0 订阅
117 篇文章 0 订阅

Mount Windows/CIFS Share on Linux Mint

Mount Windows/CIFS Share on Linux Mint

need to mount a windows share on Linux Mint?

open up a terminal, and su to root

type the following:

sudo apt-get install cifs-utils

it will ask if you want to use the disk space, go ahead and hit Y and enter to continue

Done!

from here we need to make the folder we are going to mount to

mkdir /mnt/WINDOWS

now we need to set the share to mount on startup, that way when we reboot it will come back

nano /etc/fstab

Enter the windows share as a line like this:

//serverIP/dir /mnt/dir cifs noserverino,ro,iocharset=utf8,password=,username= 0 0

Things to Edit:

ServerIP=IP address of CIFS/Windows Server

/dir = share Name

/mnt/DIR = WINDOWS folder we created Earlier

and make sure to fill out the Username/Password as the WINDOWS/CIFS username that would have access to that share

here’s out Example

now Save/Quit

all we have to do is mount the Share

mount -a

If there’s no errors the mount worked

let’s check it out, browse to /mnt/WINDOWS using the following Command:

cd /mnt/WINDOWS

ls

same folder structure as what windows has

That’s it, now let’s make a shortcut on our desktop

ln -s /mnt/WINDOWS /home/mint/Desktop

as you can see our windows Share is now has a shortcut or “sym link” as it’s called in Linux on the Desktop

 

That’s It!

Mount CIFS/Windows Share on Fedora

Mount CIFS/Windows Share on Fedora

first thing to do is login to a command prompt, and switch to root

do yum install cifs-utils

hit yes

from here we need to make a folder to mount to

mkdir /mnt/Windows

now we need to set to mount on startup

vi /etc/fstab

we are going to mount our windows Archive Share

add this line to the config file:

substitute ipaddress, username/password for an account that would have credentials to that share

save + quit once done (esc and then :wq)

*** CAUTION *** The next command will REMOUNT ALL FILESYSTEMS, do in OFF-BUSINESS HOURS!

issue the mount -a command

as we can see, our windows share has mounted

cd /mnt/Windows

do a LS, we should be able to see all our files/folders

that’s it!

If you are interested in a hosted Fedora Linux server visit www.zwiegnet.com/go to get started today!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值