Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

TrueOS Installed K3b, but doesn't find optical device

Robiww

FreeNAS Experienced
Joined
May 13, 2019
Messages
111
As the subject. I just installed K3b from AppCafe, but when I open it just says "no optical device found".
I guess there is some setting missing. Please help me out here?

I installed Trident from USB, if I instead would have installed from a DVD then it may have found it automatically (?)
 

Robiww

FreeNAS Experienced
Joined
May 13, 2019
Messages
111
# cdrecord -scanbus
John
groenveld@acm.org
This is what I got...
BTW, it says "SCSIBUS; but everything is connected by SATA. (O, I may be way off now ;) )

Code:
root@Trident:~ # cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.1) Copyright (C) 1995-2015 Joerg Schilling
Using libscg version 'schily-0.9'.
scsibus0:
        0,0,0     0) '' '' '' NON CCS Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '' '' '' NON CCS Disk
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
scsibus3:
        3,0,0   300) 'ASUS    ' 'DRW-24F1ST   a  ' '1.00' Removable CD-ROM
        3,1,0   301) *
        3,2,0   302) *
        3,3,0   303) *
        3,4,0   304) *
        3,5,0   305) *
        3,6,0   306) *
        3,7,0   307) *
root@Trident:~ #
 
Last edited:

groenveld

FreeNAS Experienced
Joined
May 10, 2019
Messages
232
Code:
root@Trident:~ # ls -l /dev/cd*
crw-r-----  1 root  operator  0x6d Jan 19 21:03 /dev/cd0
lrwxr-xr-x  1 root  wheel        8 Jan 19 21:04 /dev/cdrom -> /dev/cd0
# echo 'perm cd0 0660'>>/etc/devfs.conf
# echo 'perm xpt0 0660'>>/etc/devfs.conf
# echo 'perm pass* 0660'>>/etc/devfs.conf

# rc-service devfs restart

Confirm operator group has write access:
# ls -l /dev/cd*
Confirm robiww is part of operator:
# groups robiww

Confirm robiww can control the device:
$ cdrecord dev=3,0,0 -eject

John
groenveld@acm.org
 

Robiww

FreeNAS Experienced
Joined
May 13, 2019
Messages
111
All commands seemed to be accepted and it ejects, but only with superuser permissions. But when I start K3b I get the same error message as before "no optical device found".
I even tried to run a burn, but it didn't work.
The outcome of # ls -l /dev/cd* is also the same as before.

Code:
root@Trident:~ # echo 'perm cd0 0660'>>/etc/devfs.conf
root@Trident:~ # echo 'perm xpt0 0660'>>/etc/devfs.conf
root@Trident:~ # echo 'perm pass* 0660'>>/etc/devfs.conf
root@Trident:~ # rc-service devfs restart
* Stopping ntpd ...                                                   [ ok ]
* Stopping devfs ...                                                  [ ok ]
* Starting devfs ...                                                  [ ok ]
root@Trident:~ #  * Starting ntpd ...                                  [ ok ]
ls -l /dev/cd*
crw-r-----  1 root  operator  0x6d Jan 19 21:03 /dev/cd0
lrwxr-xr-x  1 root  wheel        8 Jan 19 21:04 /dev/cdrom -> /dev/cd0
root@Trident:~ # groups robiww
robiww wheel operator video
root@Trident:~ #

Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.1) Copyright (C) 1995-2015 Joerg Schilling
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'ASUS    '
Identifikation : 'DRW-24F1ST   a  '
Revision       : '1.00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
root@Trident:~ #
 

groenveld

FreeNAS Experienced
Joined
May 10, 2019
Messages
232
Code:
perm cd0 0660
perm xpt0 0660
perm pass* 0660
root@Trident:~ #
# echo "add path 'cd[0-9]*' mode 660" >>/etc/devfs.rules
# echo "add path 'xpt[0-9]*' mode 660" >>/etc/devfs.rules
# echo "add path 'pass[0-9]*' mode 660" >>/etc/devfs.rules

# service devfs restart

# ls -l /dev/cd*
John
groenveld@acm.org
 

Robiww

FreeNAS Experienced
Joined
May 13, 2019
Messages
111
Code:
root@Trident:~ # echo "add path 'cd[0-9]*' mode 660" >>/etc/devfs.rules
root@Trident:~ # echo "add path 'xpt[0-9]*' mode 660" >>/etc/devfs.rules
root@Trident:~ # echo "add path 'pass[0-9]*' mode 660" >>/etc/devfs.rules
root@Trident:~ # service devfs restart
 * Stopping ntpd ...                                                   [ ok ]
 * Stopping devfs ...                                                  [ ok ]
 * Starting devfs ...
 * devfs_set_ruleset: you must specify a ruleset number
 * devfs_apply_ruleset: you must specify a ruleset                     [ ok ]
root@Trident:~ #  * Starting ntpd ...                                  [ ok ]
ls -l /dev/cd*
crw-rw----  1 root  operator  0x86 Jan 20 05:03 /dev/cd0
lrwxr-xr-x  1 root  wheel        8 Jan 19 21:04 /dev/cdrom -> /dev/cd0
root@Trident:~ #
 

Robiww

FreeNAS Experienced
Joined
May 13, 2019
Messages
111
It's ejects now, but I still get the error message at opening K3b

Code:
Trident% cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.1) Copyright (C) 1995-2015 Joerg Schilling
cdrecord: Insufficient 'file read' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'file write' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems.
cdrecord: Insufficient 'memlock' privileges. You may get buffer underruns.
cdrecord: Insufficient 'priocntl' privileges. You may get buffer underruns.
cdrecord: Insufficient 'network' privileges. You will not be able to do remote SCSI.
Using libscg version 'schily-0.9'.
scsibus0:
        0,0,0     0) '' '' '' NON CCS Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '' '' '' NON CCS Disk
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
scsibus3:
        3,0,0   300) 'ASUS    ' 'DRW-24F1ST   a  ' '1.00' Removable CD-ROM
        3,1,0   301) *
        3,2,0   302) *
        3,3,0   303) *
        3,4,0   304) *
        3,5,0   305) *
        3,6,0   306) *
        3,7,0   307) *

Trident% cdrecord dev=3,0,0 -eject
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.1) Copyright (C) 1995-2015 Joerg Schilling
cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler.
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Insufficient 'file read' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'file write' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems.
cdrecord: Insufficient 'memlock' privileges. You may get buffer underruns.
cdrecord: Insufficient 'priocntl' privileges. You may get buffer underruns.
cdrecord: Insufficient 'network' privileges. You will not be able to do remote SCSI.
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'ASUS    '
Identifikation : 'DRW-24F1ST   a  '
Revision       : '1.00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Trident%
 

groenveld

FreeNAS Experienced
Joined
May 10, 2019
Messages
232

Robiww

FreeNAS Experienced
Joined
May 13, 2019
Messages
111
After that burn test I followed step 5, but except that it spinns the cd nothing happens, and when look in K3b's "Settings --> Configure k3b... --> Devices" it says "none" under both writing- and reading device.

It's seems to be almost unbelievable much work to get the cd to run.

Code:
Trident% mkisofs -R -o cdimage.raw Desktop
Setting input-charset to 'UTF-8' from locale.
Using ORG_K000.DES;1 for  /org.kde.okular.desktop (org.kde.kate.desktop)
Using ORG_K001.DES;1 for  /org.kde.kate.desktop (org.kde.gwenview.desktop)
Using ORG_K002.DES;1 for  /org.kde.gwenview.desktop (org.kde.dolphin.desktop)
Using ORG_K003.DES;1 for  /org.kde.dolphin.desktop (org.kde.k3b.desktop)
Using ORG_K004.DES;1 for  /org.kde.k3b.desktop (org.kde.klipper.desktop)
Total translation table size: 0
Total rockridge attributes bytes: 3509
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
178 extents written (0 MB)
Trident% cdrecord -v dev=3,0,0 -dao cdimage.raw
Cdrecord-ProDVD-ProBD-Clone 3.01 (amd64-unknown-freebsd12.1) Copyright (C) 1995-2015 Joerg Schilling
TOC Type: 1 = CD-ROM
cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler.
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Insufficient 'file read' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'file write' privileges. You will not be able to open all needed devices.
cdrecord: Insufficient 'device' privileges. You may not be able to send all needed SCSI commands, this my cause various unexplainable problems.
cdrecord: Insufficient 'memlock' privileges. You may get buffer underruns.
cdrecord: Insufficient 'priocntl' privileges. You may get buffer underruns.
cdrecord: Insufficient 'network' privileges. You will not be able to do remote SCSI.
scsidev: '3,0,0'
scsibus: 3 target: 0 lun: 0
Using libscg version 'schily-0.9'.
SCSI buffer size: 65536
atapi: 0
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'ASUS    '
Identifikation : 'DRW-24F1ST   a  '
Revision       : '1.00'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD+RW
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD+R/DL
Profile: DVD+R
Profile: DVD+RW (current)
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-ROM
Profile: CD-RW
Profile: CD-R
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc-3 DVD+RW driver (mmc_dvdplusrw).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE
Supported modes: PACKET SAO LAYER_JUMP
Drive buf size : 423936 = 414 KB
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
FIFO size      : 4194304 = 4096 KB
Track 01: data     0 MB         padsize:  244 KB
Total size:        0 MB = 300 sectors
Current Secsize: 2048
Trying to clear drive status.
Blocks total: 2295104 Blocks current: 2295104 Blocks remaining: 2294804
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler.
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
Starting to write CD/DVD/BD at speed 4 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Starting new track at sector: 0
Track 02:    0 of    0 MB written.
Track 02: writing 244 KB of pad data.
Track 02: Total bytes read/written: 364544/614400 (300 sectors).
Writing  time:    7.633s (00:00:07.633)
Average write speed   0,1x.
Fixating...
Fixating time:    4.028s (00:00:04.028)
cdrecord: fifo had 6 puts and 6 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Trident%
 
Top