hdparm - boot configuration
Hey all, Having problems with choppy DVD and MPEG playing, I read and followed this article about hdparm: http://linux.oreillynet.com/pub/a/linux/2000/06/29/hdparm.html?page=2 Doing the command lines shown there (for using DMA and such) to my hard disk (/dev/hda) as well as DVD player (/dev/hdc) cut out all the chopping when playing DVDs and hard-drive-stored MPEGs. At the end of the article, it says to add the command lines "to your /etc/rc.d/* scripts" but to make sure it's done after fsck. Huh? I know little about the booting process. I'm guessing I'd add these lines in /etc/rc.d/boot , after the commands in that script which mount the /etc/fstab file systems? The lines are: hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda hdparm -X66 -d1 -u1 -m16 -c3 /dev/hdc Thought I'd ask here before trying this. The commands have been tested by hand and work fine. I'd like these settings automatically for my system now that I've seen how much sweeter things run with them. :-) Using SuSE 7.3 Pro, BTW. Later, Joe "Flame" Sullivan -------------------------------------------------------------------------------------- Firechild Web Design and CGI Scripting Services http://firechild.net Secretary, World Association of Internet Marketing http://waim.org Webmaster, Amerikanska - For Americans In Sweden http://amerikanska.com Meta-editor, Open Directory Project http://dmoz.org ---------------------------------------------------------------------------------------
On Friday 28 June 2002 21:39, Joe Sullivan wrote:
Hey all,
Having problems with choppy DVD and MPEG playing, I read and followed this article about hdparm:
http://linux.oreillynet.com/pub/a/linux/2000/06/29/hdparm.html?page=2
Doing the command lines shown there (for using DMA and such) to my hard disk (/dev/hda) as well as DVD player (/dev/hdc) cut out all the chopping when playing DVDs and hard-drive-stored MPEGs.
At the end of the article, it says to add the command lines "to your /etc/rc.d/* scripts" but to make sure it's done after fsck.
Huh?
I know little about the booting process. I'm guessing I'd add these lines in /etc/rc.d/boot , after the commands in that script which mount the /etc/fstab file systems?
The lines are: hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda hdparm -X66 -d1 -u1 -m16 -c3 /dev/hdc
Thought I'd ask here before trying this. The commands have been tested by hand and work fine. I'd like these settings automatically for my system now that I've seen how much sweeter things run with them. :-)
Put them in /etc/init.d/boot.local, that would be the right place. Leen
On Friday 28 June 2002 22:11, Leendert Meyer wrote:
The lines are: hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda hdparm -X66 -d1 -u1 -m16 -c3 /dev/hdc
Put them in /etc/init.d/boot.local, that would be the right place.
Hmmm... Apparently I've broke somethin'. ;-) /dev/hdc is actually a just-purchased HP 9900ci combo CD-RW and DVD player. Everything I posted before worked fine, but I hadn't used the burning function - just DVD. So to get the burning function to work, I set up SCSI emulation. Now it's accessed via /dev/scd0 . But when I try the hdparm command on hdc or scd0, all I get is: /dev/hdc (or /dev/scd0) not supported by hdparm. Still works on the hard drive though. Is there a workaround for this? As I'm seeing it now, my choices are: 1) Have burning functions, but not enable DMA. 2) Enable DMA, but no burning function. Would really like to have both. My Alice Cooper Brutally Live DVD is horribly choppy without that hdparm command. :-/ Later, Joe "Flame" Sullivan -------------------------------------------------------------------------------------- Firechild Web Design and CGI Scripting Services http://firechild.net Secretary, World Association of Internet Marketing http://waim.org Webmaster, Amerikanska - For Americans In Sweden http://amerikanska.com Meta-editor, Open Directory Project http://dmoz.org ---------------------------------------------------------------------------------------
On Saturday 29 June 2002 00:36, Joe Sullivan wrote:
But when I try the hdparm command on hdc or scd0, all I get is: /dev/hdc (or /dev/scd0) not supported by hdparm.
Sorry, I'm apparently a bonehead so I'm replying to myself. Grrrr... When hdparm worked on hdd (a plain cdrom drive) but not hdc (the CD-RW/DVD combo), I finally went in and did an ls -l on /dev. Somewhere along the line, I managed to turn /dev/hdc into a link to /dev/scd0! That explains why hdparm wouldn't work, at least. Now the big question: How do I restore /dev/hdc back to the actual device it is, rather than the link to scd0 it has become? *sigh* Later, Joe "Flame" Sullivan -------------------------------------------------------------------------------------- Firechild Web Design and CGI Scripting Services http://firechild.net Secretary, World Association of Internet Marketing http://waim.org Webmaster, Amerikanska - For Americans In Sweden http://amerikanska.com Meta-editor, Open Directory Project http://dmoz.org ---------------------------------------------------------------------------------------
On Saturday 29 June 2002 02.44, Joe Sullivan wrote:
Now the big question: How do I restore /dev/hdc back to the actual device it is, rather than the link to scd0 it has become?
rm /dev/hdc mknod /dev/hdc b 22 0 //Anders -- `When I use a word,' Humpty Dumpty said in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.'
On Saturday 29 June 2002 03:05, Anders Johansson wrote:
rm /dev/hdc mknod /dev/hdc b 22 0
Excellent. Alice Cooper is brutalizing my DVD player once again. :-) Thanks! Later, Joe "Flame" Sullivan -------------------------------------------------------------------------------------- Firechild Web Design and CGI Scripting Services http://firechild.net Secretary, World Association of Internet Marketing http://waim.org Webmaster, Amerikanska - For Americans In Sweden http://amerikanska.com Meta-editor, Open Directory Project http://dmoz.org ---------------------------------------------------------------------------------------
participants (3)
-
Anders Johansson
-
Joe Sullivan
-
Leendert Meyer