Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dma w/ hdparm on cdrom's w/ ide-scsi & proper udma4 on h
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Tue Apr 30, 2002 12:11 am    Post subject: dma w/ hdparm on cdrom's w/ ide-scsi & proper udma4 on h Reply with quote

Hello all,
i have an ide dvd-rom (hda) & an ide cdrw (hdc) and I have them both declared as ide-scsi to burn/copy-on-the-fly cd's.
My problem is that hdparm's options don't work with these drives. However they worked fine on my slack & sorcerer installations on the same box.
Hdparm simply tells that '/dev/cdroms/cdromX is not supported'
The options I want are -c1 -d1 for both of them plus -u1 on the cd-rw.
Any idea if this is possible ?

Also my 2nd hd (hdg on a promise 20265) though it supports udma4 hdparm only enables udma2 (options passed : -c3 -d1 -m16).
How I can force it to use udma4 & is this dangerous after all ?

Thanx in advance
Back to top
View user's profile Send private message
dArkMaGE
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 152

PostPosted: Tue Apr 30, 2002 1:30 am    Post subject: Reply with quote

for turning on udma4 do a search on the forums for hdparm and you should find another article where all the various hdparm options are discussed (its something like hdparm -X 68, but make sure you check the article first)

as to using hdparm on scsi-emulating(ed?) drived you want to use the device file under /dev/ide
youll have to look around a little cuz it depends how your cdrom is attatched, but for my cdrw its /dev/ide/host0/bus0/target1/lun0/cd (which is usually /dev/hdb)
Back to top
View user's profile Send private message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Tue Apr 30, 2002 2:11 pm    Post subject: Reply with quote

Thanx for answering.
I' m checking on udma4 now. But for the ide-scsi cd-rom I have problems. my /dev/ide/hos0/bus0/target... is empty and my drives are only listed as scsi.
Any other suggestion ?
Back to top
View user's profile Send private message
mvo
n00b
n00b


Joined: 16 Apr 2002
Posts: 49
Location: Frankfurt/Germany

PostPosted: Tue Apr 30, 2002 3:04 pm    Post subject: Reply with quote

Hi,
you can create an /dev/hdx entry manually (example for my cdrw with ide/scsi on secondary slave) or edit /etc/devfs.conf for that:

hal9000 dev # mknod -m 660 hdd b 22 64
hal9000 dev # /sbin/hdparm -d1 -c1 -k /dev/hdd

/dev/hdd:
setting 32-bit I/O support flag to 1
setting using_dma to 1 (on)
I/O support = 1 (32-bit)
using_dma = 1 (on)
keepsettings = 0 (off)
Back to top
View user's profile Send private message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Tue Apr 30, 2002 4:02 pm    Post subject: Reply with quote

This mknod thing seams ok, but I never made any nodes by myself I want a little bit of help. What minor/major & any other options should I use for hda & hdc ?
Back to top
View user's profile Send private message
mvo
n00b
n00b


Joined: 16 Apr 2002
Posts: 49
Location: Frankfurt/Germany

PostPosted: Tue Apr 30, 2002 4:14 pm    Post subject: Reply with quote

For major and minor number and type of an device look to "/usr/src/linux/Documentation/devices.txt", the other options "man mknod".

hda: mknod /dev/hda b 3 0
hdc: mknod /dev/hdc b 22 0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum