I
I
Igor2020-02-13 17:52:15
System administration
Igor, 2020-02-13 17:52:15

How to mount a disk?

Good afternoon, colleagues.
I mount the disk

mount -t cifs rw //10.1.5.43/documents /mnt/documents -o user=user1,password=pass123

It mounts, but I can't add/delete/edit files there, only read. Maybe a bug in the command itself? This is the first question.
The second question is, when I turn on the system, the disk does not mount automatically, how can I fix this?
PS no internet connection. Please advise, thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Karasik, 2020-02-13
@vitaly_il1

the disk does not mount automatically, how can I fix this?

https://wiki.centos.org/TipsAndTricks/WindowsShares
Edit the /etc/fstab file and add a line like:
\\winbox\getme /mnt/win cifs user,uid=500,rw,suid,username=sushi, password=yummy 0 0
(as far as I remember, slashes should be normal)

D
Drno, 2020-02-13
@Drno

Mount - or register in fstab
Or just sh script, in cron, when loading
And about recording - in my opinion the easiest way to check is to create a test directory, give permission to it to everyone-on-everything
chmod -R 777 /mnt/testfolder
Then mount there network sphere. Emli will write down - the user does not have rights to another folder. If not damt - watch the rights of windows balls

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question