ali33@01:/etc/skel$ sudo mount -t cifs //192.168.1.5/tool_utils /mnt/ -o username=pttien
[sudo] password for ali33:
mount: block device //192.168.1.5/tool_utils is write-protected, mounting read-only
mount: cannot mount block device //192.168.1.5/tool_utils read-only
You don't like once. Ok, the solution is very simple. You must install cifs-utils package:
root@01:/etc/skel# apt-get install cifs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
keyutils
The following NEW packages will be installed:
cifs-utils keyutils
0 upgraded, 2 newly installed, 0 to remove and 42 not upgraded.
Need to get 99.3 kB of archives.
After this operation, 312 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://vn.archive.ubuntu.com/ubuntu/ precise-updates/main cifs-utils i386 2:5.1-1ubuntu2 [65.2 kB]
Get:2 http://vn.archive.ubuntu.com/ubuntu/ precise/main keyutils i386 1.5.2-2 [34.1 kB]
Fetched 99.3 kB in 1s (50.0 kB/s)
Selecting previously unselected package cifs-utils.
(Reading database ... 171358 files and directories currently installed.)
Unpacking cifs-utils (from .../cifs-utils_2%3a5.1-1ubuntu2_i386.deb) ...
Selecting previously unselected package keyutils.
Unpacking keyutils (from .../keyutils_1.5.2-2_i386.deb) ...
Processing triggers for man-db ...
Setting up cifs-utils (2:5.1-1ubuntu2) ...
Setting up keyutils (1.5.2-2) ...
root@01:/etc/skel# mount -t cifs //192.168.1.5/tool_utils /mnt/ -o username=pttien
Password:
root@01:/etc/skel# cd /mnt/
root@01:/mnt# ls
0 01_Production temp
root@01:/mnt#
Thank you for reading this article, please a comment if you are interested.
Tiến Phan - R0039
Knowledge is Endless
Sharing for Success
thankyou
ReplyDelete