LinuxQuestions.org
Visit Jeremy's Blog.
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 06-23-2022, 06:14 PM   #1
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Rep: Reputation: 0
DVDs don't work in Kubuntu 20.04 LTS - tray keeps going to "open" state


Hi

Since upgrading to Kubuntu 20.04 LTS I haven't gotten DVDs to work. They've occasionally mounted so that I've seen the files on them, but I haven't managed to play a DVD at all. I've uninstalled the media players I usually use but left the ones that came with Kubuntu, and have been trying to at least get a DVD mounted with some reliability.

I've noticed that the DVD drive keeps going to "open" state regardless of whether it's actually open or not. Since I've been trying lots of things I don't know if this originally happened, but I noticed it after experimenting with eject. It caused the tray to open and then close immediately, after which I noticed this problem.

Here's some packages that might be relevant that I've got installed:
Code:
libdvd-pkg: 1.4.2-1-1
libdvdcss2: 1.4.2-1~local
libdvdcss-dev: 1.4.2-1~local
libdvdread7: 6.1.0+really6.0.2-1
libdvdread-dev: 6.1.0+really6.0.2-1
libdvdnav4: 6.0.1-1build1
libdvdnav-dev: 6.0.1-1build1
ubuntu-restricted-extras: 67
lsdvd: 0.17-1build2
setcd: 1.5-6build1
eject: 2.1.5+deb1+cvs20081104-14
My user is in the cdrom group.

After rebooting, and with a movie DVD in the drive, the situation looks like this:
Code:
grimripper@grimripper-desktop:~$ setcd -s /dev/sr0 
/dev/sr0:
  Auto close tray:     set
  Auto open tray:      cleared
  Use O_NONBLOCK flag: set
  Lock tray:           cleared
  Check CD type:       cleared
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0 
/dev/sr0:
  Disc found in drive: data disc type 1
    Volume name: 
    Publisher: 
    Data preparer: 
grimripper@grimripper-desktop:~$ ls -l /dev/sr0 
brw-rw----+ 1 root cdrom 11, 0 kesä   24 01:33 /dev/sr0
grimripper@grimripper-desktop:~$ ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 kesä   24 01:33 /dev/dvd -> sr0

sudo lshw -C disk (just the part about this device):
  *-cdrom
       description: DVD-RAM writer
       product: DRW-24B5ST
       vendor: ASUS
       physical id: 0.0.0
       bus info: scsi@1:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/cdrw
       logical name: /dev/dvd
       logical name: /dev/sr0
       version: 1.00
       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: ansiversion=5 status=ready
     *-medium
          physical id: 0
          logical name: /dev/cdrom
The DVD is not mounted under /media, doesn't show up in Dolphin or in device notifications. I've had a situation where /dev/dvd didn't exist, but that doesn't seem to be happening anymore. Also, despite many tries, just now was the first time "Volume name" etc. showed up with setcd -i. That and lshw both take a long time to run.

Then:
Code:
grimripper@grimripper-desktop:~$ lsdvd 
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Can't open disc /dev/dvd!
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0 
/dev/sr0:
  CD tray is open

  *-cdrom
       description: DVD-RAM writer
       physical id: 0.0.0
       bus info: scsi@1:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/cdrw
       logical name: /dev/dvd
       logical name: /dev/sr0
       capabilities: audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: status=open
...the tray somehow "opens" with lsdvd with the tray physically remaining closed.

Try to close it (sorry, localization...):
Code:
grimripper@grimripper-desktop:~$ eject -v -t /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: suljetaan levykelkka
eject: CD-levykelkan sulkukomento epäonnistui: I/O-virhe
Physically opening and closing the tray changes nothing.

I've found this:
Code:
grimripper@grimripper-desktop:~$ setcd -f0 /dev/sr0 
/dev/sr0:
  Use O_NONBLOCK flag: cleared
It causes some change:
Code:
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0    
Can't open device: No medium found
grimripper@grimripper-desktop:~$ setcd -s /dev/sr0  
Can't open device: No medium found
grimripper@grimripper-desktop:~$ setcd -f1 /dev/sr0 
Can't open device: No medium found

  *-cdrom UNCLAIMED
       description: SCSI CD-ROM
       physical id: 0.0.0
       bus info: scsi@1:0.0.0

grimripper@grimripper-desktop:~$ eject -v -t /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: suljetaan levykelkka
eject: kohdetta "/dev/sr0" ei voi avata
Again, physically opening and closing the tray does nothing. However, reboot after setcd -f0 /dev/sr0 and eject -v -t /dev/sr0 returns the drive to the "normal" state. Without them, the tray has still been "open" after rebooting.

Any ideas how to fix this and get DVDs working again? Thanks in advance!
 
Old 06-24-2022, 04:03 PM   #2
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Tools show the tray "open", no idea why.

Tried eject but it didn't work, as before:

Code:
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0 
/dev/sr0:
  CD tray is open
grimripper@grimripper-desktop:~$ eject -v /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: "/dev/sr0" ei ole moniosioinen laite
eject: yritetään poistaa asemasta "/dev/sr0" CD-levyn poistokomennolla
eject: CD-levyn poistokomento epäonnistui
eject: yritetään poistaa asemasta "/dev/sr0" SCSI-komennoilla
eject: SCSI-poisto epäonnistui
eject: yritetään poistaa asemasta "/dev/sr0" levykkeenpoistokomennolla
eject: levykkeenpoistokomento epäonnistui
eject: yritetään poistaa asemasta "/dev/sr0" nauhan offline-komennolla
eject: nauhan offline-komento epäonnistui
eject: ei voi poistaa, viimeinen virheilmoitus: Laitteelle sopimaton ioctl
grimripper@grimripper-desktop:~$ eject -v -t /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: suljetaan levykelkka
eject: CD-levykelkan sulkukomento epäonnistui: I/O-virhe
grimripper@grimripper-desktop:~$ eject -v -T /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: "/dev/sr0" ei ole moniosioinen laite
eject: avataan/suljetaan kelkka
eject: CD-levykelkan sulkukomento epäonnistui: I/O-virhe
Physically opened the tray and tried again:
Code:
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0 
/dev/sr0:
  CD tray is open
grimripper@grimripper-desktop:~$ eject -v /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: "/dev/sr0" ei ole moniosioinen laite
eject: yritetään poistaa asemasta "/dev/sr0" CD-levyn poistokomennolla
eject: CD-levyn poistokomento epäonnistui
eject: yritetään poistaa asemasta "/dev/sr0" SCSI-komennoilla
eject: SCSI-poisto epäonnistui
eject: yritetään poistaa asemasta "/dev/sr0" levykkeenpoistokomennolla
eject: levykkeenpoistokomento epäonnistui
eject: yritetään poistaa asemasta "/dev/sr0" nauhan offline-komennolla
eject: nauhan offline-komento epäonnistui
eject: ei voi poistaa, viimeinen virheilmoitus: Laitteelle sopimaton ioctl
grimripper@grimripper-desktop:~$ eject -v -t /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: suljetaan levykelkka
eject: CD-levykelkan sulkukomento epäonnistui: I/O-virhe
grimripper@grimripper-desktop:~$ eject -v -T /dev/sr0
eject: laitteen nimi on "/dev/sr0"
eject: laajennettu nimi on "/dev/sr0"
eject: kohdetta "/dev/sr0" ei ole liitetty
eject: "/dev/sr0" ei ole liitoskohta
eject: "/dev/sr0" ei ole moniosioinen laite
eject: avataan/suljetaan kelkka
eject: CD-levykelkan sulkukomento epäonnistui: I/O-virhe
No difference. And mounting it fails as it has done since 20.04 LTS upgrade:
Code:
grimripper@grimripper-desktop:~$ sudo mount /dev/sr0 /media/grimripper/DVD/
mount: /media/grimripper/DVD: no medium found on /dev/sr0.
 
Old 06-24-2022, 04:15 PM   #3
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Reboot leaving the tray open (it closed automatically): tools still show tray as open.

Code:
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0 
/dev/sr0:
  CD tray is open
grimripper@grimripper-desktop:~$ setcd -f0 /dev/sr0  
/dev/sr0:
  Use O_NONBLOCK flag: cleared
grimripper@grimripper-desktop:~$ eject -t /dev/sr0
eject: kohdetta "/dev/sr0" ei voi avata
This has changed the device to correct status before, with a reboot, but it doesn't seem to matter since it just goes to false "open" state again.
 
Old 06-24-2022, 04:32 PM   #4
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Wow Immediately after the computer starting up, it sort of worked... for a few seconds.

