Score:5

fstab cifs mount stopped working in Ubuntu 22.04 LTS “Jammy Jellyfish” : bad option

fo flag

After installing Ubuntu 22.04 LTS “Jammy Jellyfish”, I noticed that the network drives listed in my Favourites no longer work.

When I tried "sudo mount -a" in terminal - I got error messages. I found some hints that my "vers=1.0" should be modified. I corrected all 3 entries in /etc/fstab. I still get error messages. Please help!

Here is the version which worked in Ubuntu 18 :

//192.168.0.254/Disque\040dur /media/freebox  cifs  guest,vers=1.0,uid=1000,iocharset=utf8  0  0  
//192.168.0.254/Samsung_T5 /media/samsung_t5  cifs  guest,vers=1.0,uid=1000,iocharset=utf8  0  0  
//192.168.0.254/VERBATIM2 /media/verbatim2  cifs  guest,vers=1.0,uid=1000,iocharset=utf8  0  0

After I changed vers=1.0 to vers=2.0, I still get the following error for each network drive:
mount: /media/freebox: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program.

I have been carefully reading manpages for mount.cifs for Ubuntu 22.04 but I do not understand what I should change.

Can someone please advise?

Score:4
us flag

Looks like you're missing cifs-utils so just run

sudo apt install -y cifs-utils
Score:1
cn flag

To add cifs-utils was not enough for me, i needed :

sudo apt install cifs-utils nfs-common

I assume cifs-utils was enough for jjmeric, but the error message say both cifs and nfs.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.