LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-20-2003, 02:14 PM   #1
mkaman
Member
 
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Rep: Reputation: 16
Question SAMSUNG CD-R/RW SW-408B Hangs my sistem when i mount it


(my english is out of date, i'll do my best)
My current config is:
Red Hat Linux 9.0 shrike with kernel 2.4.20-8
One master IDE CDRW drive:
-Output of command "cdrecord -scanbus":
SAMSUNG CD-R/RW SW-408B BS02
-From dmesg command
hdc: SAMSUNG CD-R/RW SW-408B, ATAPI CD/DVD-ROM drive
One slave IDE CDROM (in the same ide cable that cdrw):
-From dmesg command:
hdd: ATAPI-CD ROM-DRIVE-52MAX, ATAPI CD/DVD-ROM drive

The version of sg is ("cat /proc/scsi/sg/version"):
30124 Version: 3.1.24 (20020505)
There is not a line about the scsi or ide-scsi modules in /etc/modules.conf only for usb
and for the sound module, but all the required modules are loaded:

(part of the output of lsmod)
ide-scsi 12208 0
scsi_mod 107160 3 [sg sr_mod ide-scsi]
ide-cd 35708 0
cdrom 33728 0 [sr_mod ide-cd]

And now the problem:
The cdr device works fine but when i try to mount the cdrw device ( "mount /dev/hdc /mnt/cdrom1") the entire system hangs completely and i only can push the reset buttom after that :S. I used the cdrw drive in the instalation :S

This is part of the output of dmesg command:
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda: DMA , hdb: DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc: DMA , hdd: DMA
hda: ST320413A, ATA DISK drive
hdb: SAMSUNG SV0322A, ATA DISK drive
blk: queue c03c9f40, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03ca084, I/O limit 4095Mb (mask 0xffffffff)
hdc: SAMSUNG CD-R/RW SW-408B, ATAPI CD/DVD-ROM drive
hdd: ATAPI-CD ROM-DRIVE-52MAX, ATAPI CD/DVD-ROM drive
hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 39102336 sectors (20020 MB) w/512KiB Cache, CHS=2434/255/63, UDMA(33)
hdb: host protected area => 1
hdb: 6250608 sectors (3200 MB) w/478KiB Cache, CHS=775/128/63, UDMA(33)

I saw the error from the set_drive_speed_status and i searched the internet trought
google but without any result.
I saw many posts of people that had the same cdrw drive and the same error but
without any solutions. One of them commented that the problem
begin with a kernel of a version greater than 2.4.1. With kernel 2.4.1 the device works for him.

After rebooting i took a look in the logs but i did'nt found nothing more.
 
Old 10-20-2003, 04:22 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
First of all, well done, you've shown lotsa info, and that's a damn good thing...

There is not a line about the scsi or ide-scsi modules in /etc/modules.conf only for usb
and for the sound module, but all the required modules are loaded

IIRC this happens during modprobe or at least in /etc/rc.d/rc.sysinit.

hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04

Just a hunch, but try using "hdparm -d 0 " on hdc and hdd to see if the errors where caused by letting the cdr's use DMA.
 
Old 10-20-2003, 04:27 PM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Talking

I was impressed too unSpawn. Somebody that gave a lot of info.

I had a Samsung SW-248 drive once and never got it to work. I did see where someone else got theirs to work though. They didn't post what they did though, so I can't share.

Later
 
Old 10-21-2003, 02:27 PM   #4
mkaman
Member
 
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Original Poster
Rep: Reputation: 16
Thanx unSpawn IT WORKS!!!

I disabled the dma only in the cdrw device and it worked.
It's looks like that the problem is to use dma with that cdrw device, if the other device have dma enabled or not aparently has no effect (i have tested it).

For those who have the same problem but are more newbie than me here is an
explanation:
-Copy the file "/etc/sysconfig/harddisks" to "/etc/sysconfig/harddisksXX" with XX the
name of de ide device (i.e. hdc in my system). Edit it and add somewhere a line like
"USE_DMA=0" (you need to be root to do this and the hdparm rpm instaled)
 
Old 10-21-2003, 05:14 PM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I need to remember that. I have seen that problem before. That may be what was wrong with the one I had.

Later

 
Old 10-30-2003, 04:01 AM   #6
st_purple
LQ Newbie
 
Registered: Oct 2003
Location: indonesia
Distribution: mandrake linux 9.1
Posts: 13

Rep: Reputation: 0
well....blame it on the SAMSUNG.....i once used it too, my brother used it too under Windows XP. And....i can't used it, i can't run the XP and so on and so on and so on, compability is the problem....so.....??? up to you then
 
Old 11-04-2003, 08:57 PM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
i have the same problem, but the proposed solution does not work as i have set ide-scsi emulation on the drive to allow cd-writing,

what is the method for diabling scsi dma ?
it looks like hdparm is for ide only support.
 
Old 11-05-2003, 12:48 PM   #8
mkaman
Member
 
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Original Poster
Rep: Reputation: 16
My cdrw device is set to use scsi emulation too.
But you still can use hdparm over the hdc (Note: In the kernel params my cdrw is configured like this : hdc=ide-scsi) disk and it will correctly set/disable the dma for it.

If that didn't solved the problem maybe there is another thing that fails (do you have the same model of device?).
Try to give more info about your device config and see if anyone gets the trick.
 
Old 11-05-2003, 12:52 PM   #9
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
thank, sorted it now.
 
Old 02-10-2004, 08:09 PM   #10
wi77ard
LQ Newbie
 
Registered: Feb 2004
Location: Ireland
Distribution: Redhat 9
Posts: 12

Rep: Reputation: 0
I too have the same CD R/RW drive

I've just installed redhat 9 and cant get my cd drive to work at all, just hangs and then i have to reboot.

I tried copying and editing the harddisks file, but this hasnt worked, how do i tell if my drive is set to scsi emulation?

when i use the dmesg command i too get:

hdc: SAMSUNG CD-R/RW SW-408B, ATAPI CD/DVD-ROM drive
hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04

please help, am reading everything i can about the subject to find an answer

wi77ard
 
Old 02-11-2004, 04:22 AM   #11
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally posted by mkaman
Thanx unSpawn IT WORKS!!!

I disabled the dma only in the cdrw device and it worked.
It's looks like that the problem is to use dma with that cdrw device, if the other device have dma enabled or not aparently has no effect (i have tested it).

For those who have the same problem but are more newbie than me here is an
explanation:
-Copy the file "/etc/sysconfig/harddisks" to "/etc/sysconfig/harddisksXX" with XX the
name of de ide device (i.e. hdc in my system). Edit it and add somewhere a line like
"USE_DMA=0" (you need to be root to do this and the hdparm rpm instaled)
Did you try all that mkaman did? He got his to work and it may work for you.

Are you exceptionally new to Linux and need a little hand holding? Been there, it's OK.

Later

 
Old 02-11-2004, 05:24 AM   #12
wi77ard
LQ Newbie
 
Registered: Feb 2004
Location: Ireland
Distribution: Redhat 9
Posts: 12

Rep: Reputation: 0
I'm slowly reading through the book I bought with the redhat cd's

I just found out i dont have hdpram.rpm installed.
I've been looking around the installation cd's and found a folder called RPMS but it doesnt seem to be in there, where would i find the hdpram.rpm ??

I did copy the file, edited it and added the line USE_DMA=0

it allready had this line : #USE_DMA=1 should i take it out??

thanks for the help, its frustrating not knowing how to do all these things. But i already see linux has lots more to offer than windows xp. Guess it just takes time and patience (and a good forum )

wi77ard
 
Old 02-11-2004, 06:25 AM   #13
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Here is a very good piece of info about conf files in general, a # means ignore to the computer, for that one line though. Example:

# these lines are ignored.
#I can type what ever I want and the system does not see it.
#It is for notes.

This line will be seen by the system. It would not understand what I am saying but it would read it anyway. <computer >

I have never used Redhat so I may be corrected by someone who does.That line #USE_DMA=1 won't matter for reasons above. I would uncomment, take out the # and make it =0 to be sure.

If you open Mozilla there may be some links in there from Redhat, in the bookmarks list. Mandrake puts them in there for upgrades and software etc. You may want to try http://www.rpmfind.net/ . They usually have all the rpms that exist. Make SURE to get the right version. Don't put Redhat 7 rpm on your system unless you know, or they say, it will work.

Don't worry about being new. We all were at first. Me too. Still am as a matter of fact.

Good search tool for Linux, www.google.com/linux and here of course.

Back later

 
Old 02-11-2004, 07:34 AM   #14
wi77ard
LQ Newbie
 
Registered: Feb 2004
Location: Ireland
Distribution: Redhat 9
Posts: 12

Rep: Reputation: 0
still no luck with it

i copied the harddisks file and renamed it harddiskshdc

i'll post the contents of the file, maybe i typed it in the wrong place or somehting?


harddiskshdc reads:

These options are used to tune the hard drives -
# read the hdparm man page for more information

# Set this to 1 to enable DMA. This might cause some
# data corruption on certain chipset / hard drive
# combinations. This is used with the "-d" option

USE_DMA=0

# Multiple sector I/O. a feature of most modern IDE hard drives,
# permitting the transfer of multiple sectors per I/O interrupt,
# rather than the usual one sector per interrupt. When this feature
# is enabled, it typically reduces operating system overhead for disk
# I/O by 30-50%. On many systems, it also provides increased data
# throughput of anywhere from 5% to 50%. Some drives, however (most
# notably the WD Caviar series), seem to run slower with multiple mode
# enabled. Under rare circumstances, such failures can result in
# massive filesystem corruption. USE WITH CAUTION AND BACKUP.
# This is the sector count for multiple sector I/O - the "-m" option
#
# MULTIPLE_IO=16

# (E)IDE 32-bit I/O support (to interface card)
#
# EIDE_32BIT=3

# Enable drive read-lookahead
#
# LOOKAHEAD=1

# Add extra parameters here if wanted
# On reasonably new hardware, you may want to try -X66, -X67 or -X68
# Other flags you might want to experiment with are -u1, -a and -m
# See the hdparm manpage (man hdparm) for details and more options.
#
EXTRA_PARAMS=



lsmod reads:

ide-scsi 12208 0
scsi_mod 107160 3 [sg sr_mod ide-scsi]
ide-cd 35708 0
cdrom 33728 0 [sr_mod ide-cd]

and finally dmesg reads:

hdc: SAMSUNG CD-R/RW SW-408B, ATAPI CD/DVD-ROM drive
hdc: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdc: set_drive_speed_status: error=0x04


how do i know if i already have hdpram.rpm installed?

I have another CDROM drive, which is a samsung SC 152C. this seems to be working fine, and when i put a cd into the drive it auto mounts. this drive is set to /dev/cdrom and the CDR/RW is set to /dev/cdrom1 would this make any diff?


I now have another problem .............. redhat cant find my modem, its an intel ham fax modem. how do i get it to detect it? i found a intel ham linux driver on a driver website, but wouldnt know how to install it.

wi77ard

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which distro for a sistem without any connection... mediolanum Linux - Newbie 3 07-29-2005 06:21 PM
File sistem with errors klemen Slackware 4 01-03-2005 11:51 AM
Joystick as mouse for the sistem carrie Linux - General 1 10-14-2004 06:07 AM
Samsung CDR/RW - crashes when i try to mount wi77ard Linux - Hardware 0 02-11-2004 07:45 PM
samsung cd-r/rw sw-408b punker Linux - Hardware 2 07-29-2003 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration