01-07-2015, 03:24 AM
(This post was last modified: 01-07-2015, 03:30 AM by greenisland.)
My question is (I think) a continuation or subtlety of this question so I will add it here.
I am trying to mount a network drive at book using fstab, but I would be perfectly happy to do the same thing by putting a mount command such as is described here in my rc.local file.
For some reason I am finding that when I test the command from a terminal, by putting for example
sudo mount -t cifs -o username=username,password=yourpassword,uid=username,gid=users //192.168.10.11/Files /home/dave/ZShares/Files
I find that it does not work the first time, and gives me the error
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
But if I issue EXACTLY the same command a second time, it works without giving errors of any kind and mounts the drive. From the terminal I can recreate this repeatedly --
sudo umount -a dismounts everything, including the network drive
>>> if I then issue:
sudo mount -a >>>>>>> I get the error
If I then issue
sudo mount -a a SECOND time
I get a mounted network drive and no error!
Probably if I could figure out why this is happening (the need to execute the command twice) I could figure out the rest of my problems.
Can anyone suggest an answer? =--- thanks
PS -- I was hoping to find a section of the excellent startup manual on networks (https://www.freecinema2022.gq/manual/network.html#nas) because it covers a lot, but I could not find a section on mounting a network drive.
Thanks again
I am trying to mount a network drive at book using fstab, but I would be perfectly happy to do the same thing by putting a mount command such as is described here in my rc.local file.
For some reason I am finding that when I test the command from a terminal, by putting for example
sudo mount -t cifs -o username=username,password=yourpassword,uid=username,gid=users //192.168.10.11/Files /home/dave/ZShares/Files
I find that it does not work the first time, and gives me the error
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
But if I issue EXACTLY the same command a second time, it works without giving errors of any kind and mounts the drive. From the terminal I can recreate this repeatedly --
sudo umount -a dismounts everything, including the network drive
>>> if I then issue:
sudo mount -a >>>>>>> I get the error
If I then issue
sudo mount -a a SECOND time
I get a mounted network drive and no error!
Probably if I could figure out why this is happening (the need to execute the command twice) I could figure out the rest of my problems.
Can anyone suggest an answer? =--- thanks
PS -- I was hoping to find a section of the excellent startup manual on networks (https://www.freecinema2022.gq/manual/network.html#nas) because it covers a lot, but I could not find a section on mounting a network drive.
Thanks again