fstab partially working

Asked by Billy Chaney

fstab is partially working. The first line is working, but the second line isn't, it won't mount. It is a usb drive connected to my my router, the file system is ext2.

//192.168.50.100/Public /media/WdEx2 cifs credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

//192.168.50.1/entware /media/ac86u cifs credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

I'm running 18.04.

Any help would be greatly appreciated.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what output do you receive if you try mounting manually, i.e. issue the command

sudo mount -t cifs -o credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 //192.168.50.1/entware /media/ac86u

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What file system are the USB partitions using please, on the server side?

Revision history for this message
Billy Chaney (bc64) said :
#3

I get this output.

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Thanks for your help.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, March 12, 2019 3:57 AM, Manfred Hampl <email address hidden> wrote:

> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> For diagnostic purposes, what output do you receive if you try mounting
> manually, i.e. issue the command
>
> sudo mount -t cifs -o
> credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777
> //192.168.50.1/entware /media/ac86u
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Billy Chaney (bc64) said :
#4

The usb drive partition is ext2.

Thanks for your help.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, March 12, 2019 9:02 AM, actionparsnip <email address hidden> wrote:

> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> actionparsnip requested more information:
> What file system are the USB partitions using please, on the server
> side?
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Is the Ext2 partition mounted with the same options on the server side?

If you have OpenSSH server running on the server side, you can mount SSHFS and bypass all the CIFS stuff.

Revision history for this message
Billy Chaney (bc64) said :
#6

I'm not sure. I'm still new to linux. Please explain with more detail.
I'm running the desktop 18.04 and my usb drive is connected through my
Asus RT-AC86U router.

On 3/12/19 11:22 AM, actionparsnip wrote:
> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Is the Ext2 partition mounted with the same options on the server side?
>
> If you have OpenSSH server running on the server side, you can mount
> SSHFS and bypass all the CIFS stuff.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/679125/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

If you run:

ssh 192.168.50.1

Do you get asked for a username and password?

Revision history for this message
Billy Chaney (bc64) said :
#8

When I use ssh username@192.168.50.1 it ask me for a password and I can
log in. If I just use ssh 192.168.50.1, it ask me for a password, but it
doesn't give me permission to enter.

On 3/12/19 11:47 AM, actionparsnip wrote:
> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> If you run:
>
> ssh 192.168.50.1
>
> Do you get asked for a username and password?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Billy Chaney (bc64) said :
#9

Also I would like to point out that my usb drive is connected to my
primary router in a different room. My ubuntu desktop is on a computer
that is on a wireless bridge. The wireless bridge is where the other nas
drive is connected to and it boots up fine.

On 3/12/19 11:47 AM, actionparsnip wrote:
> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> If you run:
>
> ssh 192.168.50.1
>
> Do you get asked for a username and password?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

What output do you receive for

sudo mount -t cifs //192.168.50.1/entware /media/ac86u --verbose -o credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777

Revision history for this message
Billy Chaney (bc64) said :
#11

Here's the output.

domain=192.168.50.100
Credential formatted incorrectly: (null)
domain=192.168.50.1
mount.cifs kernel mount options:
ip=192.168.50.1,unc=\\192.168.50.1\entware,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,user=bc64,domain=192.168.50.1,pass=********

On 3/12/19 1:47 PM, Manfred Hampl wrote:
> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What output do you receive for
>
> sudo mount -t cifs //192.168.50.1/entware /media/ac86u --verbose -o
> credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Billy Chaney (bc64) said :
#12

I made a change to my credentials file and got the following output:

Credential formatted incorrectly: (null)
mount.cifs kernel mount options:
ip=192.168.50.1,unc=\\192.168.50.1\entware,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,user=bc64,pass=*******

The credentials file has the following lines:

username=bc64

password=xxxxxxxx

On 3/12/19 1:47 PM, Manfred Hampl wrote:
> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> What output do you receive for
>
> sudo mount -t cifs //192.168.50.1/entware /media/ac86u --verbose -o
> credentials=/home/billy/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

Do you have a carriage return on the end of the line with the password on or is the password line the last line? If it is, go to the end of the line and hit ENTER then save. It may help

Revision history for this message
Billy Chaney (bc64) said :
#14

Did what you suggested and still got the following error when running
sudo mount -a:

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I appreciate you reply

On 3/12/19 2:22 PM, actionparsnip wrote:
> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Do you have a carriage return on the end of the line with the password
> on or is the password line the last line? If it is, go to the end of the
> line and hit ENTER then save. It may help
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/679125/+confirm?answer_id=12
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

Is there an empty line between username and password in your credentials file?
Are there special characters in the password (like backslash, comma, …)?

Revision history for this message
Billy Chaney (bc64) said :
#16

No, there’s no line between username and password.
I do have a @#$ in my password, which is not an issue with 192.168.50.100

Sent from ProtonMail Mobile

On Tue, Mar 12, 2019 at 3:32 PM, Manfred Hampl <email address hidden> wrote:

> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> Is there an empty line between username and password in your credentials file?
> Are there special characters in the password (like backslash, comma, …)?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

"I do have a @#$ in my password, which is not an issue with 192.168.50.100"

I understand that one of your "servers" is a NAS, and the other one is a router. Is this correct?
It seems that these two have different operating systems, or different capabilities with respect to mounting.
Do you have manuals for these two where you could check?

Revision history for this message
Billy Chaney (bc64) said :
#18

Yes one is a NAS, and the other is a usb drive connected to a router. I have no manuals with either. The NAS drive is connected to a wireless bridge along with my desktop and ubuntu. The primary router is in another room and has the usb drive connected to it. I don't know if this should matter since I can smb into the usb drive.

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, March 12, 2019 4:32 PM, Manfred Hampl <email address hidden> wrote:

> Your question #679125 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> "I do have a @#$ in my password, which is not an issue with
> 192.168.50.100"
>
> I understand that one of your "servers" is a NAS, and the other one is a router. Is this correct?
> It seems that these two have different operating systems, or different capabilities with respect to mounting.
> Do you have manuals for these two where you could check?
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+question/679125
>
> You received this question notification because you asked the question.

Revision history for this message
Launchpad Janitor (janitor) said :
#19

This question was expired because it remained in the 'Open' state without activity for the last 15 days.