Firs, we need to install cifs, which comes right alongside smbfs. If you have smbfs, then you have cifs. If you don't, open up a terminal and get it:
引用
sudo apt-get install smbfs
Next, all mounted drives need to mount to some folder on your local drive. I prefer to mount mine in the /media folder, which makes sense, as your cdrom is mounted there along with other drives, including things like external and thumb drives. Type the following, replacing my_share with whatever folder name you want your share to be (this doesn't matter at all, it can be called anything and go anywhere).
引用
sudo mkdir /mount/my_share
Now, while we're going to perform some permanent mounts later (so that the disk mounts after a restart), let's start with a manual mount.
引用
sudo mount -t cifs //192.168.1.102/share_name /media/my_share -o username=theuser,password=thepass,iocharset=utf8,file_mode=0777,dir_mode=0777
We now have proof of concept, but we want the drive to mount automatically on restart. First, let's unmount the drive so that we can test our remounting of it later. The following should do it.
引用
sudo umount //192.168.1.102/share_name
The share should've disappeared from your desktop. Important, we will use the /etc/fstab file to mount the share by inserting a similar command as above into that file. This file can be read by anyone on your computer, which would mean that anyone could read the username and password you specify for you mount. If you don't care (come on guys, care a little), then simply do the following:
分享到:
相关推荐
1.1.1.1 Ensure mounting of cramfs filesystems is disabled (Scored) .............................. 20 1.1.1.2 Ensure mounting of freevxfs filesystems is disabled (Scored)............................ 22...
Contains the CIFS DFS referral mounting routines used for handling traversal via DFS junction point
SINAMICS G110M Wall Mounting Kit[手册]pdf,
5.2.8 Using Multiterabyte UFS File Systems 115 5.2.9 Creating UFS Snapshots 115 5.3 ZFS File System Administration 117 5.3.1 Using Pools and File Systems 118 5.3.2 Backing Up a ZFS File System 120 ...
IEC 61760 全系列 - Surface mounting technology(表面贴装技术) - 包含全部5份完整英文版文件: 1,IEC 61760-1:2020 Surface mounting technology - Part 1:Standard method for the specification of surface...
Ext2Fsd is an ext2 file system driver for Windows (2k, XP, Vista and Win7). It’s a free software. Anyone can modify or distribute it under GPL2. Features Ext2Fsd supports: ext2/ext3 volume reading ...
Access Methods Directory Structure Fil S t M ti File System Mounting File Sharing g Protection Southeast University 10.2 Operating System Concepts File Concept e Co cept Contig o s ...
Understanding Electronics Using Basic Physics <br>Preface xi 1 The Electric Field 1 1.1 Introduction 1 1.2 Charge 2 1.3 Electrical Forces on Charged Bodies 3 1.4 Electric Field 4 ...
UL 2703:2021 Mounting Systems, Mounting Devices, Clamping Retention Devices, and Ground Lugs for Use with Flat-Plate Photovoltaic Modules and Panels - 完整英文版(65页).pdf
8.8. Mounting a disk image using the loop device 8.8.1. ...on Linux 8.8.2. ...on FreeBSD 8.9. Simulating a Symmetric Multiprocessor (SMP) Machine 8.10. Setting Up Networking in DLX Linux 8.11. ...
surface mounting techniques, Boundary-Scan testing is becoming widely used as an important debugging standard. Devices containing Boundary-Scan logic can send data out on I/O pins in order to test...
JBL MTC-2P Mounting Kit用户使用说明书.pdf
Fast command-line navigation using pushd and popd 126 Counting number of lines, words, and characters in a file 128 Printing directory tree 129 Chapter 4: Texting and Driving 131 Introduction 132 ...
Environmental testing - Part 2-21: Tests - Test U: Robustness of terminations and integral mounting devices
gives information on mounting and using squashfs filesystems stored on block devices and as normal files using the loopback device. 1. Squashfs overview -------------------- 1. Data, inodes and ...
GM关于模态测试的规范,特别是对动力总成悬置系统的模态测试有详细说明。 GMW14762_Powertrain_Mounting_Rigid_Body_Modes_Evaluation_Procedure
· Support mounting the image files on-the-fly. · Support rebuilding the disk with new settings. · Fix bug: Drive letter may be changed when changing the disk type from Direct-IO to SCSI. · Fix bug...
发动机悬置系统设计方法研究,张保成,赵鹏飞,当前悬置系统的研究大多针对中小功率发动机,对于高速大功率柴油机的相关研究还很少见。本文建立了通用的动力模型用以分析任意支
react-mounting-transition是一个简单的库,可帮助您向要动态安装到DOM的组件添加过渡 :warning: 这个库仍在开发中,需要一些修饰 为什么这是必要的? 某些元素最好按需动态添加到DOM中。 模态就是一个很好的例子...