burning with K3b

Hi everyone.
I have KDE on my desktop and I installed K3b.
I want to test and burn some CD/DVD. When I started for the first time K3b I got a System Configuration Problem:
Code:
K3b did not find an optical writing device in your system.
Thus, you will not be able to burn CDs or DVDs.
However, you can still use other K3b features like audio track extraction or audio transcoding or ISO9660 image creation.
So I went to K3b > Settings > Setup Devices > Writer Devices and add /dev/acd0 and I got:
Code:
Could not find an additional device at
/dev/acd0
I have to mount first the CDROM?
Here's my entry for CDROM in fstab:
Code:
/dev/acd0               /cdrom                  cd9660  ro,noauto               0       0
What are the correct settings for K3b in order to burn?
thanks
 
I think it's a permission issue (you'll know its a permission issue if k3b can 'see' your cdrom if you were to launch k3b as root).

Edit your /etc/devfs.conf, and give read write permission to normal user. Add user to 'operator' group as well.

My devfs.conf:
Code:
own     /dev/cd1        root:operator
perm    /dev/cd1        0660


Restart devfs:
Code:
/etc/rc.d/devfs restart
 
thanks sixtydoses, I tried k3b under root and I got the same message.
Now for understanding better, in your example /dev/cd1 is your CDROM?
If my CD is in /dev/acd0 can I add something like that in /etc/devfs.conf
Code:
own    /dev/acd0 root:operator
perm   /dev/acd0 0660
thanks
 
hirohitosan said:
Now for understanding better, in your example /dev/cd1 is your CDROM? If my CD is in /dev/acd0 can I add something like that in /etc/devfs.conf
Code:
own    /dev/acd0 root:operator
perm   /dev/acd0 0660
thanks

Yes.

Sorry, I haven't used k3b for sometime, but I had a similar issue with my xfburn, and the problem solved after adding myself to operator group, and set the rw permission to my dvd-r. I forgot to mention that I added the following too in my devfs.conf.

Code:
own     /dev/pass0      root:operator
perm    /dev/pass0      0660

own     /dev/pass1      root:operator
perm    /dev/pass1      0660

own     /dev/xpt0       root:operator
perm    /dev/xpt0       0660

Just now I launched my k3b and it's working fine as well.
 
No need to add it to the kernel.
Just load it with
# kldload atapicam
and add
Code:
atapicam_load="YES"
to /boot/loader.conf
 
where I am?

reading your posts I add in /boot/loader.conf
Code:
atapicam_load="YES"
add myself in operator group
add in /etc/fstab
Code:
/dev/cd0                /cdrom          cd9660  ro,noauto       0       0
BTW I found this:
NOTE: If you use k3b in KDE or any other desktop with HAL enabled (default on KDE), do not add these fstab entries. Doing so will prevent HAL from mounting your CDs/DVDs.
so I dont know to add or no that entry in fstab
After that I modify:
Code:
chmod 4711 /usr/local/bin/cdrecord
chmod 4711 /usr/local/bin/cdrdao
I add this in rc.conf
Code:
add devd_enable="YES" to /etc/rc.conf
I modified /etc/devfs.conf
Code:
own    /dev/acd0 root:operator
perm   /dev/acd0 0660

own     /dev/pass0      root:operator
perm    /dev/pass0      0660

own     /dev/pass1      root:operator
perm    /dev/pass1      0660

own     /dev/xpt0       root:operator
perm    /dev/xpt0       0660
now I'm lost.
My K3b shows my the same message:
Code:
No CD/DVD writer found.
K3b did not find an optical writing device in your system. Thus, you will not be able to burn CDs or DVDs. However, you can still use other 
K3b features like audio track extraction or audio transcoding or ISO9660 image creation.
what's wrong?
 
Remove the entry in /etc/fstab. Make sure both hald and dbus are running.

Remove the devd_enable from /etc/rc.conf, you don't need it.

Change the /dev/acd0 in /etc/devfs.conf to /dev/cd0.

Remove the SUID root bits from cdrecord and cdrdao, they're not needed.
 
Just wondering if you've either loaded the atapicam module using the # kldload command or rebooted your machine after adding the atapicam inside /boot/loader.conf?
 
@ SirDice: I removed the entry in /etc/fstab, removed devd_enable from /etc/rc.conf, changed the /dev/acd0 in /etc/devfs.conf to /dev/cd0.
hald and dbus are enabled in rc.conf
Removed the SUID root bits from cdrecord and cdrdao, like this:
# chmod -s /usr/local/bin/cdrdao
and now I have:
Code:
ls -al /usr/local/bin/cdr*
-rwx--x--x  1 root  wheel  615608 Dec  9 18:18 /usr/local/bin/cdrdao
-rwx--x--x  1 root  wheel  353200 Dec  9 15:59 /usr/local/bin/cdrecord
and reboot
unfortunately I cannot check now for I'm not at my desktop, I did all remotely

@ sixtydoses: I rebooted my machine after adding the atapicam inside /boot/loader.conf
 
