DVD Not Mount Without Reboot

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
alligoodw

DVD Not Mount Without Reboot

Post by alligoodw »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: DVD Not Mount Without Reboot

Post by MrEen »

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

Re: DVD Not Mount Without Reboot

Post by alligoodw »

After reading your reply, I tried this. It didn't work.
User avatar
all41
Level 19
Level 19
Posts: 9518
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: DVD Not Mount Without Reboot

Post by all41 »

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

Code: Select all

inxi -Sdx
Everything in life was difficult before it became easy.
alligoodw

Re: DVD Not Mount Without Reboot

Post by alligoodw »

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 19
Level 19
Posts: 9518
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: DVD Not Mount Without Reboot

Post by all41 »

Settings/Desktop Mounted Volumes is enabled?
Everything in life was difficult before it became easy.
alligoodw

Re: DVD Not Mount Without Reboot

Post by alligoodw »

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

DVD Block

Post by alligoodw »

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.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Block

Post by rene »

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

Re: DVD Block

Post by alligoodw »

I simply inserted a purchased DVD (movie) and it would not mount. I'm using Linux Mint 19, the Cinnamon version.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Block

Post by rene »

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 22
Level 22
Posts: 16228
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: DVD Not Mount Without Reboot

Post by Moem »

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

Re: DVD Not Mount Without Reboot

Post by alligoodw »

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 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Not Mount Without Reboot

Post by rene »

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

Re: DVD Not Mount Without Reboot

Post by alligoodw »

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

Thank you and have a great day.
alligoodw

Re: DVD Not Mount Without Reboot

Post by alligoodw »

This is what my File Manager/Preference/Behavior/Media Handling looks like:
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: DVD Not Mount Without Reboot

Post by rene »

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

Re: DVD Not Mount Without Reboot

Post by alligoodw »

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
Lord Boltar

Re: DVD Not Mount Without Reboot

Post by Lord Boltar »

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
alligoodw

Re: DVD Not Mount Without Reboot

Post by alligoodw »

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)
Locked

Return to “Sound”