LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 07-10-2007, 05:16 AM   #1
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 12
Posts: 490
Thanked: 10
K3b and Slack 12 = no no?


[Log in to get rid of this advertisement]
I tried to burn a CD today and I get a buffer underrun error. And this is from the K3b debug output:

Code:
System
-----------------------
K3b Version: 1.0.2

KDE Version: 3.5.7
QT Version:  3.3.8
Kernel:      2.6.21.5-smp
Devices
-----------------------
HL-DT-ST DVD-RW GWA-4082N CB03 (/dev/hdc, ) [CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL] [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite]

K3bIsoImager
-----------------------
mkisofs print size result: 288986 (591843328 bytes)
Pipe throughput: 117760 bytes read, 113408 bytes written.

Used versions
-----------------------
mkisofs: 2.1.1a23
cdrecord: 2.1.1a23

cdrecord
-----------------------
/usr/bin/cdrecord: Warning: Running on Linux-2.6.21.5-smp
/usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer.
/usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
/usr/bin/cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits./usr/bin/cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
/usr/bin/cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
/usr/bin/cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
/usr/bin/cdrecord: WARNING: This causes a high risk for buffer underruns.
scsidev: '/dev/hdc'
devname: '/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
SCSI buffer size: 64512
Cdrecord-ProDVD-Clone 2.01.01a23 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.9'.
Driveropts: 'burnfree'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVD-RW GWA-4082N'
Revision       : 'CB03'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-R sequential recording 
Profile: DVD-R/DL sequential recording 
Profile: DVD-RW sequential overwrite 
Profile: DVD-RW restricted overwrite 
Profile: DVD+RW 
Profile: DVD+R 
Profile: DVD+R/DL 
Profile: DVD-ROM 
Profile: CD-R (current)
Profile: CD-RW 
Profile: CD-ROM 
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
Drive buf size : 1053696 = 1029 KB
Drive pbuf size: 1966080 = 1920 KB
FIFO size      : 4194304 = 4096 KB
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
Track 01: data   564 MB        
Total size:      648 MB (64:13.14) = 288986 sectors
Lout start:      648 MB (64:15/11) = 288986 sectors

cdrecord command:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/hdc speed=24 -dao driveropts=burnfree -data -tsize=288986s - 

mkisofs
-----------------------
288986
/usr/bin/mkisofs: Warning: Cannot add inode hints with -no-cache-inodes.
/usr/bin/mkisofs: Warning: Cannot add inode hints with -no-cache-inodes.
/usr/bin/mkisofs: Warning: Cannot add inode hints with -no-cache-inodes.
Using THE_FAST_AND_THE_FURIOUS_000.MP;1 for  /The Fast And The Furious (Tokyo Drift) Soundtrack - 08. Dragon Ash - Resound.mp3 (The Fast And The Furious (Tokyo Drift) Soundtrack - 07. Teriyaki Boyz - Cho Large.mp3)
Using APOCALYPTICA___THE_BEST_000.JPG;1 for  Apocalyptica/The Best of/Apocalyptica - The Best of - inside.jpg (Apocalyptica - The Best of - front.jpg)
Using APOCALYPTICA___THE_BEST_001.JPG;1 for  Apocalyptica/The Best of/Apocalyptica - The Best of - front.jpg (Apocalyptica - The Best of - CD.jpg)
Using APOCALYPTICA___THE_BEST_002.JPG;1 for  Apocalyptica/The Best of/Apocalyptica - The Best of - CD.jpg (Apocalyptica - The Best of - back.jpg)
Using RHAPSODY___THE_DARK_SECR000.MP3;1 for  rhapsody/Rhapsody - The Dark Secret - 05 - Non Ho Sonno.mp3 (Rhapsody - The Dark Secret - 04 - Sacred Power Of Raging Winds.mp3)
Using RHAPSODY___THE_DARK_SECR001.MP3;1 for  rhapsody/Rhapsody - The Dark Secret - 04 - Sacred Power Of Raging Winds.mp3 (Rhapsody - The Dark Secret - 03 - Guardians Of Destiny.mp3)
Using RHAPSODY___THE_DARK_SECR002.MP3;1 for  rhapsody/Rhapsody - The Dark Secret - 03 - Guardians Of Destiny.mp3 (Rhapsody - The Dark Secret - 02 - Thunder's Mighty Roar.mp3)
Using RHAPSODY___THE_DARK_SECR003.MP3;1 for  rhapsody/Rhapsody - The Dark Secret - 02 - Thunder's Mighty Roar.mp3 (Rhapsody - The Dark Secret - 01 - Unholy Warcry.mp3)

mkisofs calculate size command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -print-size -quiet -volid Seminarska -volset  -appid K3B THE CD KREATOR (C) 1998-2006 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-fire/k3byRPwYa.tmp -rational-rock -hide-list /tmp/kde-fire/k3bNi3Jic.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-fire/k3bRVdSvb.tmp -no-cache-inodes -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-fire/k3bQQ6Eya.tmp 

mkisofs command:
-----------------------
/usr/bin/mkisofs -gui -graft-points -volid Seminarska -volset  -appid K3B THE CD KREATOR (C) 1998-2006 SEBASTIAN TRUEG AND THE K3B TEAM -publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1 -sort /tmp/kde-fire/k3bTqBDpa.tmp -rational-rock -hide-list /tmp/kde-fire/k3bXspzIa.tmp -joliet -joliet-long -hide-joliet-list /tmp/kde-fire/k3bewNWLa.tmp -no-cache-inodes -full-iso9660-filenames -iso-level 2 -path-list /tmp/kde-fire/k3bErLDma.tmp
I have no idea what to do or what this means. Can anyone help me?
Tux-Slack is offline     Reply With Quote
Old 07-10-2007, 06:45 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,444
Thanked: 18
Are you 100% sure it's a buffer underrun?

It looks to me like K3B gets through making the ISO filesystem and then this happens:

Code:
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
Is your user in the "cdrom" group?

Last edited by rkelsen; 07-10-2007 at 06:54 AM..
rkelsen is offline     Reply With Quote
Old 07-10-2007, 07:42 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 2,139
Thanked: 10
Did you set the file permissions in k3b 'options - setup system permissions'?
dive is offline     Reply With Quote
Old 07-10-2007, 01:53 PM   #4
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 12
Posts: 490
Thanked: 10

Original Poster
Yes my users are in cdrom group, but I didn't set up the permissions. Thank you
Tux-Slack is offline     Reply With Quote
Old 07-11-2007, 03:47 AM   #5
larvyde
LQ Newbie
 
Registered: Jul 2007
Posts: 4
Thanked: 0
i ran into the exact same problem just last week, downloaded and recompiled cdrecord 2.01 from the cdrecord site and k3b started working again...
larvyde is offline     Reply With Quote
Old 07-28-2007, 04:47 PM   #6
pr1268
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 12.0
Posts: 9
Thanked: 0
Here's a RELATED question: I hadn't changed the permissions on cdrecord nor cdrdao since I read in the Slackware-current changelog (entry dated April 19, 2007) that, because k3b no longer "requires" cdrecord to be setuid root, it was moved into the main tree. But, I just tried to burn a CD-ROM ISO and it failed miserably. When I changed the permissions per k3b setup, it worked fine.

My non-privileged account is a member of the cdrom group, and the block devices /dev/hda (my dual-layer DVD burner) and /dev/hdc (my CD-burner/DVD-ROM drive) both have 660 permissions.

So here's the question: How come I've been able to burn DVD-ROMs left and right without such trouble? Isn't growisofs simply some kind of wrapper for makeisofs and cdrecord? Or am I misunderstanding the relationship between all these programs? Thanks for replies...
pr1268 is offline  
Tag This Post , ,
Reply With Quote
Old 08-14-2007, 10:16 PM   #7
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190
Thanked: 0
Had this problem, and setting the permissions to the cdrom group in Settings > Setup System Permissions fixed it.
thekid is offline     Reply With Quote
Old 08-28-2007, 09:25 PM   #8
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: Dual Boot WinXP+ FreeBSD7.0, Slackware 12.0
Posts: 447
Thanked: 0
I am having the same issue with xfce and graveman. Could "The Kid" provide more info as to what permissions were changed. My system has a Via C3 cpu which is cool and efficient but no powerhouse so I would like to stay with a lightweight system ie no K3B and the KDE dependencies
shepper is offline     Reply With Quote
Old 08-31-2007, 12:47 AM   #9
thekid
Member
 
Registered: Jun 2005
Location: The Golden State
Distribution: Ubuntu 8.04
Posts: 190
Thanked: 0
Quote:
Originally Posted by shepper View Post
I am having the same issue with xfce and graveman. Could "The Kid" provide more info as to what permissions were changed. My system has a Via C3 cpu which is cool and efficient but no powerhouse so I would like to stay with a lightweight system ie no K3B and the KDE dependencies
The settings I changed were in the K3B program, Settings menu -> Setup System Permissions. Also, adding yourself to the cdrom group is essential. Not sure how to fix it if you don't want to use K3B. Try searching for cdrecord and see what pops up, if that is what you plan on using.
thekid is offline     Reply With Quote
Old 08-31-2007, 01:57 AM   #10
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,396
Thanked: 128
Allegedly, the version of cdrecord in Slackware 12 no longer requires the suid bit, and I am aware of several *very* reputable individuals who can confirm that. However, my experience does not support that assertion, and I am aware of several other people with the same experience. Long story short - if you get those messages indicating that the SCSI ioctls can't be used, then set /usr/bin/cdrecord suid.

If you're not the paranoid type and/or you don't have any untrusted users on the box, the simplest thing to do is this:
Code:
chmod 4755 /usr/bin/cdrecord
If you don't want all users on the box to use the cdrecord executable (since it will be suid), then you can do this:
Code:
chown root:somegroup /usr/bin/cdrecord
chmod 4710 /usr/bin/cdrecord
This will allow only members of "somegroup" (use whatever group name you wish) to execute cdrecord.
rworkman is offline     Reply With Quote
Old 08-31-2007, 12:48 PM   #11
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 980
Thanked: 0
How did they design Unix...?

Quote:
Originally Posted by pr1268 View Post
Here's a RELATED question: I hadn't changed the permissions on cdrecord nor cdrdao since I read in the Slackware-current changelog (entry dated April 19, 2007) that, because k3b no longer "requires" cdrecord to be setuid root, it was moved into the main tree. But, I just tried to burn a CD-ROM ISO and it failed miserably. When I changed the permissions per k3b setup, it worked fine.

My non-privileged account is a member of the cdrom group, and the block devices /dev/hda (my dual-layer DVD burner) and /dev/hdc (my CD-burner/DVD-ROM drive) both have 660 permissions.

So here's the question: How come I've been able to burn DVD-ROMs left and right without such trouble? Isn't growisofs simply some kind of wrapper for makeisofs and cdrecord? Or am I misunderstanding the relationship between all these programs? Thanks for replies...
That simple three layer access level, Owner, Group, World pretty much made the difference between what we know as Linux and what the world knows as... that other thing I used only to play games with.

You would *think* Vista would have come out with a similar security design, but apparently not...

- Perry
perry is offline     Reply With Quote
Old 11-25-2007, 10:45 PM   #12
ralvy
Member
 
Registered: Nov 2004
Posts: 36
Thanked: 0
Quote:
Originally Posted by thekid View Post
Had this problem, and setting the permissions to the cdrom group in Settings > Setup System Permissions fixed it.
Thanks! This solved the only problem I was having with Slackware 12.
ralvy is offline     Reply With Quote
Old 03-01-2008, 08:32 PM   #13
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371
Thanked: 2
K3B "Settings -> Setup System Permissions" also worked for me in Slackware 12, kernel 2.6.21.5

Thanks for the tip!
pnellesen is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slack current and k3b xushi Slackware 6 08-02-2005 03:11 AM
k3b in slack onelung02 Slackware 1 01-14-2005 02:54 PM
k3b on Slack 9.0, libasound.so.2 german Linux - Software 4 08-17-2004 07:29 AM
K3b in Slack 9.1 irfanhab Slackware 4 04-09-2004 06:37 PM
Installed Slack 9.1. Where is K3B??? tigerflag Slackware 13 10-11-2003 04:23 PM


All times are GMT -5. The time now is 12:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration