安装ntfs-3g驱动
apt-get install ntfs-3g
查看硬盘设备名称
lsblk
下面是挂载的命令。挂载之前请检查/mnt/casa_sda1/文件夹是否存在。
mount -t ntfs-3g -o locale=zh_CN.utf8,umask=0 /dev/sda1 /mnt/casa_sda1/
需要注意: ntfs-3g 后面有空格,然后才是 -o
如何开启SMB文件共享?
安装samba需要的驱动
apt-get install samba samba-common-bin avahi-daemon
增加共享文件夹
nano /etc/samba/smb.conf
在smb.conf 末尾粘贴如下代码
security=user
[public]
comment = samba
path = /mnt/casa_sda1/
writable = yes
create mask = 0777
directory mask = 0777
browseable = yes
Step 1:
Login on you vps with root user
Put this command on terminal
mkdir /storage
Step 2:
Put this commands on terminal
(take 5-10 minutes to create partition)
sudo mkfs.ext4 /dev/sdb
After this put this command
sudo mount /dev/sdb /storage
Step 3:
Go on /etc/fstab
Put this command on terminal
nano /etc/fstab
After this put this command
/dev/sdb /storage ext4 defaults 0 2
Screenshot how need configure