Not sure if KDE needs this, probably does. Also make sure you have these in /usr/local/etc/PolicyKit/PolicyKit.conf:
Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>
    <match action="org.freedesktop.hal.storage.mount-removable">
        <match user="dice">
                <return result="yes"/>
        </match>
    </match>
    <match action="org.freedesktop.hal.storage.mount-fixed">
        <match user="dice">
                <return result="yes"/>
        </match>
    </match>
    <match action="org.freedesktop.hal.storage.eject">
        <match user="dice">
                <return result="yes"/>
        </match>
    </match>
</config>

Change the "match user" accordingly of course :e
 
I modified everything (also /usr/local/etc/PolicyKit/PolicyKit.conf) and still have that message
Code:
No CD/DVD writer found...
and also I checked
Code:
$ dmesg
(probe0:ata0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:ata0:0:0:0): CAM Status: SCSI Status Error
(probe0:ata0:0:0:0): SCSI Status: Check Condition
(probe0:ata0:0:0:0): NOT READY asc:3a,0
(probe0:ata0:0:0:0): Medium not present
(probe0:ata0:0:0:0): Unretryable error
cd0 at ata0 bus 0 target 0 lun 0
cd0: <HL-DT-ST DVD-RAM GH22NP20 1.01> Removable CD-ROM SCSI-0 device
cd0: 66.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not presentSMP: AP CPU #1 Launched!
calcru: runtime went backwards from 280 usec to 277 usec for pid 851 (nfsd)
calcru: runtime went backwards from 254 usec to 251 usec for pid 556 (dhclient)
it seems to me that cdrom is not recognized and I don't understand why? I'm sure it must be a little thing somewhere but I cannot figure where.
 
The drive is recognized. It just complains about not being able to read the media but that's because there's nothing in the drive.
 
SirDice said:
The drive is recognized. It just complains about not being able to read the media but that's because there's nothing in the drive.
In this case how can I burn a CD/DVD?
I insert an empty CD in my drive and start K3b and gives me the same message
Code:
No CD/DVD writer found...
Do I have to mount the CD/DVD first?
I inserted a normal DVD (not empty) and it was automatically mounted by KDE (in /media/dvd-content) and I can browse it with Dolphin but again when I started K3b got the same message: No CD/DVD writer found...

and just a thought ... it has nothing to do with the defs.rules that I modified for my USB printer? (was just a thought)
 
Code:
/etc/devfs.conf
own     /dev/cd0        root:operator
perm    /dev/cd0        0660

own     /dev/pass0      root:operator
perm    /dev/pass0      0660

own     /dev/pass1      root:operator
perm    /dev/pass1      0660

own     /dev/xpt0       root:operator
perm    /dev/xpt0       0660

/etc/devfs.rules
[localrules=10]
# Parallel port:
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
#add path 'lpt*' mode 0660 group cups

/etc/sysctl.conf
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules
 
Just copy and paste the changes I've made into your own files and reboot.

/etc/rc.conf

Code:
devfs_system_ruleset="localrules"


/etc/devfs.conf

Code:
# Commonly used by many ports (use 1 of the 2 below)
#link	acd0	cdrom
link	cd0	cdrom

perm	/dev/acd0	0666 
perm	/dev/cd0	0666

# Allow all USB Devices to be mounted 
perm	/dev/da0	0666 
perm	/dev/da1	0666 
perm	/dev/da2	0666
perm	/dev/da3	0666

# Misc other devices 
perm	/dev/pass0 	0666 
perm	/dev/xpt0	0666
perm	/dev/dsp*	0666


/etc/devfs.rules

Code:
[localrules=10]
add path 'da*s*' mode 0666 group operator
add path 'ad*' mode 666 group operator 
add path 'acd*' mode 666 group operator 
add path 'cd*' mode 666 group operator 
add path 'pass*' mode 666 group operator 
add path 'xpt*' mode 666 group operator 
add path 'ugen*' mode 666 group operator
add path 'usb*' mode 666 group operator
#add path 'lpt*' mode 666 group cups
add path 'ulpt*' mode 666 group cups
add path 'unlpt*' mode 666 group cups

/etc/sysctl.conf

Code:
vfs.usermount=1
kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules
 
thank you FBSDin20Steps. I did everything remotely and reboot. I'll check tomorrow when I'll touch my desktop. :)
 
FBSDin20Steps said:
Code:
# Commonly used by many ports
link	acd0	cdrom
link	cd0	cdrom
You can't symlink both acd0 and cd0 to cdrom.
 
First thing! My K3b started with no issues.
I inserted a blank CD and my computer RESET! (it is not normal, I think)
after reset with the blank CD inside I could write on CD but I think that not all information was writen on CD.
I tried to mount the iso image with:
Code:
mount -o loop -t iso9660 image.iso /mnt/iso
: Operation not supported by device
what went wrong?
what is the correct command to mount a iso file in FreeBSD?
Why my computer is reseting every time when I insert a CD? It is second time when it reseted.
 
Back
Top