Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
I looked thru the HCL and found lots of rave reviews for these units, but some (like my current drive, a Plextor 716A) have notes in the fine print about problems on AMD64 hardware. Mine has write errors about 90% of the time. I have the same problems with Windows, 32-bit Debian, and 64-bit Debian, so I've come to the conclusion that it has to be a hardware incompatibility.
If you have a cd/dvd writer that works perfectly on an AMD64 ... one that I can go out and buy ... please tell me what it is.
mingdao@silas:~$ cat /etc/slackware-version
Slackware -current (notice it's 32-bit not 64-bit)
mingdao@silas:~$ uname -a
Linux silas 2.6.17 #1 Tue Jun 20 10:43:20 CST 2006 i686 athlon-4 i386 GNU/Linux
And I do most of my burning from command line, though K3B does work.
What are your specific problems/errors?
Are you writing as root, or normal user?
Do you set the switch for burnfree?
Here are some of the commands I use:
Code:
To erase a CD-RW:
cdrecord -v dev=/dev/hda blank=fast
To blank a DVD+RW
su -c "growisofs -Z /dev/dvd=/dev/zero"
dvd+rw-format -force -lead-out /dev/dvd
To burn an image of a CD to the hd
dd if=/dev/hda of=namethecd.iso
To make a CD from the iso image
cdrecord -v -eject driveropts=burnfree dev=/dev/hda /path/to/file.iso
CDs
gzip < /dev/cdrom > cdrom.iso.gz
save copy of data cdrom
mkisofs -r dir | gzip > cdrom.iso.gz
create cdrom image from directory
mount -oloop cdrom.iso /mnt/dir
mount the cdrom image at /mnt/dir (for viewing/editing)
cdparanoia -B
rip audio tracks from CD to wav files in current dir
cdrecord dev=/dev/cdrom -audio *.wav
make audio CD from all wavs in current dir
oggenc --tracknum='track' track.cdda.wav -o 'track.ogg'
make ogg file from wav file
To burn an iso to DVD
growisofs -dvd-compat -Z /dev/hd*=image.iso
/usr/bin/growisofs -dvd-compat -Z /dev/hdb=slackware-current-install-dvd.iso
To copy from one drive to another:
(This will copy a VCD)
cdrdao copy --device /dev/hda --source-device /dev/hdc
To enable BurnProof when using cdrecord (Jörg Schilling turns it off in cdrecord):
You can enable it with driveropts=burnfree.
Another useful option is fs=<number>m, which sets the
buffer size to <number> megabytes.
I run 2 SATA hard drives, and these two IDE ATAPI burners.
Thanks for the effort that went into your reply, Chinaman. Since k3b was not reporting any errors during the write process, only when verifying the checksum, I thought I would use your terminal commands to see if errors would print out there.
First, tho, I elected to try a firmware upgrade as described here. My problem was actually solved based on a tip in the follow-up discussion. I had to turn off DMA on the cd-writer. Not sure if this is a Plextor specific problem or not, but it worked for me.
Now I need to figure out how to make "hdparm -d0 /dev/hdc" survive a Debian reboot. I suppose that should go in /usr/share/initscripts/default.rcS?
Very interesting reading. IMO, the simpliest and safest way to disable DMA for the drive would be in the kernel, since that's where it's initially enabled in the first place.
These are the options I'm using now:
Code:
bash-3.1$ cat kernel/linux-2.6.17/.config | grep -i dma
CONFIG_GENERIC_ISA_DMA=y
CONFIG_ISA_DMA_API=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_SCSI_PDC_ADMA is not set
and in the kernel's configuration help:
Code:
Enable DMA only for disks (IDEDMA_ONLYDISK)
This is used if you know your ATAPI Devices are going to fail DMA
Transfers.
Perhaps if you recompile your kernel with that option, you'll avoid the DMA issues with this particular ATAPI device. You will have to enable "Use PCI DMA by default when available (IDEDMA_PCI_AUTO)" to get that option in the first place.
Perhaps someone more knowledgable than I will come along...
As for error messages, you can use the "-v" switch with most, if not all, of the commands I posted. Just issue "man <command>" and see what it says. K3B has a log which you can enable, and that will tell you probably all you need to know about what it did.
Sorry I can't tell you where to put that in Debian. I used it for a couple months when I first started with Linux, but don't remember their location. In Slackware you'd use /etc/rc.local -- should be well documented for Debian -- perhaps do a Google <Linux> search for 'Debian startup scripts' or something more intelligent.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.