Unable to mount an Audio CD - DVDs OK, using dietpi-drive_manager

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=11
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm
  • Kernel version | uname --all
    Linux DietPi 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux
  • Architecture | dpkg --print-architecture
    amd64
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    Native PC (x86_64)
  • Power supply used | (EG: 5V 1A RAVpower)
    PC’s own power adapter
  • SD card used | (EG: SanDisk ultra)
    N/A

Additional Information (if applicable)

  • Was the software title installed freshly or updated/migrated?
    DietPi downloaded and installed 2025/03/01; commands run:
    sudo apt-get update
    sudo apt-get upgrade

  • Can this issue be replicated on a fresh installation of DietPi?
    Fresh installation

  • Bug report ID | echo $G_HW_UUID
    4fa9a17f-f6aa-45c2-b938-c75fe267aa94

Steps to reproduce

  1. Audio(s) CD inserted into both integrated and external USB-attached CD/DVD drive
  2. dietpi-drive_manager invoked to mount CD

Note: When a DVD is inserted, this is reflected by dietpi-drive_manager and the DVD can be mounted successfully.

Expected behaviour

  • dietpi-drive_manager should reflect that Audio CD media is present in CD/DVD drive, and the CD can be mounted

Actual behaviour

  • dietpi-drive_manager shows following message:
    /tmp/sr0: /dev/sr0 | Please insert media into the ROM device
  • no indication that there is media present in CD/DVD drive.
    (same message for /tmp/sr1)
    Refresh invoked- no change.
    Console and dmesg show following messages:
[176835.169811] sr 1:0:0:0: [sr0] tag#13 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[176835.169824] sr 1:0:0:0: [sr0] tag#13 Sense Key : Illegal Request [current]
[176835.169831] sr 1:0:0:0: [sr0] tag#13 Add. Sense: Illegal mode for this track
[176835.169837] sr 1:0:0:0: [sr0] tag#13 CDB: Read(10) 28 00 00 00 00 20 00 00 02 00
[176835.169841] I/O error, dev sr0, sector 128 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[176835.169911] Buffer I/O error on dev sr0, logical block 16, async page read

Unable to mount Audio CD. This occurs with both internal and external CD/DVD drives and a selection of Audio CDs.

Extra details

I am effectively a noob; I’ve found the installation and configuration of DietPi very easy so far, except for this issue. I have searched using Google using the messages, and a variety of phrases and found virtually no matches. In my past experience this means that I have done something stupid or not done something that I should. However, the fact that a DVD (in fact, a Video DVD) can be mounted and its contents listed using ls -al shows that the device is working correctly.
Any assistance greatly appreciated.

Audio CDs cannot be mounted, they don’t contain any filesystem.

You need a dedicated program which can play and/or view the audio tracks, like VLC.

1 Like

Thank you so much- it had to be something obvious!
For anyone else finding this- I used abcde to access and rip CDs to MP3. Because I was using an external CD-ROM drive and my PC also had an internal one, I had to specify the device that I was ripping from. To find this, I listed the /dev directory and grep’d for “cd”:

dietpi@DietPi:/var/media/test$ ls -l /dev/ | grep cd
lrwxrwxrwx 1 root root           3 Mar  9 17:32 cdrom -> sr0
crw-rw---- 1 root cdrom    21,   1 Mar  9 17:01 sg1
crw-rw---- 1 root cdrom    21,   2 Mar  9 17:01 sg2
brw-rw---- 1 root cdrom    11,   0 Mar  9 17:32 sr0
brw-rw---- 1 root cdrom    11,   1 Mar  9 17:36 sr1

As there was a link from /dev/cdrom to sr0, I worked on the basis that the drive that I wanted was /dev/sr1 so the command that I used to rip from my external CD-ROM drive was:

sudo abcde -d /dev/sr1 -o mp3

Now getting a long way off topic, but (again) to help anyone who has similar noob problems,
abcde required the following packages:

sudo apt install eyed3
sudo apt install lame
sudo apt install id3v2

By default, abcde used eyeD3 to tag mp3 files but the software that I was subsequently streaming the mp3s (liquidsoap and icecast2) with didn’t recognise the id3v2.4 tags so I asked abcde to use id3v2.3 tags by adding the following to /etc/abcde.conf:

ID3TAGV=id3v2.3