Code:
grimripper@grimripper-desktop:~$ setcd -i /dev/sr0 
Can't open device: Permission denied
grimripper@grimripper-desktop:~$ setcd -i /dev/dvd
Can't open device: No such file or directory
grimripper@grimripper-desktop:~$ sudo setcd -i /dev/sr0 
[sudo] grimripper-käyttäjän salasana: 
/dev/sr0:
  Disc found in drive: data disc type 1
    Volume name: Wild_wild_west
    Publisher: WARNER_HOME_VIDEO
    Data preparer: CVC
grimripper@grimripper-desktop:~$ ls -l /dev/dvd
ls: tiedostoa '/dev/dvd' ei voi käsitellä: Tiedostoa tai hakemistoa ei ole
grimripper@grimripper-desktop:~$ sudo lshw -C disk

  *-cdrom
       description: DVD-RAM writer
       physical id: 0.0.0
       bus info: scsi@1:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/cdrw
       logical name: /dev/dvd
       logical name: /dev/dvdrw
       logical name: /dev/sr0
       capabilities: audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: status=open

grimripper@grimripper-desktop:~$ sudo setcd -i /dev/sr0 
/dev/sr0:
  CD tray is open
grimripper@grimripper-desktop:~$ setcd -i /dev/dvd
/dev/dvd:
  CD tray is open
grimripper@grimripper-desktop:~$ ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 kesä   25 00:23 /dev/dvd -> sr0
grimripper@grimripper-desktop:~$ ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 kesä   25 00:23 /dev/sr0
So at first, /dev/sr0 didn't have the usual permissions which give me read access via the cdrom group, but with sudo, setcd managed for the first to read information of the disc, and did so without the long delay that's been there before. Also /dev/dvd didn't exist. When I tried lshw immediately after, it showed the tray as open and then everything was as it's usually been meaning nothing works.

Perhaps lshw or whatever sets /dev/sr0 privileges and/or creates the /dev/dvd symlink also changes the tray's state to "open"? I'll have to look into this.
 
Old 06-25-2022, 02:30 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Have you tried simply using your media player to play DVDs?
E.g. for mpv: 'mpv dvd://'
And in VLC, you can choose to open the /dev/sr0 device and play it.

I'm a bit unsure about the usefulness of setcd - I have never used it, it is not installed on any of my computers, and I can still play DVDs.

Or try playing with 'eject' instead, which can do much more than just eject:
Code:
man eject
 
Old 06-26-2022, 03:15 AM   #6
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Original Poster
Rep: Reputation: 0
setcd is something I found for troubleshooting the "tray is open" problem. And that problem is something I found while troubleshooting other DVD problems since "upgrading" to Kubuntu 20.04 LTS. DVDs mount occasionally, and I can list the files on them, but even then they can't be read. They can't be played, or mounted, they don't appear in device notifications, and attempts to get information about them occasionally hang a long time or fail.

Currently the "tray is open", while in reality it's not, of course. So mpv and vlc produce similar errors as everything else.

Code:
grimripper@grimripper-desktop:~$ mpv dvd://
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
libdvdnav: vm: failed to open/read the DVD
[dvdnav] Couldn't open DVD device: /dev/sr0
Failed to open dvd://.


Exiting... (Errors when loading file)
Code:
grimripper@grimripper-desktop:~$ vlc /dev/sr0
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[000055dbdbdbf5b0] main libvlc: Käynnistetään vlc oletuskäyttöliittymällä. Aja "cvlc", jos haluat käyttää vlc:tä ilman käyttöliittymää.
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
libdvdnav: vm: failed to open/read the DVD
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
libdvdnav: vm: failed to open/read the DVD
[00007f40740015b0] filesystem stream error: read error: Input/output error
[00007f4074001840] cache_read stream error: cannot pre fill buffer
[00007f4074001120] mjpeg demux error: cannot peek
I didn't find out how to use eject to play a DVD.
 
Old 06-26-2022, 06:57 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by grimripper View Post
I didn't find out how to use eject to play a DVD.
I think @ondoho probably meant something like "play around with eject and its options" so you could see if it made any difference. It seems obvious that 'eject' could not be used to play a dvd, but maybe it can handle the issues caused by the 'tray open' condition you are seeing.

