Before you post please read how to get help
When using the operating system, I've bumped into a small hiccup. I have an external CD/DVD drive and it's recognized by the OS. However, when I insert a purchased (movie) DVD, the system will not mount it; I have to reboot my computer in order for this to occur. On the other hand, I can access the contents of the DVD via VLC and watch the movie that way.
This is the behavior I should see. Every time I insert a DVD, the system should mount it automatically. What do I need to do to ensure this happens?
Your time and input are appreciated.
This is a guess on my part, but I'm thinking this is a power management issue. Your system is powering down the usb port when idle, and it's not waking up as you'd like when inserting a DVD.
I don't have the know-how to safely correct this, but instead of a reboot, just unplug the device and plug it back in and it should be good, I think.
System: Host: walligood Kernel: 4.15.0-32-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Cinnamon 3.8.8 (Gtk 3.22.30-1ubuntu1) Distro: Linux Mint 19 Tara
Drives: HDD Total Size: 1000.2GB (3.6% used)
ID-1: /dev/sda model: HGST_HTS541010A7 size: 1000.2GB
Optical-1: /dev/sr0 model: N/A rev: N/A dev-links: cdrom,cdrw,dvd,dvdrw
Features: speed: 24x multisession: yes
audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: N/A
I opened up the Disk program provided the Linux Mint distribution, and I discovered that my DVD is blocked. I've attached an image. Can someone tell me how to unblock my external DVD device?
This is the only issue that I have with the Linux system. I can mount a DVD upon reboot, but that is the only time a mount is possible.
Normally, a CD/DVD-RW needs to be written to in the same manner as a CD/DVD-R which is to say that you basically need to compose it fully and then burn the entire content in one go. Packet writing uses CD/DVD-RW more like a floppy or USB stick; writes one or a few blocks at a time.
I have never used packet writing myself but I do believe it's these days standard on Windows. Did you just insert a CD/DVD-RW that was created in Windows at which point said /dev/pktcdvd device automagically appeared? The other option would seem to be you explicitly doing something to have it appear -- maybe just by having Brasero or another burner open. I haven't myself ever seen the device.
But it is at the very least then not the case that anything is blocked. All it is is a block device...
That is, I believe this thread for now needs a "needs more info" tag. Certainly on a vanilla install, installed with the option to "install additional codecs" selected, a factory-pressed DVD auto-mounts and plays fine.
One thing you should test is see if you can manually mount an inserted dvd:
sudo mount /dev/sr0 /mnt. If you can this should only output it being mounted read-only. Your DVD would then be available from /mnt in the file manager (Ctrl-L, type "/mnt"). If you can the issue seems non-fundamental; if you can not maybe something useful is displayed upon trying.
I'll ask a moderator to merge this thread with your previous one by the way; the device being "blocked" was a misunderstanding so it's still just that same thread. Previous one: viewtopic.php?f=48&t=275889&p=1514206#p1514206
sudo umount /mnt, and then check File Manager -> Edit -> Preferences -> Behaviour -> Media handling. By default, the first three out of four options there are selected.
Code: Select all
udevadm info /dev/sr0
Second, open the tray, run
udevadm monitor /dev/sr0, insert a factory-pressed disc and close. You should after it has spun up get "change" notifications from 'udevadm monitor' close to (here it's /dev/sr1 instead of /dev/sr0):
Code: Select all
$ udevadm monitor /dev/sr1 monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[46875.485686] change /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/host6/target6:0:0/6:0:0:0/block/sr1 (block) UDEV [46878.323145] change /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/host6/target6:0:0/6:0:0:0/block/sr1 (block)
Code: Select all
P: /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0/block/sr0 N: sr0 L: -100 S: cdrom S: cdrw S: disk/by-id/usb-HL-DT-ST_DVDRAM_SP80NB80_K1GH9ND3134-0:0 S: disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0 S: dvd S: dvdrw E: DEVLINKS=/dev/dvd /dev/disk/by-id/usb-HL-DT-ST_DVDRAM_SP80NB80_K1GH9ND3134-0:0 /dev/dvdrw /dev/cdrw /dev/disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0 /dev/cdrom E: DEVNAME=/dev/sr0 E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0/block/sr0 E: DEVTYPE=disk E: ID_BUS=usb E: ID_CDROM=1 E: ID_CDROM_CD=1 E: ID_CDROM_CD_R=1 E: ID_CDROM_CD_RW=1 E: ID_CDROM_DVD=1 E: ID_CDROM_DVD_PLUS_R=1 E: ID_CDROM_DVD_PLUS_RW=1 E: ID_CDROM_DVD_PLUS_R_DL=1 E: ID_CDROM_DVD_R=1 E: ID_CDROM_DVD_RAM=1 E: ID_CDROM_DVD_RW=1 E: ID_CDROM_MRW=1 E: ID_CDROM_MRW_W=1 E: ID_FOR_SEAT=block-pci-0000_00_14_0-usb-0_2_1_0-scsi-0_0_0_0 E: ID_INSTANCE=0:0 E: ID_MODEL=DVDRAM_SP80NB80 E: ID_MODEL_ENC=DVDRAM\x20SP80NB80\x20 E: ID_MODEL_ID=1887 E: ID_PATH=pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0 E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_0-scsi-0_0_0_0 E: ID_REVISION=RC00 E: ID_SERIAL=HL-DT-ST_DVDRAM_SP80NB80_K1GH9ND3134-0:0 E: ID_SERIAL_SHORT=K1GH9ND3134 E: ID_TYPE=cd E: ID_USB_DRIVER=usb-storage E: ID_USB_INTERFACES=:080250: E: ID_USB_INTERFACE_NUM=00 E: ID_VENDOR=HL-DT-ST E: ID_VENDOR_ENC=HL-DT-ST E: ID_VENDOR_ID=0e8d E: MAJOR=11 E: MINOR=0 E: SUBSYSTEM=block E: SYSTEMD_MOUNT_DEVICE_BOUND=1 E: TAGS=:uaccess:systemd:seat: E: USEC_INITIALIZED=50472029787
got to terminal and type in
sudo apt-get install libdvd-pkg
after it is install go to VLC click on media and then open disc
Code: Select all
udevadm monitor /dev/sr0 monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[50698.019545] change /devices/virtual/block/pktcdvd0 (block) KERNEL[50698.043073] change /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0/block/sr0 (block) UDEV [50698.072455] change /devices/virtual/block/pktcdvd0 (block) UDEV [50698.226107] change /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host2/target2:0:0/2:0:0:0/block/sr0 (block)