LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CD/DVD/BD/M-Disc drives not writing (https://www.linuxquestions.org/questions/slackware-14/cd-dvd-bd-m-disc-drives-not-writing-4175460650/)

dchmelik 05-04-2013 01:47 AM

CD/DVD/BD/M-Disc drives not writing
 
I just built a new Slackware PC with an LG CD/DVD/BD/M-Disc writer, and a reader that reads maybe everything else but the M-Disc (and maybe not BD-DL.) I tried to write a plain OS DVD in K3B, and it says I do not have 'permission,' after it starts to write anyway and ruins the disc (though my user is in the cdrom group.) With cdrecord, it seems both 'cdrecord -scanbus,' 'crecord dev=help' give no info about devices that can be used. Do these drives even have Linux drivers yet? They just seemed like the standard new optical drive when I bought them.

business_kid 05-04-2013 10:35 AM

Are you on the standard kernel? Sounds like a kernel packet writing problem.

jefro 05-04-2013 03:38 PM

If you are trying to use a common disc in this then it should work as any drive should.

Try a live usb maybe of some other OS to double check.


M-disc's are meant to be read by common drives. They should also be supported by burning.


"Almost any DVD burning software will work with the M-WRITER™ drive. In fact, current operating systems ("Windows Vista"©, "Windows 7"©, "Mac OS X"© and many Linux© distributions) come with compatible software pre-installed and will recognise the M-Writer™ drive automatically. Additionally, the M-WRITER™ drive works with most common third party software. Some older operating systems such as "Windows XP"© will require third-party software as DVD burning software is not included by Microsoft™."

dchmelik 05-04-2013 06:08 PM

Quote:

Originally Posted by business_kid (Post 4944791)
Are you on the standard kernel? Sounds like a kernel packet writing problem.

yes
Quote:

Originally Posted by jeffro
If you are trying to use a common disc in this then it should work as any drive should. Try a live usb maybe of some other OS to double check.

Ok
Quote:

M-disc's are meant to be read by common drives. They should also be supported by burning.
As I said, I was using a plain DVD, not anything newer than that yet.

jefro 05-04-2013 09:11 PM

Then we are left to choose between OS, application and hardware.
Usually when it says no permission it tends to mean that. Some user level setting has not been enabled. I don't know how slackware does that. Some others here would know.

dchmelik 05-04-2013 09:22 PM

Quote:

Originally Posted by jefro (Post 4945073)
Then we are left to choose between OS, application and hardware.
Usually when it says no permission it tends to mean that. Some user level setting has not been enabled. I don't know how slackware does that. Some others here would know.

Slackware does it with the cdrom group, which my user is in, and it starts writing anyway, ruining the disc, then stops

business_kid 05-05-2013 03:09 AM

I would spend an hour with some of the strange options in cdrecord(now wodim?). He has information options, and tweaks to get around most buggy drives of the last millenium. This millenium, I'm not so sure. And if you do one more cd in a terminal with the verbose flag set it will tell you exactly what it meets.

jefro 05-05-2013 11:41 AM

Test with some other live usb installs or even put some windows on to test.

If the drive is new, it could be faulty.

Remove the drive and test on other system.

edorig 05-08-2013 08:40 AM

Quote:

Originally Posted by dchmelik (Post 4944599)
With cdrecord, it seems both 'cdrecord -scanbus,' 'crecord dev=help' give no info about devices that can be used.

Have you tried a dmesg |grep DVD ? If your drive is detected at boot, this should tell you the corresponding
device file. You could then try to do a cdrecord -dummy /dev/sd? and look at the error messages.
I think the 'permission denied' error message that you are getting is not related with the write permissions
on the drive, but with the possibility of setting the highest priority for the cdrecord process.
If that is the case, your cdrecord process may be interrupted by the scheduler while it is writing to
the disk, leading to a premature end of the CD writing process. In practice, it means that you will
need to be root to write CDs reliably. I have no idea whether cdrecord is secure enough to be made
setuid root.

business_kid 05-08-2013 10:37 AM

Quote:

Originally Posted by edorig (Post 4947201)
I have no idea whether cdrecord is secure enough to be made
setuid root.

Everyone is paranoid to a different level, but I would set it setuid root without a secondś hesitation. Itś solid.

dchmelik 05-17-2013 02:31 AM

I made a DVD with a Live DVD, so this appears to be a Slackware 14.0 problem or one of its kernel. Could any admin move this to the Slackware sub-forum?

Code:

root@cosmos:~# dmesg|grep dvd
[    8.565979] sr0: scsi3-mmc drive: 1x/1x writer dvd-ram cd/rw xa/form2 cdda tray
[    8.612057] sr1: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
root@cosmos:~# cdrecord -dummy /dev/sd
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


edorig 05-17-2013 12:54 PM

From the dmesg output, it appears that your CD-ROM drive is one of /dev/sr0 (slow one, 1x) or /dev/sr1 (fast one, 40x). The command to type is cdrecord -dummy /dev/sr0 or cdrecord -dummy /dev/sr1 (you don't have a /dev/sd device).
Concerning the writing of CDs and DVDs, cdrecord (CDs) and growisofs (DVDs) have different methods to write to
optical disk, so it is conceivable that only one of these programs is not compatible with your drive.
Can you determine the version of growisofs on the Live DVD growisofs --version and the installed one ?

business_kid 05-17-2013 01:01 PM

Quote:

cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
Depending on what you're using, you may need
/dev/sg0 & /dev/sg1
or
/dev/pg0 & /dev/pg1

Create them as symlinks in /dev to sr0, sr1.

Then try your luck.

dchmelik 05-17-2013 07:28 PM

oops... ok.

Code:

d@cosmos:~$ cdrecord -dummy /dev/sr0
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
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: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
d@cosmos:~$ cdrecord -dummy /dev/sr1
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
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: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

Code:

root@cosmos:~# cdrecord -dummy /dev/sr0
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@cosmos:~# cdrecord -dummy /dev/sr1
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


jefro 05-17-2013 07:52 PM

I get this from the output.

Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
try 'cdrecord -scanbus'.
try 'cdrecord dev=help'.

dchmelik 05-17-2013 09:16 PM

CD/DVD/BD/M-Disc drives not writing
 
I started a thread CD/DVD/BD/M-Disc drives not writing, but it turned out to be a specifically Slackware 14 problem (or one of the kernel it uses.)

I built a new PC a few weeks ago and two LG CD/DVD/BD-DL/M-Disc drives. I have been using Slackware since 1997 (and continuously since about 2005) and have known how to set up the basics, like adding a user in the proper groups, for years. The drive I tried to make a DVD with in k3b just starts to write something before the data, says it cannot write for some reason, ruins the disc, and stops (I may have written the exact error message in that other thread.) The commands 'cdrecord -scanbus,' 'cdrecord dev=help' show no information about my new drives. However, when I used a Live DVD of another distribution, it detected the drives and was able to complete writing a DVD with the one that Slackware could not.

I never thought I would live to see a day like this, when I could not do something in Slackware that I could on a distribution mainly for new users.

Actually, I just tried an idea someone gave me on the other thread, and it made the drives visible in cdrecord... I still have to see if they will write properly, but I will leave this here anyway, because Slackware people should be aware of it.

dchmelik 05-17-2013 09:17 PM

I was answering edorig and do not really see what jefro is saying. Since this is a Slackware problem, I made a thread in its forum: CD/DVD/BD/M-Disc drives not writing.

Maybe business_kid's idea will work. I will try that.

dchmelik 05-17-2013 09:22 PM

Business_kid's idea worked, though I am not sure it was the sg or pg that did it. I still have to see if the drives will write properly.

michaelslack 05-17-2013 10:34 PM

Hi dchmelik,

I have suffered from the exact same problem trying to burn dvds using k3b in various releases of slackware (although not all, or on all machines, for some reason). There are a few possibly relevant points in CHANGES_AND_HINTS.TXT:

Quote:

If your cd/dvd drive is not visible inside a gtk-based desktop environment
(e.g. Xfce), you may need to add "comment=x-gvfs-show" to the /etc/fstab
line for the device. For more information, see this document:
http://git.gnome.org/browse/gvfs/tre...t-is-shown.txt
and

Quote:

If you have permission errors when attempting to burn a cdrom or dvd image,
such as the following:
/usr/bin/cdrecord: Operation not permitted. Cannot send SCSI cmd via ioctl
then cdrecord almost certainly needs root privileges to work correctly.
One potential solution is to make the cdrecord and cdrdao binaries suid root,
but this has possible security implications. The safest way to do that is
to make those binaries suid root, owned by a specific group, and executable
by only root and members of that group. For most people, the example below
will be sufficient (but adjust as desired depending on your specific needs):
chown root:cdrom /usr/bin/cdrecord /usr/bin/cdrdao
chmod 4750 /usr/bin/cdrecord /usr/bin/cdrdao
If you don't want all members of the 'cdrom' group to be able to execute the
two suid binaries, then create a special group (such as 'burning' which is
recommended by k3b), use it instead of 'cdrom' in the line above, and add
to it only the users you wish to have access to cdrecord and cdrdao.
You may have seen these already.

I found it is easiest to burn dvds using commands similar to those quoted in the isolinux/README.TXT from the command line, e.g.

Code:

growisofs -speed=2 -dvd-compat -Z /dev/sr0=slackware-dvd.iso
at worst, as root.

I don't know if this helps, by your own description you sound like you probably know this already.

Cheers,

Michael

wildwizard 05-18-2013 03:21 AM

A current problem with cdrecord :-

Before you run cdrecord you must first "modprobe sg" as the SCSI generic module is used by cdrecord's functions but for some reason is not loading automatically anymore.

irgunII 05-18-2013 06:58 AM

I recently got myself a blu-ray burner (~2 weeks ago) and swapped it out for my dvd burner. It's an LG WH14NS40 and has worked fantastically on my slackware 14. Once in a great while I have a problem with burning something to a dvd, but I've contributed that to the dvd's being really old (>6 years with max write speed 4x) and used an awful lot. They will do the 'can't write thing' on me but usually after I've formatted or erased them.

edorig 05-19-2013 04:16 AM

I see in the output of cdrecord -dummy that you have the warnings:

Quote:

cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
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.
This indicates that you don't have the permissions to raise the priority of the cdrecord process
nor prevent it from being swapped (with the mlockall system call). Since Linux is multitasking,
in these conditions the cdrecord may get interrupted while writing to the optical disk. If the interruption is long
enough, that can ruin the CD. So if your attempts to burn CDs fail, you should try to run cdrecord as root.
In a previous thread, I mentioned that if that worked, you could make cdrecord setuid root provided there is no security risk.

unSpawn 07-12-2013 01:45 AM

Please post your thread once and in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

dchmelik 08-10-2013 01:30 AM

I guess I marked this as solved because I got it working, but I forgot how now. I know I had quit trying to use k3b and used cdrecord or growisofs (and maybe making the device links mentioned above, though cdrecord seems to be detecting my drives now) and that worked, but lately I am trying k3b again, and even if I set it at 1x, it says that is not supported and increases it to 8x. K3b has made me four coasters today, and I do not want to try for a fifth... but if I try 2x or 4x will that work, or does this mean 8x is the slowest. It is also strange, because the discs from the package I am using all worked up to about 12x, but not 16x (as they are labelled)--I was writing them fine at 12x or maybe 8x in Slackware 13.37. What k3b says now is that there is an i/o error of code 254.

rigelan 08-24-2013 09:23 AM

+1 to wildwizard's advice

modprobe sg

(Just had to do it today)

dchmelik 08-24-2013 10:52 PM

Quote:

Originally Posted by rigelan (Post 5015049)
+1 to wildwizard's advice [...]

What does that even mean? It seems 'modprobe sg' (which I have had in rc.local since wildwizard mentioned that) helps with cdrecord, but not k3b, which was part of my original question.

business_kid 08-25-2013 09:52 AM

k3b is not in the habit of making coasters.

But, the latest version is a pain if you don't have kde installed. There's a thread a year ago(?) where I had that problem, so you could add 'business_kid' as a search term. K3b also used automatically convert mp3 files to .wav when adding files to audio cds and I got coasters because of that.

Your original problem was drive access. That's sorted. Making duds is another one. Give us the full story on that one if you are trying for a fix on that

dchmelik 08-25-2013 06:04 PM

Quote:

Originally Posted by business_kid (Post 5015570)
Your original problem was drive access. That's sorted. Making duds is another one. Give us the full story on that one if you are trying for a fix on that

I quote from my original post, 'I tried to write a plain OS DVD in K3B, and it says I do not have 'permission,' after it starts to write anyway and ruins the disc (though my user is in the cdrom group.)'

dchmelik 11-16-2013 01:52 AM

Apparently 'modprobe sg' and following the instructions in CHANGES_AND_HINTS.TXT, as well as perhaps some other stuff (not officially documented), usually solves the problem every time I upgrade or reinstall (which I did several times recently, maybe in August, but now again for 14.1, and maybe had forgotten what to do)... sometimes there may be other problems, but I think I have to try what business_kid said, again. Anyway, I will mark it as solved again, because that is probably it, and I did get it working on 14.0 a couple times.


All times are GMT -5. The time now is 02:58 PM.