CIFS module not in Ubuntu Server kernel


#1

Hello:

I’ve installed and configured the Ubuntu Server distro on my Rock Pi4. The only thing that’s missing is the CIFS filesystem module.

Is there a technical reason why it’s not included in the build? I don’t want to go down the rabbit hole building a new kernel if it won’t work anyway.

Thanks in advance for any insight!


#2

The installed system is quite minimal, have you tried to install it yet?

sudo apt update
sudo apt upgrade
sudo apt install cifs-utils


#3

Yes. I’ve executed unminimize and installed cifs-utils.


#4

I am not sure which kernel you are running. We should have cifs as modules for recent kernels. You can update the kernel first.

sudo apt-get install linux-base
sudo apt-get install linux-4.4-lastest

#5

I’ve been using the 4.4.154.73 kernel release since 2/28. I finally gave up and built a custom kernel from that version’s source, including CIFS in the config. That was time consuming.

I see that 4.4.154.74 has been released and it still doesn’t include CIFS. It would be great if that could be included in future. Since the boot partition is only 100meg, it is a pain to manage any updates that affect it.

Thanks for your time Jack.


#6

We will fix these two issues as soon as possible.


#7

Thanks again Jack! I really appreciate your responsiveness.

By the way, once I had it set up the way I want, this little box is a screamer.

While you’re looking into it, the root filesystem should also be mounted with noatime as a standard parameter in any distro that will likely be installed on EMMC or SD media, IMHO. It makes a big performance improvement.


#8

Thanks for the noatime parameter, we will add it for the next release.


#9

Hi,

The kernel, including cifs, is updated.

For testing, Here we use system image, rockpi4_debian_stretch_lxde_armhf_20181105_2120-gpt.img.

And I do the steps shown in https://wiki.radxa.com/Rockpi4/radxa-apt, which includes updating packages like rockchip-fstab, rockchip-overlay, u-boot, kernel an so on.

Test 1, ROCK Pi 4 as Server, Ubuntu 16.04 PC as Client

  • ROCK Pi 4 Server
sudo apt-get install cifs-utils
sudo apt-get install samba

Add the contents at the end of file, /etc/samba/smb.conf

[rockpi4_share]
comment = Home Public Folder
browseable = yes
path = /home/linaro/share
create mask = 0777
guest ok = yes
read only = no
  • Ubuntu 16.04 PC Client
mkdir /data/rockpi4
sudo mount -t cifs //192.168.1.8/rockpi4_share /data/rockpi4 -o guest

ls /data/rockpi4

In directory /data/rockpi4, we can see files shared by ROCK Pi 4.

Test 2, Ubuntu 16.0 PC as Server, ROCK Pi 4 as Client

  • Ubuntu 16.0 PC Server
sudo apt-get install samba

Add the contents at the end of file, /etc/samba/smb.conf

[sandara_share]
comment = Home Public Folder
browseable = yes
path = /data/sandara_share
create mask = 0777
guest ok = yes
read only = no
  • ROCK Pi 4 Client
cd /home/linaro
mkdir sandara
sudo mount -t cifs //192.168.1.100/sandara_share /home/linaro/sandara -o guest

In directory /home/linaro/sandara, we can see files shared by Ubuntu 16.04 PC.


Network is not displayed in the PCManFM file manager
#10

Maybe this can be put on the wiki, add a samba page :slight_smile:


#11

Works great, thanks for jumping on this so quickly!


#12

Wiki page using Samba on ROCK Pi 4. https://wiki.radxa.com/Rockpi4/Samba