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.
Originally posted by lonrot_m
I am trying to configure correctly my dvd-rw n hdparm is a necessary thing to run smoothly, the output of hdparm -i /dev/hdc
Quote:
Code:
/dev/hdc:
Model=SONY DVD+/-RW DW-D56A, FwRev=PDS3, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=yes, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 <--- it's already set
AdvancedPM=no
Drive conforms to: device does not report version:
* signifies the current active mode
Your drive is already using all the DMA it's got. Notice it says * signifies the current active mode and that asterisk points to *udma2.
This use of DMA is set in the kernel. If you have a 2.6.x.x series you'll find all the DMA you need here:
Code:
mingdao@james:~$ less build/linux-2.6.12.3/.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 <-- this one makes your drives use DMA by default
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
This is the output I get issuing the same command that you issued with root permission first (using sudo) and a normal user second:
So, you're using hdparm on your DVD burner already.
That is what I thought to with my computer and CentOS 4. It gave the same info as the original poster got, but dvds were choppy. I su'd into root, typed /sbin/hdparm -d1 /dev/hd[c,d] and it then turned dma on. DVDs played fine after that.
You should also start your own thread for your own problem,
or just subscribe to and watch someone else's thread. It is
considered rude to "hijack" a thread, which is what you've done.
Generally, there seem to be a lot of folks joining LQ lately who
either don't read the Rules, or break them without caring. Don't
fall into that position. If you do, you'll find that you don't get any
answers from more experienced guys, but only guesses from
other newbies.
You would do well to read that last link in KimVette's sig...
You cannot turn on DMA with hdparm on a device with a currently mounted filesystem.
I mean, if you try to set up DMA from a Knoppix live-cd, it will work!
hdparm needs to be run before fs mounts (you can do this with your init scripts).
bye!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.