Gentoo Archives: gentoo-user

From: Joseph <syscon@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem
Date: Thu, 23 Mar 2006 23:24:52
Message-Id: 1143154524.5207.56.camel@sysconcept.ca
In Reply to: Re: [gentoo-user] Re: dd if=/dev/dvd of=backup.iso - DMA related problem by JimD
1 On Thu, 2006-03-23 at 17:25 -0500, JimD wrote:
2 > On Thu, 23 Mar 2006 14:26:20 -0700
3 > Joseph <syscon@×××××××××.com> wrote:
4 >
5 > > Before ejecting put any CD / DVD disk IN and run:
6 > > dd if=/dev/hdc of=backup.iso or
7 > > cat /dev/hdc >backup.iso
8 > >
9 > > When finished run "eject ..."
10 > > and
11 > > hdparm /dev/hdc
12 > >
13 > > See if the parameter "using_dma" was reset.
14 >
15 > root@keelie # dd if=/dev/hdc of=backup.iso
16 > CTRL+C
17 > 37824+0 records in
18 > 37824+0 records out
19 >
20 > /tmp
21 > root@keelie # ls -l backup.iso
22 > -rw-r--r-- 1 root root 19M Mar 23 17:20 backup.iso
23 >
24 > root@keelie # hdparm /dev/hdc
25 > /dev/hdc:
26 > IO_support = 1 (32-bit)
27 > unmaskirq = 1 (on)
28 > using_dma = 1 (on)
29 > keepsettings = 0 (off)
30 > readonly = 0 (off)
31 > readahead = 256 (on)
32 > HDIO_GETGEO failed: Invalid argument
33 >
34 > DMA is still on. I don't know why I always get that "HDIO_GETGEO
35 > failed" error.
36 >
37 > Do you have another CD/DVD drive you can try? Are you using SCSI
38 > emulation?
39 >
40 > I am using kernel 2.6.15-gentoo-r7
41 >
42 > Jim
43
44 Did you do "eject /dev/hdc between dd and hdparm?
45
46 dd if=/dev/hdc of=backup.iso
47 eject dev/hdc
48 hdparm /dev/hdc
49
50 Yes, I've tried this combination on two different machines with two
51 different drives and DMA gests rest on both.
52 amd64 + BenQ DVD
53 x86 + Plexwriter
54
55 I'm using kernel 2.6-15
56
57 --
58 #Joseph
59 --
60 gentoo-user@g.o mailing list