It also may be that the drive itself is failing and the tray position sensor is giving a false signal.

Personally I have never used setcd and have never had an issue with my DVD/BluRay drives.
 
Old 06-27-2022, 02:27 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I'm sorry, I did not see that you had tried the ejct utility previously.
I would ask you to repeat the following command:
Code:
LC_ALL=C eject -vvv -T /dev/sr0
(and from now on prepend "LC_ALL=C" to all your commands)

FWIW, this is what mine looks like:
Code:
$> LC_ALL=C eject -vvv -T /dev/sr0
eject: device name is `/dev/sr0'
eject: /dev/sr0: not mounted
eject: /dev/sr0: is whole-disk device
eject: /dev/sr0: toggling tray
$>
"Not mounted" seems normal.

My VLC output is also similar to yours.

All done with no CD/DVD in the drive.

The main difference I see is you have "I/O-error"s in both cases, and I don't.
 
Old 06-27-2022, 04:20 AM   #9
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Oh, right.. I misinterpreted "playing with" eject reading too much context from mpv and VLC. Setting aside setcd, lshw shows a similar change in state: configuration: status=open or configuration: ansiversion=5 status=ready. Since it's now showing the latter, I'll retry mpv and VLC which I tried in the "open" state yesterday:

Code:
grimripper@grimripper-desktop:~$ mpv dvd://
libdvdnav: Using dvdnav version 6.0.1
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[dvdnav] Couldn't open DVD device: /dev/sr0
Failed to open dvd://.


Exiting... (Errors when loading file)
Code:
grimripper@grimripper-desktop:~$ vlc /dev/sr0
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[00005652868015b0] main libvlc: Käynnistetään vlc oletuskäyttöliittymällä. Aja "cvlc", jos haluat käyttää vlc:tä ilman käyttöliittymää.
libdvdnav: Using dvdnav version 6.0.1
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /dev/sr0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/dev/sr0/) failed
libdvdnav: Using dvdnav version 6.0.1
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[00007fe608001ef0] filesystem stream error: read error: Input/output error
[00007fe608002180] cache_read stream error: cannot pre fill buffer
[00007fe608001160] mjpeg demux error: cannot peek
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
QObject::~QObject: Timers cannot be stopped from another thread
Both of them took a long time and at some point lshw changed to configuration: status=open. I also forgot LC_ALL so here's another attempt with VLC:

Code:
grimripper@grimripper-desktop:~$ LC_ALL=C vlc /dev/sr0
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[000056207aefc460] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
libdvdnav: vm: failed to open/read the DVD
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Could not open /dev/sr0 with libdvdcss.
libdvdread: Can't open /dev/sr0 for reading
libdvdnav: vm: failed to open/read the DVD
[00007f102c0015f0] filesystem stream error: read error: Input/output error
[00007f102c001880] cache_read stream error: cannot pre fill buffer
[00007f102c001160] mjpeg demux error: cannot peek
QObject::~QObject: Timers cannot be stopped from another thread
That one was quick.

Here's eject, tray still "open":

Code:
grimripper@grimripper-desktop:~$ LC_ALL=C eject -vvv -T /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: toggling tray
eject: CD-ROM tray close command failed: Input/output error
grimripper@grimripper-desktop:~$ LC_ALL=C eject -vvv -t /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: closing tray
eject: CD-ROM tray close command failed: Input/output error
grimripper@grimripper-desktop:~$ LC_ALL=C eject -vvv /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sr0' using SCSI commands
eject: SCSI eject failed
eject: trying to eject `/dev/sr0' using floppy eject command
eject: floppy eject command failed
eject: trying to eject `/dev/sr0' using tape offline command
eject: tape offline command failed
eject: unable to eject, last error: Inappropriate ioctl for device
Quote:
It also may be that the drive itself is failing and the tray position sensor is giving a false signal.
I've been meaning to try the drive with an older Linux Mint Live USB (I've got one ready), but haven't gotten around to it.
 
Old 06-27-2022, 02:08 PM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
IMO these I/O errors, and other seemingly random malfunctions, point to a flaky drive.
You can get a CD/DVD drive for free or very little money; I have 2 or 3 lying around here just in case one dies; wouldn't that be an easier option for you?
 
Old 06-27-2022, 05:54 PM   #11
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Running a small linux live cd to test might answer your question also.
 
Old 02-20-2023, 06:42 PM   #12
grimripper
LQ Newbie
 
Registered: Jun 2022
Posts: 7

Original Poster
Rep: Reputation: 0
I've been swamped with other stuff and haven't done anything about this in a long time, including that live CD test. Something happened, though.

One evening I noticed a device icon in the system tray. It hadn't appeared for DVDs after the 20.04 LTS "upgrade", but only for USB drives, and I didn't have one attached. Turns out the mounting, autorun and system tray is now working as it used to. That was the evening after I disconnected all of the SATA cables, DVD drive included, from the motherboard, and reconnected them, not necessarily in the same slots.

So it seems simply disconnecting and reconnecting the DVD drive's SATA cable has fixed both the problems with the basic DVD handling caused by the 20.04 LTS "upgrade" and the problem with the drive going to "open" state while it isn't actually open.

I tried a few things.

This drive's part from LC_ALL=C sudo lshw -C disk:
Code:
  *-cdrom
       description: DVD-RAM writer
       product: DRW-24B5ST
       vendor: ASUS
       physical id: 0.0.0
       bus info: scsi@2:0.0.0
       logical name: /dev/cdrom
       logical name: /dev/cdrw
       logical name: /dev/dvd
       logical name: /dev/dvdrw
       logical name: /dev/sr0
       version: 1.00
       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
       configuration: ansiversion=5 status=nodisc
Code:
grimripper@grimripper-desktop:~$ lsdvd 
libdvdread: Could not open /dev/dvd with libdvdcss.
libdvdread: Can't open /dev/dvd for reading
Can't open disc /dev/dvd!
lsdvd didn't change the drive's status in lshw.

Code:
grimripper@grimripper-desktop:~$ LC_ALL=C eject -vvv -T /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: toggling tray
The tray opened and stayed open. The status in lshw changed to open. I inserted a DVD, ran the same eject, got the same output, and the DVD tray closed. The DVD was mounted under /media, the device icon appeared in the system tray, and the autorun popped up. The configuration part in lshw changed and a new part appeared.

Code:
       configuration: ansiversion=5 mount.fstype=udf mount.options=ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8 state=mounted status=ready
     *-medium
          physical id: 0
          logical name: /dev/cdrom
          logical name: /media/grimripper/WILD_WILD_WEST
          configuration: mount.fstype=udf mount.options=ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8 state=mounted
Now lsdvd prints information of the DVD without changing the status in lshw. The DVD also appears normally in Dolphin, I can view its contents normally and open files normally. Ejecting the DVD from the system tray causes the DVD tray to open and then immediately close, and the same when ejected from Dolphin. Opening the tray with eject also does the same thing. I didn't try opening with eject between inserting the DVD and trying eject from the system tray. Without a DVD in the drive, eject still works correctly.

Code:
grimripper@grimripper-desktop:~$ LC_ALL=C eject -vvv /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is mounted at `/media/grimripper/WILD_WILD_WEST'
eject: unmounting device `/dev/sr0' from `/media/grimripper/WILD_WILD_WEST'
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sr0' using SCSI commands
eject: SCSI eject succeeded
Opening the tray with the button on the drive works as it should. That's what I usually use so the software open/close not working isn't a major problem.

I still can't play DVDs though. That's part of the original problem I looked into after the 20.04 LTS "upgrade", along with mounting etc. It's outside the "tray is open" problem that I started this thread for, but maybe I'll post something about it later since it's been touched here.
 
  


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
LXer: Kubuntu Devs Need Your Help to Test KDE Plasma 5.8.8 LTS on Kubuntu 16.04 LTS LXer Syndicated Linux News 0 10-29-2017 07:51 AM
Ubuntu 12.04 LTS: upgrade to 14.04 LTS failed, half-ready state SuSE_Lamer Linux - Desktop 9 08-23-2015 04:42 PM
12.04 LTS: upgrade to 14.04 LTS failed, half-ready state SuSE_Lamer Ubuntu 4 08-23-2015 02:11 PM
"TOP" Command keeps going to "stopped" state mudtoe Linux - Newbie 3 03-09-2009 11:15 PM
Cups says "Media tray empty!" but I have +50 sheets of paper in tray... r_jensen11 Linux - Hardware 8 09-07-2004 10:46 PM

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

All times are GMT -5. The time now is 07:52 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