[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Hdparm, CD writer and 2.4.20 kernel with devfs



Hello,

I just solved I problem I had for a while and wanted to share my
experience, so it doesn't get lost.

Situation:
Debian
CD writer (on hdc)
kernel 2.4.20
devfs

# hdparm /dev/hdc
/dev/hdc: No such file or directory
# hdparm /dev/sr0
/dev/sr0 not supported by hdparm

Problem:
How does one setup DMA in this case?

Solution:
You must create a /dev/hdc device node for hdparm, you cann't do it in
/dev, because devfs wouldn't let you to. So:
# cd /root
# mknod hdc b 22 0

hdparm works now!

# hdparm -d 1 -X 34 /root/hdc

/root/hdc:
 setting using_dma to 1 (on)
 setting xfermode to 34 (multiword DMA mode2)
 using_dma    =  1 (on)

:)))))))))))))))))


-- 
Best regards,
    Aigars Mahinovs        mailto:aigarius@debian.org
 #--------------------------------------------------------------#
 |     .''`.                                                    |
 |    : :' :         Debian GNU/Linux    &         LAKA         |
 |    `. `'       http://www.debian.org     http://www.laka.lv  |
 |      `-                                                      |
 #--------------------------------------------------------------#
 

Attachment: pgpSbndBXCv2V.pgp
Description: PGP signature


Reply to: