Skip to contentSkip to conversation

still no cd/dvd burning as user with 2.6.9

DISCUSSION Clemens Schwaighofer 6 participants 13 messages Nov 3, 2004 – Nov 4, 2004 Block layer

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I use 2.6.9-ac3 on my Laptop and I just wanted to burn a DVD-Video with my external Pioneer DVD writer which is connected via fire-wire to the Laptop.

Before 2.6.9-ac3 I used 2.6.9-rc2-mm2 and with this I could write CDs/DVDs.

<rant>
So why is it still impossible that users can write CDs/DVDs. I, as a user, find this rather ridicolous that you have to patch the kernel to get this simple thing running. Security is important, yes, but this is just annoying.

I really hope that gets fixed soon, because its just annoying to reboot to a different kernel, just to write CDs ...
</rant>

lg, clemens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBiJhXjBz/yQjBxz8RAjdNAKCNDLnxwHk7JA13vPuJde0BAco0qwCfVyS3 gAWHY0/vh3P8BBEgo+Rx76U=
=olzo
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 17 lines · Clemens Schwaighofer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I use 2.6.9-ac3 on my Laptop and I just wanted to burn a DVD-Video with my external Pioneer DVD writer which is connected via fire-wire to the Laptop.

Before 2.6.9-ac3 I used 2.6.9-rc2-mm2 and with this I could write CDs/DVDs.

<rant>
So why is it still impossible that users can write CDs/DVDs. I, as a user, find this rather ridicolous that you have to patch the kernel to get this simple thing running. Security is important, yes, but this is just annoying.

Quoted 3 lines

I really hope that gets fixed soon, because its just annoying to reboot to a different kernel, just to write CDs ...
</rant>

It should work, are the permissions on your device file correct?

Signature · 1 line
Jens Axboe
#9 lore raw
In reply to Clemens Schwaighofer
Quoted 3 lines · Clemens Schwaighofer

I use 2.6.9-ac3 on my Laptop and I just wanted to burn a DVD-Video with my external Pioneer DVD writer which is connected via fire-wire to the Laptop.

Make sure that cdrecord (or the analogous DVD burning utility) is NOT setuid root and that you (as a user) have the write permission for the writer device node.

Signature · 1 line
Alexander E. Patrakov
#2 lore raw
In reply to Jens Axboe

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Jens Axboe

It should work, are the permissions on your device file correct?

that was the first thing I checked:

gullevek@pluto:~$ ls -l /dev/scd3
brw-rw----  1 root cdrom 11, 3 2004-04-30 09:28 /dev/scd3

then I thought I am not in the right group:

gullevek@pluto:~$ groups
users disk cdrom audio operator video staff games

but I am ...

I haven't tried to write a CD, but DVD is definilty not possible, because the device is _not_ listed in k3b if started as user. The internal CD writer is, so probably I can write here, because before, this wasn't even listed ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBiJ60jBz/yQjBxz8RAql/AKCAjzCNPZCjHFPo8V1SCwEoAwYlHgCgxY0/ LuZBC4owtk8tYn2/M8jnFlw=
=z23f
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 17 lines · Clemens Schwaighofer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Jens Axboe

It should work, are the permissions on your device file correct?

that was the first thing I checked:

gullevek@pluto:~$ ls -l /dev/scd3
brw-rw----  1 root cdrom 11, 3 2004-04-30 09:28 /dev/scd3

then I thought I am not in the right group:

gullevek@pluto:~$ groups
users disk cdrom audio operator video staff games
Quoted 6 lines

but I am ...

I haven't tried to write a CD, but DVD is definilty not possible, because the device is _not_ listed in k3b if started as user. The internal CD writer is, so probably I can write here, because before, this wasn't even listed ...

Try with this debug patch so we can see if it rejects command it should not.

===== drivers/block/scsi_ioctl.c 1.57 vs edited =====

drivers/block/scsi_ioctl.c +3 -1
@@ -220,8 +220,10 @@
 		return -EINVAL;
 	if (copy_from_user(cmd, hdr->cmdp, hdr->cmd_len))
 		return -EFAULT;
