DVD Not Mount Without Reboot

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

DVD Not Mount Without Reboot

Post by alligoodw » Sat Aug 18, 2018 8:38 pm

I'm using Linux Mint 19 and I love it.

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.
Last edited by alligoodw on Mon Aug 20, 2018 3:02 pm, edited 2 times in total.

User avatar
MrEen
Level 7
Level 7
Posts: 1964
Joined: Mon Jun 12, 2017 8:39 pm

Re: DVD Not Mount Without Reboot

Post by MrEen » Sat Aug 18, 2018 9:34 pm

Hi alligoodw.

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.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Mon Aug 20, 2018 6:34 pm

After reading your reply, I tried this. It didn't work.

User avatar
all41
Level 13
Level 13
Posts: 4948
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: DVD Not Mount Without Reboot

Post by all41 » Mon Aug 20, 2018 7:08 pm

Which Mint 19 desktop are you using, Cinnamon, Mate, etc.
Please post the results of terminal inquiry:

Code: Select all

inxi -Sdx
Proud to be a supporter and monthly contributor to Mint.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Tue Aug 21, 2018 5:00 am

I'm using Cinnamon.

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

User avatar
all41
Level 13
Level 13
Posts: 4948
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: DVD Not Mount Without Reboot

Post by all41 » Tue Aug 21, 2018 10:50 am

Settings/Desktop Mounted Volumes is enabled?
Proud to be a supporter and monthly contributor to Mint.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Tue Aug 21, 2018 2:43 pm

Yes! Upon reboot, mounted volumes appear on desktop and file manager. After that initial mount, automatic mount doesn't happen without another reboot.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

DVD Block

Post by alligoodw » Wed Aug 29, 2018 5:56 pm

I wrote another post about my DVD's not automounting on my system. They will mount if I reboot my system but only then.

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.
Attachments
Selection_002.png

rene
Level 8
Level 8
Posts: 2344
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Block

Post by rene » Wed Aug 29, 2018 6:30 pm

That is in fact pretty funny (you'll agree later if you stick with UNIX/Linux). A "block device" is a device which can transfer "blocks" only and is used as opposed to "a character device" which can transfer single bytes. Most storage devices on your system are block devices: your hard disks, USB sticks -- and that virtual CD/DVD packet writing /dev/pktcdvd device that you are showing.

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...

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Block

Post by alligoodw » Thu Aug 30, 2018 5:18 am

I simply inserted a purchased DVD (movie) and it would not mount. I'm using Linux Mint 19, the Cinnamon version.

rene
Level 8
Level 8
Posts: 2344
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Block

Post by rene » Thu Aug 30, 2018 6:33 am

I reproduced having that pktcdvd device show up in GNOME disks by simply installing the "udftools" package. This did not however keep a factor-pressed DVD from auto-mounting, so unsure. "udftools" is however non-standard on Mint 19 Cinnamon even after installing a burner like Brasero or K3b which would seem to say you (likely, "udftools" is a suggested package for the standard package "udisks2") did something specific regarding installing burning software.

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

User avatar
Moem
Level 17
Level 17
Posts: 7185
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: DVD Not Mount Without Reboot

Post by Moem » Thu Aug 30, 2018 6:37 am

Mod note:
Threads merged.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Thu Aug 30, 2018 6:50 am

Interesting!

When I sudo mount /dev/sr0 /mnt, I get the following warning in the terminal...

mount: /mnt: WARNING: device write-protected, mounted read-only.

rene
Level 8
Level 8
Posts: 2344
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Not Mount Without Reboot

Post by rene » Thu Aug 30, 2018 6:58 am

The warning is as expected; the DVD mounted to /mnt. So that says we're not looking at a fundamental issue here. First unmount it again, 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.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Thu Aug 30, 2018 7:34 am

I am currently at work. When I get home, I will resume this post.

Thank you and have a great day.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Thu Aug 30, 2018 5:45 pm

This is what my File Manager/Preference/Behavior/Media Handling looks like:
Attachments
Selection_002.png

rene
Level 8
Level 8
Posts: 2344
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Not Mount Without Reboot

Post by rene » Thu Aug 30, 2018 6:57 pm

Darn. This might not be easy. I close to literally dug up an external Buffalo DVD-R drive but things Just Work here. I did however notice that its USB ID is also specifically in my udev database. Yours is certainly detected as an optical drive so I must say I'm not sure this would have an effect on insert notifications -- but let's try I guess. That is, with the drive connected, please run

Code: Select all

udevadm info /dev/sr0
and paste the result back here in between code tags (the </> button just above the edit field when you are replying).

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)
Hit Ctrl-C to quit 'udevadm monitor'. If you do NOT get notified upon insert we know the problem is in fact fairly low level; if you do get notified we know... well, something.

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Thu Aug 30, 2018 7:12 pm

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

User avatar
Lord Boltar
Level 4
Level 4
Posts: 382
Joined: Mon Jan 09, 2017 7:24 pm

Re: DVD Not Mount Without Reboot

Post by Lord Boltar » Thu Aug 30, 2018 7:16 pm

make sure libdvd-pkg is installed

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
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members

The only way for evil to prosper is for good men to do nothing

alligoodw
Level 2
Level 2
Posts: 54
Joined: Fri Oct 03, 2008 7:04 am

Re: DVD Not Mount Without Reboot

Post by alligoodw » Thu Aug 30, 2018 7:17 pm

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)

Post Reply

Return to “Sound, Multimedia, & Codecs”