Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

  1. #11
    Join Date
    Jun 2007
    Beans
    12,506

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    I would try playing with 'eject -v' command when tray is locked and see what output that gives you.

  2. #12
    Join Date
    Sep 2011
    Beans
    133

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    Quote Originally Posted by Temüjin View Post
    I would try playing with 'eject -v' command when tray is locked and see what output that gives you.
    HI Temujin,

    Here's what I get when I use that command:

    fred@fred-CAUS:~$ sudo eject -v
    [sudo] password for fred:
    eject: using default device `cdrom'
    eject: device name is `cdrom'
    eject: expanded name is `/dev/cdrom'
    eject: `/dev/cdrom' is a link to `/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

    However I can use /dev/sr1 over and over again with a DVD or audio CD and it never is locked. The screenshot makes it sound like Ubuntu see's the drives mounted on top of each other, or that's the way I read it.

    Please see the screenshot that I get when I run the command:

    lshw -C disk

    Thank you for your interest in my problem!

    Cheers! J T
    Attached Images Attached Images

  3. #13

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    I no longer have a desktop machine with 2 dvd drives so really can't compare some things. But maybe some others do...

    Would be interesting to know if sudo lshw -C disk under the *-cdrom:1 section only shows 1 logical drive (/dev/sr1) or also has something like /dev/cdrom1
    (I'm inclined to think only the 1 vs. *-cdrom:0 which has 2 logical drives (/dev/sr0 & /dev/cdrom

    Also in this file are there 2 KERNEL== lines or just 1?, eg. KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
    Code:
    cat  /lib/udev/rules.d/60-cdrom_id.rules
    What happens if you turn off automounting of media, (other than autoplay won't work), can you use the sr0 drive multiple times?
    Code:
    gsettings set org.gnome.desktop.media-handling automount false
    (- to reset back just go
    Code:
    gsettings set org.gnome.desktop.media-handling automount true
    I do have an external drive I can pick up tomorrow though it may not be the same as 2 internal...

    Worst case if nothing else works (you may wish to wait for further info from ^
    You could try creating 2 mountpoints & setting each drive in fstab, whether there is a downside to this I currently can't say as haven't done so in some time.

    Ex. -
    Code:
    sudo mkdir /media/cdrom0 /media/cdrom1
    Then add these 2 lines to bottom of /etc/fstab, save & restart
    Code:
    /dev/sr0  /media/cdrom0 udf,iso9660 user,noauto,exec    0  0
    /dev/sr1  /media/cdrom1 udf,iso9660 user,noauto,exec    0  0
    To revert just remove the 2 lines from fstab ( and the space they occupied) & remove the 2 folders in media
    Last edited by mc4man; June 21st, 2014 at 04:06 AM. Reason: )

  4. #14
    Join Date
    Sep 2011
    Beans
    133

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    Mc4man,

    Here's what I come up with so far. The sudo lshw -C disk command yields this:

    fred@fred-CAUS:~$ sudo lshw -C disk
    [sudo] password for fred:
    *-disk
    description: ATA Disk
    product: WDC WD6401AALS-0
    vendor: Western Digital
    physical id: 0.0.0
    bus info: scsi@1:0.0.0
    logical name: /dev/sda
    version: 01.0
    serial: WD-WCASY7603189
    size: 596GiB (640GB)
    capabilities: partitioned partitioned:dos
    configuration: ansiversion=5 sectorsize=512 signature=ef5bef5b
    *-cdrom:0
    description: DVD writer
    product: DVD RW DW-U10A
    vendor: SONY
    physical id: 0.0.0
    bus info: scsi@5:0.0.0
    logical name: /dev/cdrom
    logical name: /dev/sr0
    version: 1.1d
    serial: [
    capabilities: removable audio cd-r cd-rw dvd dvd-r
    configuration: ansiversion=5 status=nodisc
    *-cdrom:1
    description: DVD-RAM writer
    product: iHAP322 9
    vendor: ATAPI
    physical id: 0.1.0
    bus info: scsi@5:0.1.0
    logical name: /dev/sr1
    version: 6L1C
    capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
    configuration: ansiversion=5 status=nodisc
    *-disk:0
    description: SCSI Disk
    product: USB HS-CF Card
    vendor: Sony
    physical id: 0.0.0
    bus info: scsi@4:0.0.0
    logical name: /dev/sdb
    version: 3.95
    capabilities: removable
    configuration: sectorsize=512
    *-medium
    physical id: 0
    logical name: /dev/sdb
    *-disk:1
    description: SCSI Disk
    product: USB HS-xD/SM
    vendor: Sony
    physical id: 0.0.1
    bus info: scsi@4:0.0.1
    logical name: /dev/sdc
    version: 3.95
    capabilities: removable
    configuration: sectorsize=512
    *-medium
    physical id: 0
    logical name: /dev/sdc
    *-disk:2
    description: SCSI Disk
    product: USB HS-MS Card
    vendor: Sony
    physical id: 0.0.2
    bus info: scsi@4:0.0.2
    logical name: /dev/sdd
    version: 3.95
    serial: 3
    capabilities: removable
    configuration: sectorsize=512
    *-medium
    physical id: 0
    logical name: /dev/sdd
    *-disk:3
    description: SCSI Disk
    product: USB HS-SD Card
    vendor: Sony
    physical id: 0.0.3
    bus info: scsi@4:0.0.3
    logical name: /dev/sde
    version: 3.95
    capabilities: removable
    configuration: sectorsize=512
    *-medium
    physical id: 0
    logical name: /dev/sde
    fred@fred-CAUS:~$

    Then I ran the other one and got this:

    fred@fred-CAUS:~$ cat /lib/udev/rules.d/60-cdrom_id.rules
    # do not edit this file, it will be overwritten on update

    ACTION=="remove", GOTO="cdrom_end"
    SUBSYSTEM!="block", GOTO="cdrom_end"
    KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
    ENV{DEVTYPE}!="disk", GOTO="cdrom_end"

    # unconditionally tag device as CDROM
    KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"

    # media eject button pressed
    ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"

    # import device and media properties and lock tray to
    # enable the receiving of media eject button events
    IMPORT{program}="cdrom_id --lock-media $devnode"

    KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"

    LABEL="cdrom_end"
    fred@fred-CAUS:~$

    Interesting to see that it mentions locking the drive...

    If I disable the automount of the /sr0 it has no effect, one play and one eject and the drive is locked again. It is possible to play a DVD/CD many times in /dev/sr1 and it never locks the tray!

    I also notice that now I have no prompt asking me what player to use when I insert a DVD. The daemon for that option is enabled in System Settings | Details |Removeable Media. I have tried setting the default player to VLC for DVD's but that won't work it doesn't open up when a disc is inserted.

    If I go to the etc fstab folder, it's listed as fstab.d not just etc/fstab, I do not know if that makes a difference so I didn't go any further with it until I hear from you or temujin again, when you have the time of course.Currently that folder etc/fstab.d is devoid of any files or folders. So it's not clear when you say "add to the bottom," of that folder...



    I'm in very unfamiliar territory with all of this, but it's sure a learning experience and I'm glad for all the help that's for sure

    J T
    Last edited by J Tinsby; June 23rd, 2014 at 06:03 PM. Reason: additional info

  5. #15
    Join Date
    Sep 2011
    Beans
    133

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    I found this link to a bug in Ubuntu :https://bugs.launchpad.net/ubuntu/+s...ks/+bug/397734

    It references a line to add to the /etc/sysctl.d folder but it appears to be for a bug in ubuntu 9.10

    The question is will it work on my machine? The line is

    # CD/DVD eject button doesn't work until /proc/sys/dev/cdrom/lock is 1

    I can find the folder and use the terminal to log in as root but I still can't make a new folder to add to the /etc/sysctl.d folder

    Maybe that's a good thing! Can't see how adding that line above will help in v 14.04 but I am trying anything to make it work.

    Probably going about it all wrong but I am trying....

    Thanks

  6. #16

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    Just to clear up - your current situation is
    1. the sr0 drive can play one dvd on fresh boot & then you are unable to play anymore dvd's because you can't eject that dvd.
    2. the sr0 drive can play one dvd on fresh boot, you can eject that dvd but then no other dvd's will work without a reboot
    3. some combination of the 2 above

  7. #17
    Join Date
    Sep 2011
    Beans
    133

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    mc4man,

    I can eject the sr0 disc but after that the tray is locked.
    sr1 can repeatedly play and eject audio or dvd discs with no lockup of tray, but everything, IE: VLC, has to be started manually
    A reboot makes sr0 available again, but for one play only.

    Inserting a disc would give a popup window asking me "what do you want to use the play the media?" ( paraphrasing) I no longer get that window on inserting a CD or DVD. The daemon for the 'prompt on insert IS running, or at least the box for it isn't ticked. I think that "might" have been caused by an update that I did today to the OS. Not certain tho' would be nice to see that again....

    I prefer not to have one player associated with a particular file type, I guess it's a holdover from MS, I do the same thing there usually.

    Did you see the screenshot in my post #12 above? It makes it sound like both drives are mounted to the same space, causing it not to eject.

    Regards, thanks very much, I appreciate your interest as I do all the others! Tough to take on someone else's troubles when you can't be there to have your hands on the box, so to speak. Trust me I know from experience!

    J T
    Last edited by J Tinsby; June 24th, 2014 at 01:15 AM. Reason: Additonal info

  8. #18

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    Then I would try what I suggested about creating specific mountpoints for each drive & setting in fstab
    Are you comfortable using nano as a root text editor? (or you can use gedit in one of 2 specific ways.

  9. #19
    Join Date
    Sep 2011
    Beans
    133

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    Quote Originally Posted by mc4man View Post
    Then I would try what I suggested about creating specific mountpoints for each drive & setting in fstab
    Are you comfortable using nano as a root text editor? (or you can use gedit in one of 2 specific ways.
    I'll be glad to try whatever is the least cumbersome for you, gedit reminds me of Notepad, but I will try anything that will work!

    It might be safer for me to use gedit. I wanted to do what you suggested prior but wasn't sure if the folder /etc/fstab.d is the same as /etc/fstab as you referred to it. So that's where or why I stopped the process, I don't want to be editing the wrong file(s). Seems like a logical thing to have a mount point for each drive.

    Plus you said " Then add these 2 lines to bottom of /etc/fstab, save & restart" >>>>> Since the fstab.d folder is empty already I was confused when you said "bottom", so again went no further. I am taking all your advice literally, as you can see, so as to get it right.

    Code:
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/sr1 /media/cdrom1 udf,iso9660 user,noauto,exec 0 0

    Can I just paste those files into the fstab.d folder or must they be put in, in a certain way?

    Thanks,

    J T
    Attached Images Attached Images
    Last edited by J Tinsby; June 24th, 2014 at 03:11 PM. Reason: screenshot addition

  10. #20

    Re: VLC "was" working in Ubuntu 14.04 but only for one DVD ...

    /etc/fstab is a file, not referring to /etc/fstab.d

    Do a fresh boot with no media in any dvd drive.
    open a terminal -
    Code:
    sudo mkdir /media/cdrom0 /media/cdrom1
    Make a backup of /etc/fstab just in case..
    Code:
    sudo cp /etc/fstab /etc/fstab.bak
    When that is done in the terminal
    Code:
    sudo -H gedit /etc/fstab
    In the gedit window that opens copy & paste this at bottom, directly below the last line
    Code:
    /dev/sr0  /media/cdrom0 udf,iso9660 user,noauto,exec    0  0
    /dev/sr1  /media/cdrom1 udf,iso9660 user,noauto,exec    0  0
    look at screen to see how it should look, (this is my fstab, so lines above the added are different, highlighted is what you are adding
    Attached Images Attached Images

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •