Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hullo All,
I am running K3b 1.0.4 on Fedora 8.
I find that if I use iK3b as a normal user I end up with some sort of error, either during writing or during verification, but if I log in as root and then try the same exercise it works perfectly.
K3b starts up OK, but gives these niggly problems when not using it as root.
An example...I wrote a CD-RW data disc and asked for verification. During writing none of the progress bars showed any progress (always reporting 0%), but the text window said the normal stuff. While still showing 0% done, it opened the drawer, then re-loaded the disc, presumably for verification (it didn't say), then reported an error, saying it didn't have permission.
I closed K3b and then tried reading the CD, which showed the files and dirs had been written, but a zip archive couldn't be opened by file-roller.
I erased that CD-RW disc and then did the same process as root, and all went perfectly.
While that is only one example, I have had similar things happen, although I must say that I haven't used this version of K3b much since installing F8, so it is possible that there is a bit of coincidence involved.
Is there an issue with who runs K3b?
I seem to remember always having to use it as root in FC6.
If there is a root user issue, what can be done to allow ordinary users to do use K3b without problems?
[QUOTE][Could be related to SELinux. If so it's fixable but we need you to post verbose and exact errors./QUOTE]
OK, I understand that more info is usually needed, but I have almost given up on second guessing what info someone who knows will want, so have used the approach of asking the question, setting the scene and then when someone needs more info then I can get it for them. Sorry if this isn't how most like it to be done.
I have just run another test and this time I get a different answers!
I tried to burn a CD-RW on my DVD burner as normal user. The writing was successful, but an error found when verifying the data. I can open the CD and randomly selected files open OK.. I have the debug report from K3b, which I will attach below, but I don't think it helps.
I erased the CD-RW and then tried as root, and exactly the same problem occurred. Error reading the same sector.
I erased the CD-RW again and then tried writing as normal user in my CD-ROM burner. This time it verified without error.
So, whilst I didn't get the same error as originally reported, the error was still associated with verification, and I am beginning to wonder if it is related to hardware. I.E. burning CD-ROM in DVD doesn't verify but burning in CD-RW drive does verify.
When I get a bit more time I will test burning a DVD as norrmal user and root and see what happens.
Attached is the K3b debug report. If there are any clues there, please let me know.
ATAPI CD-R/RW 10X8X32 8.HZ (/dev/sr1, ) [CD-R, CD-RW, CD-ROM] [Error] [SAO, TAO, RAW, RAW/R16, RAW/R96R]
K3bDataTrackReader
-----------------------
reading sectors 0 to 5582 with sector size 2048. Length: 5583 sectors, 11433984 bytes.
using buffer size of 62 blocks.
Problem while reading. Retrying from sector 0.
Problem while reading. Retrying from sector 62.
Read error in sector 77.
Read a total of 62 sectors (126976 bytes)
I have almost given up on second guessing what info someone who knows will want, so have used the approach of asking the question, setting the scene and then when someone needs more info then I can get it for them. Sorry if this isn't how most like it to be done.
SELinux logs to /var/log/audit/audit.log or as AVC messages in /var/log/messages. Shouldn't be hard to spot. Easiest would be to keep two terminal windows (or one with 'splitvt') open and tail both logs before starting K3b. Running K3b from a terminal window may yield messages as well. Use something like 'k3b 2>&1|tee /tmp/k3b.log' to catch those to a logfile.
Quote:
Originally Posted by terry-duell
I have just run another test and this time I get a different answers!
I'm sure you can't do anything about that but it's hard trying to get a fix on one error meanwhile jumping to the next.
Quote:
Originally Posted by terry-duell
I erased the CD-RW and then tried as root, and exactly the same problem occurred. Error reading the same sector. I erased the CD-RW again and then tried writing as normal user in my CD-ROM burner. This time it verified without error. So, whilst I didn't get the same error as originally reported, the error was still associated with verification, and I am beginning to wonder if it is related to hardware.
'wodim' appears to be a renamed 'cdrecord', spose that's got something to do with stubborn developers, licensing and distro maintainers. What does 'stat -c %a /usr/bin/wodim' return? If it's something like 0755, then if you have verified (procedure above) there are no logged messages from SELinux, try 'chmod +s /usr/bin/wodim'. This makes the binary setuid root which is a realistic security risk if the application wasn't build to handle setuid root and therefore in general is not advisable unless you're the only user of the machine and you unset the setuid bit after testing. If it did work you should report it to your distro's bug tracker. If it doesn't work let's see some log messages.
Originally Posted by terry-duell
I have just run another test and this time I get a different answers!
I'm sure you can't do anything about that but it's hard trying to get a fix on one error meanwhile jumping to the next.
I might be misunderstanding you here, but what I meant by 'another test' was that in order to get some precise error messages that you had asked for, I ran the 'exact' same test. I.E. same CD-RW disc, same files to be written, expecting that it would produce the same error message. That in itself might tell something.
Quote:
What does 'stat -c %a /usr/bin/wodim' return?
0755
Quote:
then if you have verified (procedure above) there are no logged messages from SELinux, try 'chmod +s /usr/bin/wodim'.
I have looked at those logs and not spotted anything, but haven't yet done your suggested procedure while running K3b.
I really don't understand what the chmod business is all about, or what
Quote:
Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
really means, so not keen to make changes just yet, that I don't know about or how to put back as they were.
I will find some time soon to run the same test again and this time capture log file differences.
Back again.
I did some more snooping and found that K3b was set to write multi-session. That setting isn't immediately obvious. After setting no-multi-session, the discs written by the DVD drive verify OK.
This looks like quite a good step forward. I don't really have a need for multi-session at the moment, so will make no-multi-session my default.
At this stage it looks like the problem might be solved...let's hope so.
Well yeah, if K3b sets it to multi-session by default then I agree that's not an obvious setting to check. In any case well done finding that out yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.