Hello all: I have suse 10.1. The system has a cd-rw and a dvd-rw drive. After booting the system Yast dma status check reports that for both drive the dma is on. After a certain time checking again Yast reports that dma is off for both drives. If I want to turn dma in Yast it gives an error message: "An error occured while activating the changes. Cannot set required mode '%1' for device %2." At the same time according to hdparm dma is on: # hdparm -i /dev/hdc /dev/hdc: Model=PIONEER DVD-RW DVR-108, FwRev=1.20, SerialNo= Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic } RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0 BuffType=13395, BuffSize=64kB, MaxMultSect=0 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0 IORDY=on/off, tPIO={min:240,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 udma3 *udma4 AdvancedPM=no Drive conforms to: Unspecified: ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 * signifies the current active mode # hdparm -i /dev/hdd /dev/hdd: Model=ATAPI CD-RW 52XMax, FwRev=180D, SerialNo= Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic } RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0 BuffType=unknown, BuffSize=1024kB, MaxMultSect=0 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0 IORDY=on/off, tPIO={min:383,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 *udma2 AdvancedPM=no * signifies the current active mode NeroLINUX also claimed that dma was off, and burning a regular dvd took 40 min when the speed was set to 6x so I concluded that dma was off. (Is that correct?) Questions: 1. What can cause that dma is turned off? 2. How can I check dma staus on the command line w/o starting yast? 3. How could I turn dma on? TIA, IG ______________________________________________________________________ KGFB-2007 az Első Online Alkusztól! Kösse nálunk újra kötelező biztosítását! Az összes biztosító egy helyen, Online kedvezmények, egyszerű ügymenet. http://www.netrisk.hu
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2006-11-02 at 19:44 +0100, Istvan Gabor wrote:
I have suse 10.1. The system has a cd-rw and a dvd-rw drive. After booting the system Yast dma status check reports that for both drive the dma is on. After a certain time checking again Yast reports that dma is off for both drives. If I want to turn dma in Yast it gives an error message:
"An error occured while activating the changes. Cannot set required mode '%1' for device %2."
At the same time according to hdparm dma is on:
# hdparm -i /dev/hdc
Forget Yast. Use: hdparm -d /dev/hdc Or hdparm -d -c -u /dev/hdc to see the state. Then use "- 1" to activate if possible.
NeroLINUX also claimed that dma was off, and burning a regular dvd took 40 min when the speed was set to 6x so I concluded that dma was off. (Is that correct?)
Probably. Bu why don't you use k3b instead of a windows in linux thing?
Questions: 1. What can cause that dma is turned off?
Check the kernel log. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFSj/DtTMYHG2NR9URAt9EAJ9PkJi78X62sqMcSS1ZfaNj4hWzZgCeMLtJ QiGOt7VTgDS/qK2S/QtDT0Y= =fwBj -----END PGP SIGNATURE-----
The Thursday 2006-11-02 at 19:44 +0100, Istvan Gabor wrote:
I have suse 10.1. The system has a cd-rw and a dvd-rw drive. After booting the system Yast dma status check reports that for both drive the dma is on. After a certain time checking again Yast reports that dma is off for both drives. If I want to turn dma in Yast it gives an error message:
"An error occured while activating the changes. Cannot set required mode '%1' for device %2."
At the same time according to hdparm dma is on:
# hdparm -i /dev/hdc
Forget Yast. Use: hdparm -d /dev/hdc Or hdparm -d -c -u /dev/hdc to see the state. Then use "- 1" to activate if possible.
NeroLINUX also claimed that dma was off, and burning a regular dvd took 40 min when the speed was set to 6x so I concluded that dma was off. (Is that correct?)
Probably. Bu why don't you use k3b instead of a windows in linux thing?
Questions: 1. What can cause that dma is turned off?
I once had a SUSE box, DMA was off on the drive, I switched it on, it stated that turning it on could cause data loss. I turned it on anyway and it pulped the partition. Suppose there's no risk with a CD drive but worth a consideration on a hard drive. Matthew
Hi Matthew:
I once had a SUSE box, DMA was off on the drive, I switched it on, it stated that turning it on could cause data loss.
I turned it on anyway and it pulped the partition.
Suppose there's no risk with a CD drive but worth a consideration on a hard drive.
Matthew
Thanks for your note. So far dma on hard drives works fine on my system, had no problem yet. IG ___________________________________________________________________________ 2534 állásajánlat között biztosan találsz olyat, ami Neked is megfelel! http://ad.adverticum.net/b/cl,1,6022,120678,191335/click.prm
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2006-11-03 at 14:53 +0100, Istvan Gabor wrote:
Suppose there's no risk with a CD drive but worth a consideration on a hard drive.
Thanks for your note. So far dma on hard drives works fine on my system, had no problem yet.
I did experiment time ago enabling it on the fly with no problem. It is the "-X" parameter that the documentation warns about dangers, not the "-d" one. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFTnMAtTMYHG2NR9URAhieAJ9KzKogG2a9Hc8lOdx/FlnV3QVS/QCgiVqh Y9rNkA+CgM0j3qbZ+B09/W8= =uosb -----END PGP SIGNATURE-----
Hi Carlos: Thankf for your reply.
Forget Yast. Use:
hdparm -d /dev/hdc
Or
hdparm -d -c -u /dev/hdc
to see the state. Then use "- 1" to activate if possible.
Probably. Bu why don't you use k3b instead of a windows in
Thanks. I read hdparm man several times but it was not clear for me that -d also reports dma status. For hdparm -d -c -u /dev/hdd I get: /dev/hdd: IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 1 (on) Is this good or bad (for unmaskirq and IO_support)? linux thing? According to my knowledge neroLINUX is a native linux program. I had several problems with k3b before. Unfortunately there is not a decent GUI cdburning software for linux. All of them ruins directory dates on burned media. But this would be a different topic.
1. What can cause that dma is turned off?
Check the kernel log.
Is the /var/log/messages file the kernel log? Or dmesg? I found lines in /var/log/messages like these: kernel: hdc: irq timeout: status=0xd0 { Busy } kernel: ide: failed opcode was: unknown kernel: hdc: DMA disabled kernel: hdc: ATAPI reset complete kernel: hdc: tray open kernel: end_request: I/O error, dev hdc, sector 64 kernel: Buffer I/O error on device hdc, logical block 16 kernel: hdc: tray open kernel: end_request: I/O error, dev hdc, sector 68 and: kernel: hdc: drive_cmd: status=0x01 { Error } kernel: hdc: drive_cmd: error=0x04 { AbortedCommand } kernel: ide: failed opcode was: 0xec kernel: hdd: drive_cmd: status=0x51 { DriveReady SeekComplete Error } kernel: hdd: drive_cmd: error=0x04 { AbortedCommand } kernel: ide: failed opcode was: 0xec syslog-ng[2053]: STATS: dropped 0 kernel: hdc: irq timeout: status=0xd0 { Busy } kernel: ide: failed opcode was: unknown kernel: hdc: ATAPI reset complete kernel: hdc: tray open kernel: end_request: I/O error, dev hdc, sector 64 kernel: Buffer I/O error on device hdc, logical block 16 kernel: hdc: tray open kernel: end_request: I/O error, dev hdc, sector 68 kernel: Buffer I/O error on device hdc, logical block 17 I don't know which of these report problems and which are normal. However recently I had also bootup problems. At certain point boot hangs and I have to reset. I can't remember the messages at which boot hangs (not always the same) but next time I will write it down. Couldit be a problem with the MB or bad wiring? Thanks and cheers, IG ___________________________________________________________________________ 2534 állásajánlat között biztosan találsz olyat, ami Neked is megfelel! http://ad.adverticum.net/b/cl,1,6022,120678,191335/click.prm
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2006-11-03 at 14:33 +0100, Istvan Gabor wrote:
Thanks. I read hdparm man several times but it was not clear for me that -d also reports dma status. For hdparm -d -c -u /dev/hdd I get:
/dev/hdd: IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 1 (on)
Typical.
Is this good or bad (for unmaskirq and IO_support)?
If it works for you, it should run faster to enable them. You can try, at worst you gain a shiny mug dish :-P
Probably. Bu why don't you use k3b instead of a windows in linux thing?
According to my knowledge neroLINUX is a native linux program.
I don't use it, haven't even tried, because I heard the contrary, and k3b and others work find for me.
I had several problems with k3b before. Unfortunately there is not a decent GUI cdburning software for linux. All of them ruins directory dates on burned media. But this would be a different topic.
Well...
1. What can cause that dma is turned off?
Check the kernel log.
Is the /var/log/messages file the kernel log? Or dmesg?
Depends. On most installations they go to /var/log/messages, others have a separate file.
I found lines in /var/log/messages like these:
kernel: hdc: irq timeout: status=0xd0 { Busy } kernel: ide: failed opcode was: unknown kernel: hdc: DMA disabled
This could be it.
I don't know which of these report problems and which are normal.
Difficult to say. I have a similar problem, when reading takes longer, or the door is open, and dma gets disabled in the process. I didn't have that problem before, so now I check the status just before doing a burn and enable it if necessary.
However recently I had also bootup problems. At certain point boot hangs and I have to reset. I can't remember the messages at which boot hangs (not always the same) but next time I will write it down. Couldit be a problem with the MB or bad wiring?
I have no idea at this point. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFS0rJtTMYHG2NR9URAp+oAJ9oTRjBm4ZDts/bUxvub3FMD4x2gACfRPGs 4HQ3KqLg7iR1N2vLbUty7X0= =D5g+ -----END PGP SIGNATURE-----
Istvan Gabor wrote:
Hello all:
I have suse 10.1. The system has a cd-rw and a dvd-rw drive. After booting the system Yast dma status check reports that for both drive the dma is on. After a certain time checking again Yast reports that dma is off for both drives. If I want to turn dma in Yast it gives an error message:
"An error occured while activating the changes. Cannot set required mode '%1' for device %2."
At the same time according to hdparm dma is on:
# hdparm -i /dev/hdc
/dev/hdc:
[pruned] I had the identical problem when I installed 10.1. After asking in the forum for help and then doing some testing the ONLY way I could get the DMA "stick" on rebooting/booting was to set the DMA for *all* drives and not just for the CDROM and the DVDRW. Setting it only for these 2 and ignoring the HDs did not set the DMA for the CDROM; setting it for all did the trick. My set up is: hda = HD (udma5) hdb = CDROM (udma2) hdc = HD (udma5) hdd = DVDRW (udma4) so in file /etc/sysconfig/ide I inserted the line: DEVICES_FORCE_IDE_DMA="/dev/hda:udma5 /dev/hdb:udma2 /dev/hdc:udma5 /dev/hdd:udma4" You will need to find what the udma is for your HD(s) [using the hdparm command, above] and adjust the above line accordingly. As I said, doing it this way is the only way I could get the setting of the DMA to "stick". You will find a discussion on this in the archives of this forum dated around 7 - 14 November 2005. (BTW, another alternative which was suggested was to put in /etc/init.d/boot.local a line "hdparm -d1c1u1 /dev/hdx" for each device not having its DMA set correctly but this did NOT work for me.) Cheers. -- "I hope you leave here and walk out and say, 'What did he say?'" George W. Bush 27 August 2004
participants (4)
-
Basil Chupin
-
Carlos E. R.
-
Istvan Gabor
-
Matthew Stringer