-	if (verify_command(file, cmd))
+	if (verify_command(file, cmd)) {
+		printk(KERN_ERR "rejected command %x\n", cmd[0]);
 		return -EPERM;
+	}
 
 	/*
 	 * we'll do that later
Signature · 1 line
Jens Axboe
#7 lore raw
In reply to Clemens Schwaighofer
Quoted 13 lines · you
Quoted 1 line · Jens Axboe

It should work, are the permissions on your device file correct?

that was the first thing I checked:

gullevek@pluto:~$ ls -l /dev/scd3
brw-rw----  1 root cdrom 11, 3 2004-04-30 09:28 /dev/scd3

then I thought I am not in the right group:

gullevek@pluto:~$ groups
users disk cdrom audio operator video staff games
Quoted 6 lines

but I am ...

I haven't tried to write a CD, but DVD is definilty not possible, because the device is _not_ listed in k3b if started as user. The internal CD writer is, so probably I can write here, because before, this wasn't even listed ...

I'm running a 2.6.9 vanilla and, as user, my toshiba DVD is correctly listed by k3b... the only thing that sounds strange is an error saying it's impossible to determine the supported writeing speed by the device

Signature · 4 lines
<?php echo '       Emiliano `AlberT` Gabrielli       ',"\n",
           '  E-Mail: AlberT_AT_SuperAlberT_it  ',"\n",
           '  Web:    http://SuperAlberT.it  ',"\n",
'  IRC:    #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>
#8 lore raw
In reply to Clemens Schwaighofer
Quoted 6 lines · Clemens Schwaighofer

but I am ...

I haven't tried to write a CD, but DVD is definilty not possible, because the device is _not_ listed in k3b if started as user. The internal CD writer is, so probably I can write here, because before, this wasn't even listed ...

Hi,

I have a NEC's DVD writer and it works.

[1] /var/log/dmesg
(...)
Probing IDE interface ide1...
hdc: _NEC DVD_RW ND-3500AG, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15
(...)

[2] modprobe ide_cd
(...)
hdc: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20
(...)

[3] k3b lists it and works.

# uname -a
Linux vmx 2.6.10 #1 Fri Oct 29 19:24:27 CEST 2004 i686
                    Celeron_(Coppermine) unknown PLD Linux
# groups
users disk wheel proc audio video
# la /dev/hdc*
brw-rw----  1 root disk 22,  0 2004-07-16 08:16 /dev/hdc
#11 lore raw
In reply to Clemens Schwaighofer
Quoted 6 lines · Clemens Schwaighofer

Hi,

I use 2.6.9-ac3 on my Laptop and I just wanted to burn a DVD-Video with my external Pioneer DVD writer which is connected via fire-wire to the Laptop.

Quoted 7 lines

Before 2.6.9-ac3 I used 2.6.9-rc2-mm2 and with this I could write CDs/DVDs.

<rant>
So why is it still impossible that users can write CDs/DVDs. I, as a user, find this rather ridicolous that you have to patch the kernel to get this simple thing running. Security is important, yes, but this is just annoying.

Security is important, there are no buts about it. See the almost endless thread on this earlier. You can run your burns as root, of course.

Quoted 4 lines

I really hope that gets fixed soon, because its just annoying to reboot to a different kernel, just to write CDs ...
</rant>

I'm not sure what you consider "fixed" in this context, but if you mean disabled security I don't personally expect (or want) that.

Someone claimed that cdrecord could get RR scheduling with attributes set (did they mean capabilities?), but I haven't seen a working example
yet.

Signature · 3 lines
   -bill davidsen ([email protected])
"The secret to procrastination is to put things off until the
 last possible moment - but no longer"  -me
#12 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Bill Davidsen
Quoted 5 lines

<rant>
So why is it still impossible that users can write CDs/DVDs. I, as a user, find this rather ridicolous that you have to patch the kernel to get this simple thing running. Security is important, yes, but this is just annoying.

Security is important, there are no buts about it. See the almost endless thread on this earlier. You can run your burns as root, of course.

of course I can ... I can even start X as root if I set it up correct, but thats not the point. The point of having a user, is _not_ to have to start programs as root. I don't want that.

Sure its just my private laptop, at home, where only I work on, and its behind a route. Still, I think that argument _does_ not count.

If its a security thing, and the client program hasn't adepted, okay, but this ...

Quoted 7 lines
Quoted 3 lines

I really hope that gets fixed soon, because its just annoying to reboot to a different kernel, just to write CDs ...
</rant>

I'm not sure what you consider "fixed" in this context, but if you mean disabled security I don't personally expect (or want) that.

That was not my wish and I don't want that.

Quoted 3 lines

Someone claimed that cdrecord could get RR scheduling with attributes set (did they mean capabilities?), but I haven't seen a working example
yet.

well I use k3b so it uses groisofs to burn dvds ... I don't care much about cdrecord and in my deep inner world I hope they get replaced, by someone with whom you can argue.

lg, clemens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBiWSHjBz/yQjBxz8RAtMCAKDg8YskmjEvOnPXOfkE1MSIDgpuuQCfe0Pw 4K6HkDuj6rg8LAJXfHXwhEQ=
=5+IQ
-----END PGP SIGNATURE-----

#4 lore raw
In reply to Jens Axboe

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 22 lines · Jens Axboe
Quoted 20 lines · Clemens Schwaighofer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Jens Axboe

It should work, are the permissions on your device file correct?

that was the first thing I checked:

gullevek@pluto:~$ ls -l /dev/scd3
brw-rw----  1 root cdrom 11, 3 2004-04-30 09:28 /dev/scd3

then I thought I am not in the right group:

gullevek@pluto:~$ groups
users disk cdrom audio operator video staff games

but I am ...

Quoted 8 lines
Quoted 4 lines

I haven't tried to write a CD, but DVD is definilty not possible, because the device is _not_ listed in k3b if started as user. The internal CD writer is, so probably I can write here, because before, this wasn't even listed ...

Try with this debug patch so we can see if it rejects command it should not.

I added the patch again 2.6.9-ac6:

The strange thing is, this time I see a device, but its crippled:

k3b sees it as 7 0.62 1 /157 3474

But this device can not the DVD writer, because the dvd writer is on /dev/scd3, this strange device above is on /dev/scd0. But still acording to the settings, this device can burn dvds (Writes-DVD-R(W)s: yes).

So I tried again to start k3b as root, but this time the dvd writer didn't show up anymore ... Somehow I get here very confused.

this is my dmesg output when I turn on my DVD writer

drivers/usb/input/hid-input.c: event field not found
ieee1394: Error parsing configrom for node 0-00:1023
ieee1394: Error parsing configrom for node 0-01:1023
ieee1394: Error parsing configrom for node 0-02:1023
ieee1394: Error parsing configrom for node 0-03:1023
ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
ieee1394: Node added: ID:BUS[0-00:1023] GUID[00e03600500008f2]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node changed: 0-01:1023 -> 0-02:1023
ieee1394: Node changed: 0-02:1023 -> 0-03:1023
ieee1394: sbp2: Error reconnecting to SBP-2 device - reconnect failed
ieee1394: sbp2: Logged out of SBP-2 device
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-01:1023: Max speed [S400] - Max payload [2048]
ieee1394: sbp2: Error reconnecting to SBP-2 device - reconnect failed
ieee1394: sbp2: Logged out of SBP-2 device
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-02:1023: Max speed [S400] - Max payload [2048] scsi3 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: PIONEER Model: DVD-RW DVR-105 Rev: 1.20
Type: CD-ROM ANSI SCSI revision: 02
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray Attached scsi CD-ROM sr0 at scsi3, channel 0, id 0, lun 0 Attached scsi generic sg3 at scsi3, channel 0, id 0, lun 0, type 5

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBiWgWjBz/yQjBxz8RAqQ0AJ0Yqgej/kA2nzh8/DMjh2npJmef1QCeKfDK oDLsIvckv12GjABqexAnDMM=
=KcWT
-----END PGP SIGNATURE-----

#10 lore raw
In reply to Alexander E. Patrakov

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/03/2004 05:59 PM, Alexander E. Patrakov wrote:

| Clemens Schwaighofer wrote:
|
|
|>I use 2.6.9-ac3 on my Laptop and I just wanted to burn a DVD-Video with
|>my external Pioneer DVD writer which is connected via fire-wire to the
|>Laptop.
|
|
| Make sure that cdrecord (or the analogous DVD burning utility) is NOT

setuid
| root and that you (as a user) have the write permission for the writer | device node.

thanks I will check that out. But what I am more worried, is that I don't even see the device ...

- --
[ Clemens Schwaighofer -----=====:::::~ ]
[ TBWA\ && TEQUILA\ Japan IT Group ]
[ 6-17-2 Ginza Chuo-ku, Tokyo 104-0061, JAPAN ]
[ Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343 ]
[ http://www.tequila.co.jp http://www.tbwajapan.co.jp ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBiX0hjBz/yQjBxz8RAhwKAKCipyXUsXiCLls3KSQaqQxsv2y31QCeLIY2 A6M58jAH4knQw69hSLJsWd4=
=fyoi
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Clemens Schwaighofer
Quoted 69 lines · Clemens Schwaighofer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 22 lines · Jens Axboe
Quoted 20 lines · Clemens Schwaighofer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Jens Axboe

It should work, are the permissions on your device file correct?

that was the first thing I checked:

gullevek@pluto:~$ ls -l /dev/scd3
brw-rw----  1 root cdrom 11, 3 2004-04-30 09:28 /dev/scd3

then I thought I am not in the right group:

gullevek@pluto:~$ groups
users disk cdrom audio operator video staff games

but I am ...

Quoted 8 lines
Quoted 4 lines

I haven't tried to write a CD, but DVD is definilty not possible, because the device is _not_ listed in k3b if started as user. The internal CD writer is, so probably I can write here, because before, this wasn't even listed ...

Try with this debug patch so we can see if it rejects command it should not.

I added the patch again 2.6.9-ac6:

The strange thing is, this time I see a device, but its crippled:

k3b sees it as 7 0.62 1 /157 3474

But this device can not the DVD writer, because the dvd writer is on /dev/scd3, this strange device above is on /dev/scd0. But still acording to the settings, this device can burn dvds (Writes-DVD-R(W)s: yes).

So I tried again to start k3b as root, but this time the dvd writer didn't show up anymore ... Somehow I get here very confused.

this is my dmesg output when I turn on my DVD writer

drivers/usb/input/hid-input.c: event field not found
ieee1394: Error parsing configrom for node 0-00:1023
ieee1394: Error parsing configrom for node 0-01:1023
ieee1394: Error parsing configrom for node 0-02:1023
ieee1394: Error parsing configrom for node 0-03:1023
ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
ieee1394: Node added: ID:BUS[0-00:1023] GUID[00e03600500008f2]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node changed: 0-01:1023 -> 0-02:1023
ieee1394: Node changed: 0-02:1023 -> 0-03:1023
ieee1394: sbp2: Error reconnecting to SBP-2 device - reconnect failed
ieee1394: sbp2: Logged out of SBP-2 device
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-01:1023: Max speed [S400] - Max payload [2048]
ieee1394: sbp2: Error reconnecting to SBP-2 device - reconnect failed
ieee1394: sbp2: Logged out of SBP-2 device
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-02:1023: Max speed [S400] - Max payload [2048]

Quoted 8 lines

scsi3 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
Vendor: PIONEER Model: DVD-RW DVR-105 Rev: 1.20
Type: CD-ROM ANSI SCSI revision: 02
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray Attached scsi CD-ROM sr0 at scsi3, channel 0, id 0, lun 0 Attached scsi generic sg3 at scsi3, channel 0, id 0, lun 0, type 5

Probably talk to the firewire folks about this issue.

Signature · 1 line
Jens Axboe
#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Jens Axboe

Probably talk to the firewire folks about this issue.

Yeah, just give a view up from what I tried today

2.6.9-rc2-mm2: works as user & root
2.6.9: doesn't work
2.6.9-ac3: doesn't work
2.6.9-ac6: doesn't work

I know I had first successful burned DVDs with 2.6.9-ac3, but I couldn't get it running agin. The kernel sees the device somehow, but totaly wrong, corrupted and not usable for burning. As root its often not seen at all.

Should I try the thing again with the IEEE/Firewire people? This might be the only solution to this very annoying problem.

lg, clemens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBihs3jBz/yQjBxz8RAianAJ4yEijyoQIpt93J1hWsw50tSzfd7ACg4XnH IYMX6mu3xlnzJ2LeT0hqBas=
=Otk+
-----END PGP SIGNATURE-----