From: Florin A. <fl...@an...> - 2003-03-28 09:07:05
|
Edit /etc/modules.conf and add this line to it: options ide-cd dma=1 Then reboot. Now try hdparm again, as root. On Mon, 2003-03-24 at 20:21, ala...@at... wrote: > Ok -- I tried enabling DMA on my Hard Drive with the hdparm command, and this is > what I'm getting... > > [alan@localhost alan]$ su > Password: > [root@localhost alan]# cd /sbin > [root@localhost sbin]# ./hdparm -d1 /dev/hdc > > /dev/hdc: > setting using_dma to 1 (on) > HDIO_SET_DMA failed: Operation not permitted > using_dma = 0 (off) > [root@localhost sbin]# > [root@localhost sbin]# > > > I flipped throught the help for hdparm and I tried a bunch of other options to > optimize both my hard drive, and my CD Rom, and it made a HUGE difference in > performance -- however, it's still not perfect. I've found that the video skips > almost with the same frequency as it used to, maybe a bit less, but the audio is > now OK -- and doesn't skip nearly as much as it used to. The audio and video are > always in sync -- regardless of how much skipping is occurring. I just don't > understand why I can't run this command as root to enable DMA. It works on both > of my hard drives, and my regular CD-RW drive, but not my CD-ROM. I can't figure > it out. > > Any thoughts?? -- I'm SOOOOOOOO close to getting this to work properly! > > Thanks everyone for your input and suggestions -- I'm learning a great deal > about Linux! > > Alan > > At 06:14 PM 3/24/2003 +0000, ala...@at... wrote: > > >I did try the hdparm command at one point, and my shell reported that the > > >command was not found -- i.e. 'hdparm' doesn't exist on my system. Do I > > >need to > > >login as 'root' to run this command? I was running as 'alan' when I tried > > >last > > >time. It sounds like it should be accessible from virtually all installations > > >of Linux, including RedHat 8 which I'm running. > > > > hdparm is usually, but not invariably, installed as part of a standard > > Linux install. I don't use RH 8.0. but I would expect a stock RH 8.0 > > install to include it. > > > > As you surmise, though, it is a "root" user command, not an ordinary user > > command. Ordinary users *can* run it, but only for limited purposes > > (typically for *getting* setting info but not for changing settings). So, > > yes, become root before executing it. > > > > BTW, you're getting the "not found" response not because you lack > > permissions, but because it is not in your path. hdparm is normally in > > /usr/sbin, which is, conventionally, part of the executables path for root > > but not for ordinary users. If you run it as /usr/sbin/hdparm, you will (in > > all likelihood) find it "accessible" ... though as "alan" you will be > > limited in what you can get it actually to do. > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > xine-user mailing list > xin...@li... > https://lists.sourceforge.net/lists/listinfo/xine-user -- Florin Andrei http://florin.myip.org/ |