munky Posted October 16, 2005 Report Share Posted October 16, 2005 Hey guys, I'm pretty stumped on this. I have a stock Mandriva LE 2005 installation, and I'm trying to play a DVD in Kaffeine. The problem is, it's really choppy. When I try to enable DMA on the drive, I get the following error: [root@dhezir dhezir]# hdparm -d1 /dev/dvd /dev/dvd: setting using_dma to 1 (on) HDIO_SET_DMA failed: Operation not permitted using_dma = 0 (off) It's a SATA drive, so that's probably what's causing this. Could I get some help with this? Thanks! Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 18, 2005 Report Share Posted October 18, 2005 What is the output of ls -l /dev/dvd ? If it is a symlink to something other than /dev/sdX (X being a,b,c,d, or something), then you are not having the dvd drive recognized as SATA. If it is using the SATA driver for it, DMA is enabled by default and cannot be changed. Quote Link to comment Share on other sites More sharing options...
munky Posted October 18, 2005 Author Report Share Posted October 18, 2005 [dhezir@dhezir ~]$ ls -l /dev/dvd lrwxrwxrwx 1 root root 3 Oct 18 01:13 /dev/dvd -> hdc So, what does this mean, exactly? I'm sorry, I'm pretty new with Linux... Quote Link to comment Share on other sites More sharing options...
coverup Posted October 20, 2005 Report Share Posted October 20, 2005 -> hdc means that during install this drive was NOT recognized as SATA drive. Quote Link to comment Share on other sites More sharing options...
AussieJohn Posted October 20, 2005 Report Share Posted October 20, 2005 (edited) Am I missing somethig here ??? Is the DVDplayer/burner an SATA drive or do you mean your HDD (Harddrive) is an SATA drive ??? There is a huge difference. Is the DVDplayer/burner on the SATA cables or on the ordinary IDE cables ??? If it is then the detection as hdc is correct. John. Edited October 20, 2005 by AussieJohn Quote Link to comment Share on other sites More sharing options...
munky Posted October 27, 2005 Author Report Share Posted October 27, 2005 Am I missing somethig here ???Is the DVDplayer/burner an SATA drive or do you mean your HDD (Harddrive) is an SATA drive ??? There is a huge difference. Is the DVDplayer/burner on the SATA cables or on the ordinary IDE cables ??? If it is then the detection as hdc is correct. I'm not quite sure. If it helps, in Suse 9.3, the hard drive is sda1 and the CD/DVD drive is sr0. How can I tell for sure? Thanks for any help - I really need my DVD to work in Mandriva! Quote Link to comment Share on other sites More sharing options...
lavaeolus Posted October 27, 2005 Report Share Posted October 27, 2005 /dev/dvd/ > hdc means that /dev/dvd is just a symlink to /dev/hdc which is the real adress of your dvd-drive, but this puzzles me abit, because to my knowing sata-drives are recognised like scsi-drives (sda, sdb and the like) At least the Suse-output seems to suggest that you have sata-drives connected to the sata-ports, but as far as I know scsi and sata devices do not use dma and therefore you cannot change anything there Quote Link to comment Share on other sites More sharing options...
chalex20 Posted October 28, 2005 Report Share Posted October 28, 2005 ... as far as I know scsi and sata devices do not use dma If I'm not mistaken, they do use DMA, it's only that you have no influence upon it. Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted October 28, 2005 Report Share Posted October 28, 2005 Optical sata drives like you apparently have have only recently been available. The support for such devices may not be there in the stock LE2005 kernel. You may want to upgrade to a newer kernel or to 2006. Quote Link to comment Share on other sites More sharing options...
munky Posted October 28, 2005 Author Report Share Posted October 28, 2005 Thanks, pmpatrick. Do you really think 2006 will take care of this? Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted October 30, 2005 Report Share Posted October 30, 2005 I don't know for sure; I don't have a sata optical drive to test. But my preliminary googling indicates that you may have to wait for kernel 2.6.14 to get good support. Mdv 2006 uses a patched 2.6.12 kernel and I don't know what stuff from later kernels mandriva backported into its kernel. You may want to do a little research on your own but there seems to be significant kernel development going on in sata optical drives. I'm farly sure it's a kernel issue however. Quote Link to comment Share on other sites More sharing options...
munky Posted October 30, 2005 Author Report Share Posted October 30, 2005 Thanks for all your help - I'll try some Googling of my own. :D Quote Link to comment Share on other sites More sharing options...
AussieJohn Posted October 31, 2005 Report Share Posted October 31, 2005 I too thank you pmpatrick. I didn't know there were such things as SATA Optical drives yet so you have enlightened me quite a bit. I now know to keep an eye out for them. Cheers. John. Quote Link to comment Share on other sites More sharing options...
lavaeolus Posted November 28, 2005 Report Share Posted November 28, 2005 If I'm not mistaken, they do use DMA, it's only that you have no influence upon it. on both types of drives DMA is standard and you can't influence this, sorry I was a bit unclear on this Plextor has a SATA-DVD-Burner out, which seems to be a really nice piece of hardware Quote Link to comment Share on other sites More sharing options...
iphitus Posted November 29, 2005 Report Share Posted November 29, 2005 Stock 2.6.14 and below kernels do not support setting drive options, such as dma. This has been improved and is somewhat better in 2.6.15 which isnt out yet. Also, hdparm has poor support for sata stuff, if you want to set whatever sata options you can, try 'blockdev' iphitus Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.