Inserting dvd causes linux to crash

0 views
Skip to first unread message

smi...@home.com

unread,
May 31, 2009, 7:01:53 PM5/31/09
to

I have upgraded Slackware to 12.2 current and now whenever I insert a dvd
the whole machine crashes. I tried it from a CLI and it looks like the
kernel is dumping. I have to do a hard reset.

smi...@home.com

unread,
May 31, 2009, 8:19:52 PM5/31/09
to

After doing a little investigation I found that a blank dvd doesn't cause
the problem. It's when a dvd is mounted that the crash happens. At first
I suspected HALD so I turned that off and inserted the dvd and everything
went ok, then I tried mounting it with mount /dvd and it crashed. SO I
tried mounting as root with 'mount -t iso9660 /dev/hdc /cdrom' and it
crashed. It seems that there is a problem in the mounting operation but
where it is is a mystery to me.

smi...@home.com

unread,
May 31, 2009, 10:02:56 PM5/31/09
to

Ok just for info later on, I found the problem:

run "hdparm /dev/hdc"
if "using_dma = 1 then turn it off with

hdparm -d 0 /dev/hdc

Put that in your /etc/rc.d/rc.local since
it is the last file run on bootup.

I don't know why this causes Slack to crash but
that's the cure.

Sylvain Robitaille

unread,
Jun 1, 2009, 12:32:45 AM6/1/09
to
smi...@home.com wrote:

> Ok just for info later on, I found the problem:
>
> run "hdparm /dev/hdc"

> if "using_dma = 1 then turn it off ...


>
> I don't know why this causes Slack to crash but
> that's the cure.

It's not Slackware; I've had DMA enabled on (CD/DVD/etc) drives on
Slackware systems for many years. This problem may be specific to
your system. I do have some 12.2 systems, but the following is from
the system I'm posting from, so more convenient at the moment:

; cat /etc/slackware-version
Slackware 12.1.0
; uname -a
Linux charlotte 2.6.24.5 #2 Wed Apr 30 14:13:52 CDT 2008 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
; dmesg |egrep -iw 'hd[ab]'
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:DMA
hdb: _NEC DVD+/-RW ND-3530A, ATAPI CD/DVD-ROM drive
hda: SAMSUNG CD-R/RW SW-252S, ATAPI CD/DVD-ROM drive
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/33 mode selected
hdb: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hdb: UDMA/33 mode selected
hda: ATAPI 16X CD-ROM CD-R/RW drive, 2048kB Cache
hdb: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
; hdparm /dev/hda |grep using_dma
using_dma = 1 (on)
; hdparm /dev/hdb |grep using_dma
using_dma = 1 (on)
; ls -l /dev |egrep -w 'hd[ab]'
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdr -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdr0 -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdr1 -> hda
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdrom -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdrom0 -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdrom1 -> hda
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdrw -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdrw0 -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdrw1 -> hda
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdwriter -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdwriter0 -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 cdwriter1 -> hda
lrwxrwxrwx 1 root system 3 Jan 9 14:20 dvd -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 dvd0 -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 dvdrw -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 dvdrw0 -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 dvdwriter -> hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 dvdwriter0 -> hdb
brw-rw---- 1 root users 3, 0 Jan 9 14:20 hda
brw-rw---- 1 root users 3, 64 Jan 9 14:20 hdb
lrwxrwxrwx 1 root system 3 Jan 9 14:20 writer -> hdb

Is your kernel stock?

--
----------------------------------------------------------------------
Sylvain Robitaille s...@encs.concordia.ca

Systems analyst / AITS Concordia University
Faculty of Engineering and Computer Science Montreal, Quebec, Canada
----------------------------------------------------------------------

Grant

unread,
Jun 1, 2009, 6:50:40 AM6/1/09
to

No, that's not a cure, it's a silly workaround for not having the
correct driver loaded.

Grant.
--
http://bugsplatter.id.au

smi...@home.com

unread,
Jun 5, 2009, 12:46:21 PM6/5/09
to

> Is your kernel stock?


Yes my kernel is stock. I had dma on with slack 12.0 also without a
problem, this only started after I upgrade3d to 12.2 current.

Doesn't matter though. Everything is working fine, even the dvd.

Hans

unread,
Jun 6, 2009, 9:15:48 AM6/6/09
to

I ran into a simular problem with 2.6.30-rc1. The kernel even dumps at
boot time. I have opened at the kernel bugtracker:
http://bugzilla.kernel.org/show_bug.cgi?id=13399

--
Hans

cfdev

unread,
Jun 14, 2009, 4:21:37 PM6/14/09
to

I have the same problem with current and not with 12.2, when I insert
an dvd !!!
In console I have this:

...
[<c07aedbf>] panic+0x4a/0xe8
...
[<c011384b>] smp_apic_timer_interrupt+0x5b/0x90
[<c0103927>] common_interrupt+0x27/0x2c
[<c0109cf2>] default_idle+0x42/0x50
[<c01022e4>] cpu_idle+0x64/0x80
---[ end trace 98d8e7c809cdead2 ]---

but nothing in /var/log sorry :(

my hardware :
PIONEER DVD-RW DVR-108 (Firmware 1.14) , CM ASUS- A8N-SLI Deluxe(bios
1016)

++

Hans

unread,
Jun 15, 2009, 1:34:47 PM6/15/09
to

Wel, get involved at bugzilla.kernel.org. You will need to find out how
to compile a kernel, and in this case, how to display your console over
a serial line.

--
Hans

cfdev

unread,
Jun 29, 2009, 12:41:56 PM6/29/09
to

Good FIX with kernel 2.6.29.5 !!! :D
++

Reply all
Reply to author
Forward
0 new messages