bad usage on attempting to mount
Solution 1
Several things I see:
- You give link to a tutorial on
nfs
(Network File System) and notCIFS
(Common Internet File System). The format for
cifs
is:mount -t cifs //server-name/share-name /mnt/cifs -o username=USER,password=PASSWORD
- No space as pointed out from previous answer, and
- No
:
between IP address and share folder
So your mount command should be:
sudo mount -t cifs -o username=USER,password=PASSWORD //IPADRRESS/homes /media/backups/
Solution 2
You have a space in your options. All of the -o options should not have any spaces between them.
Hope this helps
user550717
I like solving hard problems with statistics, machine learning, and python. Most of my work has been in social science. I am more machine now than man, twisted and evil. At least that's what I hope when I am able to transfer my consciousness into a robot body.
Updated on September 18, 2022Comments
-
user550717 over 1 year
I don't understand the bad usage that is happening here. I am trying to mount a samba share (NAS) and I get
mount: bad usage
. I was under the impressionmount
is used:mount <options> <localtion to mount> <local place its mounted>
So I attempted to create that with this:
sudo mount -t cifs -o username=USER, password=PASSWORD //IPADRRESS:/homes /media/backups/
I got this from the man pages and the following references (I realize some are referencing NFS when I have stated I am using samba):
[1] https://wiki.qnap.com/wiki/Talk:Mounting_an_NFS_share_on_Ubuntu
[2] https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-16-04
-
goo over 5 yearsDon't put blanks after commas.
-o username=USER,password=PASSWORD
-