Banana Pi R2 can't mount ext. storage


i got an BPI R2. It’s running on Ubuntu 20.04.3 and Kernel “5.10.64-bpi-r2-main”.

When i try to mount a network nas to it via:

sudo mount -t cifs -o noserverino,username=pi,password=pi // /media/fritz

i get:

mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

i can mount it on a raspberry pi, with the same command, with no issues.

“/media/fritz” does exist

“cifs-utils” is already the newest version (2:6.9-1ubuntu0.1)

Anyone having the same issue?

You need to add cifs to kernel if it is not available

Check with

zcat /proc/config.gz | grep -i cifs

output of:

zcat /proc/config.gz | grep -i cifs


gzip: /proc/config.gz: No such file or directory

so it’s not available

How can i add it to the kernel?

Maybe you need

modprobe config

Before running the zcat command

out of

 modprobe config


modprobe: FATAL: Module config not found in directory /lib/modules/5.10.64-bpi-r2-main

i assume there is something else missing.

sorry, it’s

modprobe configs
zgrep -i cifs /proc/config.gz 

so it looks like i had cifs as module available and you should can do

 modprobe cifs

and try again mounting your netshare

modprobe configs gives

 modprobe: FATAL: Module configs not found in directory /lib/modules/5.10.64-bpi-r2-main

i checked folder /lib/modules/ and there is no folder “5.10.64-bpi-r2-main” in it. Only the three folders are in here: 4.4.160-BPI-R2-Kernel, 5.4.0-bpi-r2-main and 5.8.0-63-generic-lpae

anything i need to install oder move here?

which image are you using? my image should have the 5.10 kernel with modules and no 5.4/4.4 modules…

it seems you have used an vendor image and only replaced uImage

if you use a new kernel, you have to install modules too :wink:

Which is the best/newest ubuntu image i can use for the R2? I found the “bpi-r2-bullseye_incomplete.img” image in your Google Drive.

Should i use this one? Or is there any better/newer image already? And why is it “incomplete”?

Bullseye is debian,not ubuntu and afair it was incomplete because network settings were not completely working (dhcp client or server).

But you can use it as base and (after backup of lib/modules) replace rootfs by a bootstrapped ubuntu (for 22.04 use jammy as name) based on my wiki.