Volumio USB drive not adding to dietpi

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname --all
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • Power supply used | (EG: 5V 1A RAVpower)
  • SD card used | (EG: SanDisk ultra)

I have installed volumio in Allo usb bridge and another Allo usb bridge have installed dietpi. But when trying to add the shared USB drive from Volumio iam getting the below error message:

 ─────────────────────────────────────────────────────
 DietPi v9.9.0 : 13:25 - Tue 01/28/25
 ─────────────────────────────────────────────────────
 - Device model : RPi CM 3+ (aarch64)
 
root@DietPi:~# dietpi-config
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager |  - Detected unmounted drive: /dev/sda1
[  OK  ] DietPi-Drive_Manager | mv .fstab /etc/fstab
[  OK  ] DietPi-Drive_Manager | systemctl daemon-reload
[ INFO ] DietPi-Drive_Manager | Checking for required APT packages: e2fsprogs ntfs-3g
[  OK  ] DietPi-Drive_Manager | sync
[.     ] DietPi-Drive_Manager | mkdir -p /mnt/668AD4868AD453E1
[  OK  ] DietPi-Drive_Manager | mkdir -p /mnt/668AD4868AD453E1
[  OK  ] DietPi-Drive_Manager | mount -o noatime,lazytime,rw,permissions,big_writes /dev/sda1 /mnt/668AD4868AD453E1
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p2 > /
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/mmcblk0p1 > /boot
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/sda1 > /mnt/668AD4868AD453E1
[  OK  ] DietPi-Drive_Manager | mv .fstab /etc/fstab
[  OK  ] DietPi-Drive_Manager | systemctl daemon-reload
[  OK  ] DietPi-Drive_Manager | sync /boot/dietpi/dietpi-drive_manager: line 1054: ((: > 0 : syntax error: operand expected (error token is "> 0 ")
[.     ] DietPi-Drive_Manager | rmdir --ignore-fail-on-non-empty /mnt/samba
[  OK  ] DietPi-Drive_Manager | rmdir --ignore-fail-on-non-empty /mnt/samba
[ INFO ] DietPi-Drive_Manager | Checking for required APT packages: cifs-utils smbclient
[  OK  ] DietPi-Drive_Manager | Desired setting in /boot/dietpi/.installed was already set: aSOFTWARE_INSTALL_STATE[1]=2
[  OK  ] DietPi-Drive_Manager | mkdir -p /mnt/samba
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 3.1.1
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 3.0.2
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 3.0
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 2.1
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 2.0
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 1.0
RPi CM 3+ (aarch64) | IP: 192.168.1.89 | Use up/down buttons to scroll text────┐
│                                                                              │
│ [FAILED] Samba mount failed with the following error output:
│
│ mount error(2): No such file or directory
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log
│ messages (dmesg)
│ mount error(2): No such file or directory
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log
│ messages (dmesg)
│ mount error(2): No such file or directory
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log
│ messages (dmesg)
│ mount error(2): No such file or directory
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log
│ messages (dmesg)
│ mount error(2): No such file or directory
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log
│ messages (dmesg)
│ Retrying with upper case share name
│
│                                    <Ok>
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • Was the software title installed freshly or updated/migrated?
  • Can this issue be replicated on a fresh installation of DietPi?
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

Expected behaviour

Actual behaviour

Extra details

Hello,

what exactly do you try to do? Mount an USB drive?
Because it looks like you try to mount a Samba/CIFS network share and not a local USB drive?

If you have set up a samba share on volumio, can you share the config of it please.

Iam trying add the USB Hard drive connected to my Volumio.
Please share me the code to show the samba share on Volumio

login as: volumio
volumio@192.168.1.17's password:
                       ___
                      /\_ \                        __
         __  __    ___\//\ \    __  __    ___ ___ /\_\    ___
        /\ \/\ \  / __`\\ \ \  /\ \/\ \ /' __` __`\/\ \  / __`\
        \ \ \_/ |/\ \L\ \\_\ \_\ \ \_\ \/\ \/\ \/\ \ \ \/\ \L\ \
         \ \___/ \ \____//\____\\ \____/\ \_\ \_\ \_\ \_\ \____/
          \/__/   \/___/ \/____/ \/___/  \/_/\/_/\/_/\/_/\/___/

             Free Audiophile Linux Music Player - Version 3.0

          © 2015-2021 Michelangelo Guarise - Volumio Team - Volumio.org

Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Welcome to Volumio for Raspberry Pi (6.6.62-v7+ armv7l)
volumio@praveensvolumio:~$ sudo cat /etc/samba/smb.conf
[sudo] password for volumio:
[global]
netbios name = PraveensVolumio
server string = Audiophile Music Player
workgroup = WORKGROUP
security = user
map to guest = Bad User
encrypt passwords = yes
wins support = yes
local master = no
preferred master = no
os level = 30

[Internal Storage]
        comment = PraveensVolumio Internal Music Folder
        path = /data/INTERNAL
        read only = no
        guest ok = yes

[USB]
        comment = PraveensVolumio USB Music Folder
        path = /mnt/USB
        read only = no
        guest ok = yes

[NAS]
        comment = PraveensVolumio NAS Music Folder
        path = /mnt/NAS
        read only = no
        guest ok = yes
volumio@praveensvolumio:~$

can you check if the DietPi client is able to see the SAMBA share provided by the server side

smbclient -L <server_name_or_IP> -U <username>

its shows syntax error-bash: syntax error near unexpected token `newline’

can you share the whole output including what you have entered. You can copy content from SSH terminal without issue.

login as: root
root@192.168.1.89's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ─────────────────────────────────────────────────────
 DietPi v9.9.0 : 17:03 - Tue 01/28/25
 ─────────────────────────────────────────────────────
 - Device model : RPi CM 3+ (aarch64)
 - CPU temp : 55 °C / 131 °F : Running warm, but safe
 - LAN IP : 192.168.1.89 (eth0)
 - MOTD : SECURITY notice: Please upgrade your rsync package ASAP:
          apt update; apt upgrade
          https://lists.debian.org/debian-security-announce/2025/msg00004.html
 ─────────────────────────────────────────────────────

 DietPi Team     : https://github.com/MichaIng/DietPi#the-dietpi-project-team
 Patreon Legends : Chris Gelatt, ADSB.im
 Website         : https://dietpi.com/ | https://twitter.com/DietPi_
 Contribute      : https://dietpi.com/contribute.html
 Web Hosting by  : https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place
 dietpi-config   : Feature rich configuration tool for your device
 dietpi-software : Select optimised software for installation
 htop            : Resource monitor
 cpu             : Shows CPU information and stats

root@DietPi:~# smbclient -L <192.168.1.17> -U <volumio>
-bash: syntax error near unexpected token `newline'
root@DietPi:~#

login as: root
root@192.168.1.89's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ─────────────────────────────────────────────────────
 DietPi v9.9.0 : 17:03 - Tue 01/28/25
 ─────────────────────────────────────────────────────
 - Device model : RPi CM 3+ (aarch64)
 - CPU temp : 55 °C / 131 °F : Running warm, but safe
 - LAN IP : 192.168.1.89 (eth0)
 - MOTD : SECURITY notice: Please upgrade your rsync package ASAP:
          apt update; apt upgrade
          https://lists.debian.org/debian-security-announce/2025/msg00004.html
 ─────────────────────────────────────────────────────

 DietPi Team     : https://github.com/MichaIng/DietPi#the-dietpi-project-team
 Patreon Legends : Chris Gelatt, ADSB.im
 Website         : https://dietpi.com/ | https://twitter.com/DietPi_
 Contribute      : https://dietpi.com/contribute.html
 Web Hosting by  : https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place
 dietpi-config   : Feature rich configuration tool for your device
 dietpi-software : Select optimised software for installation
 htop            : Resource monitor
 cpu             : Shows CPU information and stats

root@DietPi:~# smbclient -L <192.168.1.17> -U <volumio>
-bash: syntax error near unexpected token `newline'
root@DietPi:~#

Well you need to remove the comparison operators < and >

[quote="praveensg, post:9, topic:22618"]

Website : https://dietpi.com/ | x.com

[/quote]

login as: root
root@192.168.1.89's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
 ─────────────────────────────────────────────────────
 DietPi v9.9.0 : 01:05 - Wed 01/29/25
 ─────────────────────────────────────────────────────
 - Device model : RPi CM 3+ (aarch64)
 - CPU temp : 54 °C / 129 °F : Running warm, but safe
 - LAN IP : 192.168.1.89 (eth0)
 - MOTD : SECURITY notice: Please upgrade your rsync package ASAP:
          apt update; apt upgrade
          https://lists.debian.org/debian-security-announce/2025/msg00004.html
 ─────────────────────────────────────────────────────

 DietPi Team     : https://github.com/MichaIng/DietPi#the-dietpi-project-team
 Patreon Legends : Chris Gelatt, ADSB.im
 Website         : https://dietpi.com/ | https://twitter.com/DietPi_
 Contribute      : https://dietpi.com/contribute.html
 Web Hosting by  : https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place
 dietpi-config   : Feature rich configuration tool for your device
 dietpi-software : Select optimised software for installation
 htop            : Resource monitor
 cpu             : Shows CPU information and stats

root@DietPi:~# smbclient -L <192.168.1.17> -U <volumio>
-bash: syntax error near unexpected token `newline'
root@DietPi:~# smbclient -L 192.168.1.17 -U volumio
Password for [WORKGROUP\volumio]:

        Sharename       Type      Comment
        ---------       ----      -------
        Internal Storage Disk      PraveensVolumio Internal Music Folder
        USB             Disk      PraveensVolumio USB Music Folder
        NAS             Disk      PraveensVolumio NAS Music Folder
        IPC$            IPC       IPC Service (Audiophile Music Player)
SMB1 disabled -- no workgroup available
root@DietPi:~#

Ok at least the SAMBA exports are displayed. Are you able to manually mount the share?

sudo mount -t cifs //<server_ip_or_hostname>/<share_name> /mnt/samba -o username=<samba_user>,password=<samba_password>,iocharset=utf8,file_mode=0777,dir_mode=0777

small note, it is sufficient if you copy the commands and the corresponding output from the SSH terminal. The login screen, welcome message and other banner information are not necessary.

I have used your code . and nownow error. How can i know if the sahred folder has been added to dietpi? Its not showing the dietpie drive manager

┌───────────────────────────┤ DietPi-Drive_Manager ├───────────────────────────┐
│ Please select a drive to see available options.                              │
│  - User data location: RootFS (/mnt/dietpi_userdata)                         │
│                                                                              │
│                        ●─ mmcblk0 ─────────────────────────────────────────  │
│  /                     : /dev/mmcblk0p2 | ext4 | Capacity: 29.1G | Used: 2.  │
│  /boot                 : /dev/mmcblk0p1 | vfat | Capacity: 127M | Used: 32M  │
│                        ●─ sda ─────────────────────────────────────────────  │
│  /mnt/668AD4868AD453E1 : /dev/sda1 | ntfs | Capacity: 465.8G | Used: 89G (1  │
│                        ●─ Global Options ──────────────────────────────────  │
│  Idle Spindown         : Set a global idle duration, before drives power do  │
│                        ●─ Add / Refresh Drives ────────────────────────────  │
│  Add network drive     : Select to mount networked drives                    │
│  Refresh               : Scan for recently added/removed drives              │
│                                                                              │
│                                                                              │
│                     <Select>                     <Exit>
mount: //192.168.1.17/volumio/mnt/samba: can't find in /etc/fstab.
root@DietPi:~#

getting this error

simply do a df -h. This will show all mounted drives.

This is expected, as you have only mounted the drive manually

It is best to enter the information manually in /etc/fstab. Simply do this in the network section below these lines

#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------

and add

//<server_ip_or_hostname>/<share_name> /mnt/samba cifs cred=/var/lib/dietpi/dietpi-drive_manager/mnt-samba.cred,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,noauto,x-systemd.automount

Then create the file for user + password

nano /var/lib/dietpi/dietpi-drive_manager/mnt-samba.cred

add

username=myuser
password=mypassword

save and exit.

After a reboot, the Samba share is automatically available as soon as someone wants to access it.