CD-ROM: Inappropriate ioctl for device

Forum rules
Before you post please read this

CD-ROM: Inappropriate ioctl for device

Postby Axel Larator on Sun Jun 17, 2012 7:03 am

Hello Everybody,

since yesterday my CD-Roms are gone. Neither the build-in nor an USB one is working. Or better they are recognized but not mounted. The only error message popped up with eject. eject: unable to eject, last error: Inappropriate ioctl for device

Where do I look for an Inappropriate ioctl ? lsub and lspci are finding both drives. Both are working in terms of spinning (and reading) and had been used for the Mate installations.

hdparm -D1 /dev/cdrom gets me this:

/dev/cdrom:
setting drive defect management to 1
HDIO_DRIVE_CMD(defectmgmt) failed: Input/output error

hdinfo delivers:

38: SCSI 00.0: 10602 CD-ROM (DVD)
[Created at block.247]
UDI: /org/freedesktop/Hal/devices/storage_serial_HL_DT_ST_DVDRAM_GSA_4163B_K0252N62139
Unique ID: KD9E.yOhKympCY13
Parent ID: RE4e.ECLGJVyTAzC
SysFS ID: /class/block/sr0
SysFS BusID: 0:0:0:0
SysFS Device Link: /devices/pci0000:00/0000:00:08.0/host0/target0:0:0/0:0:0:0
Hardware Class: cdrom
Model: "HL-DT-ST DVDRAM GSA-4163B"
Vendor: "HL-DT-ST"
Device: "DVDRAM GSA-4163B"
Revision: "A105"
Driver: "pata_amd", "sr"
Driver Modules: "pata_amd"
Device File: /dev/sr0 (/dev/sg0)
Device Files: /dev/sr0, /dev/cdrom, /dev/cdrw, /dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GSA-4163B_K0252N62139, /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0, /dev/dvd, /dev/dvdrw
Device Number: block 11:0 (char 21:0)
Features: CD-R, CD-RW, DVD, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD+DL, DVDRAM
Drive status: no medium <- Wrong (Axel)
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #16 (IDE interface)
Drive Speed: 40

Someone an idea?

Regards
Axel
Axel Larator
Level 1
Level 1
 
Posts: 3
Joined: Thu Jun 07, 2012 5:26 am

Linux Mint is funded by ads and donations.
 

Re: CD-ROM: Inappropriate ioctl for device

Postby lmintnewb2 on Sun Jul 29, 2012 11:21 pm

What are they listed as in /etc/fstab ? In terminal ...

Code: Select all
cat /etc/fstab


Can't say if it's related to your issue. Recently found out "eject -T" wouldn't work w the dvd or cd drives on this pc anymore. Fix turned out to be as simple as changing the entries in fstab for them from /dev/scd0 to /dev/sr0 for the dvd-rw and the cd-rom from /dev/scd1 to /dev/sr1 Guess can't hurt to look @.
lmintnewb2
Level 1
Level 1
 
Posts: 18
Joined: Sat Apr 07, 2012 5:23 am


Return to Mounting Partitions

Who is online

Users browsing this forum: yigit and 4 guests