LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting (movie) dvd and/or (music) cd (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-movie-dvd-and-or-music-cd-4175517924/)

bjakob 09-08-2014 10:31 PM

Mounting (movie) dvd and/or (music) cd
 
When I insert a dvd (or cd) in my Linux Mint 14 Nadia, it does not mount/appear in the left sidebar. I tried
Code:

sudo mount -t iso9660 /dev/dvd /media/dvd
cf this thread and get the message
Code:

mount: no medium found on /dev/sr0
and cf the same thread I tried
Code:

sudo apt-get install udev hal hald
which gives me
Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package hald

I am wondering if there is something wrong with my installation (although it has worked fine for a year or so), since I also encounter errors when trying to install other packages, and if I could possibly repair it?

An example is: I try to run
Code:

make
and get the following error
Code:

g++ -c -g run_sim.cc -o run_sim.o -I /opt/local/include/
In file included from rw/initialize_rng.h:6:0,
                from run_sim.h:8,
                from run_sim.cc:12:
rw/RNG.h:6:48: fatal error: boost/random/normal_distribution.hpp: No such file or directory
compilation terminated.
make: *** [run_sim.o] Error 1

The guide I am using prompts me to
Code:

sudo apt-get install build-essential
to solve the problem, but unfortunately returns this:
Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
  dpkg-dev libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libdpkg-perl
Suggested packages:
  debian-keyring
The following NEW packages will be installed:
  build-essential dpkg-dev libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl
The following packages will be upgraded:
  libdpkg-perl
1 upgraded, 5 newly installed, 0 to remove and 236 not upgraded.
Need to get 788 kB/864 kB of archives.
After this operation, 1,808 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libdpkg-perl dpkg-dev build-essential libalgorithm-diff-perl libalgorithm-diff-xs-perl
  libalgorithm-merge-perl
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libdpkg-perl all 1.16.7ubuntu6.2
  404  Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libdpkg-perl all 1.16.7ubuntu6.2
  404  Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main dpkg-dev all 1.16.7ubuntu6.2
  404  Not Found [IP: 91.189.92.201 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main dpkg-dev all 1.16.7ubuntu6.2
  404  Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com/ubuntu/ quantal/main build-essential amd64 11.5ubuntu3
  404  Not Found [IP: 91.189.92.201 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.16.7ubuntu6.2_all.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.16.7ubuntu6.2_all.deb  404  Not Found [IP: 91.189.91.15 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/build-essential/build-essential_11.5ubuntu3_amd64.deb  404  Not Found [IP: 91.189.92.201 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

More errors. I tried
Code:

sudo apt-get update
and receive an even longer list of errors (excerpt from the output):
Code:

Ign http://archive.canonical.com quantal/partner Translation-en_US                       
Ign http://archive.canonical.com quantal/partner Translation-en                         
Ign http://archive.ubuntu.com quantal-updates/main amd64 Packages/DiffIndex             
Ign http://archive.ubuntu.com quantal-updates/restricted amd64 Packages/DiffIndex       
Err http://ppa.launchpad.net quantal/main Sources                                       
  404  Not Found       
Err http://ppa.launchpad.net quantal/main amd64 Packages                                 
  404  Not Found     
Err http://ppa.launchpad.net quantal/main i386 Packages                                 
  404  Not Found             
Err http://security.ubuntu.com quantal-security/main amd64 Packages                   
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/restricted amd64 Packages             
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/universe amd64 Packages               
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/multiverse amd64 Packages               
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/main i386 Packages                       
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/restricted i386 Packages                 
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/universe i386 Packages                   
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/multiverse i386 Packages                 
  404  Not Found [IP: 91.189.91.15 80]
Err http://archive.ubuntu.com quantal/main amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/restricted amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/universe amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/multiverse amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/main i386 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/restricted i386 Packages 
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/universe i386 Packages   
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal/multiverse i386 Packages 
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/main amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/restricted amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/universe amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/multiverse amd64 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/main i386 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/restricted i386 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/universe i386 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://archive.ubuntu.com quantal-updates/multiverse i386 Packages
  404  Not Found [IP: 91.189.92.201 80]
Err http://packages.medibuntu.org quantal Release.gpg
  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

I am using different networks than I have the past year, but all the 'fatal errors' have me worried...

I hope someone can help me with (both) my problems! :)

ondoho 09-09-2014 12:21 PM

more of a workaround than a solution:

open VLC and open the dvd from there (ctrl+D). (you might have to adapt the path, could be /dev/cdrom, /dev/sr0, /dev/dvd...)

this has helped me in the past with similar problems.

yancek 09-09-2014 12:54 PM

The reason you are getting the messages with apt-get is because you are using an unsupported system and the respositories are no longer available, you might find the archives somewhere. See the link below.

http://www.linuxmint.com/oldreleases.php

If you put a movie/music CD/DVD in the drive, you should see a windows pop-up asking what you want to use to open it. You should be able to access them from the /media directory. Do you see a new entry under /media after inserting the medium?

metaschima 09-09-2014 01:39 PM

Things you should know:

1) Movie DVDs are encrypted with CSS. In the US, it is illegal to bypass CSS or DRM. However, all DVD players bypass CSS, and all blu-ray players bypass DRM, probably they have some type of license that protects them ? To be able to play movie DVDs in Linux you need libdvdcss installed. However, do note the legal aspects.

2) Music CDs cannot be mounted, they are written raw to the disk. There may exist programs that may appear to mount the disk, but this is just an abstraction, there is no filesystem to be mounted. You can rip music tracks from a CD. However, in the US it is only legal to keep one backup copy of a disk. You can still listen to the disk using a media player.

bjakob 09-09-2014 08:14 PM

@ondoho: When I try to open directly from VLC, I get the error

Code:

Playback failure:
DVDRead could not open the disc "/dev/dvd".
Your input can't be opened:
VLC is unable to open the MRL 'dvd:///dev/dvd'. Check the log for details.
Playback failure:
DVDRead could not open the disc "/dev/dvd".
Your input can't be opened:
VLC is unable to open the MRL 'dvd:///dev/dvd'. Check the log for details.

None of the folders/files you suggest are in the /dev folder.

@yancek: Thank you for the link, and yes I can see Nadia was obsolete since May, but since I am away from home for some months, I don't have anywhere to backup, and hence I would like not to upgrade. I followed this guide on how to fix without upgrading, but my sources.list file is empty and sources.list.d/official-package-repositories.list does not exist.

Quote:

If you put a movie/music CD/DVD in the drive, you should see a windows pop-up asking what you want to use to open it. You should be able to access them from the /media directory. Do you see a new entry under /media after inserting the medium?
No pop-up (which there always is if inserting a USB, but fails on CD and DVD), and no new entry under /media :(

@metaschima: Thank you for the information. I checked that I have libdvdcss installed using the steps in this guide, which it turned out I already had. The second command returned this

Code:

--2014-09-09 21:06:34--  http://download.videolan.org/pub/debian/stable//Packages
Resolving download.videolan.org (download.videolan.org)... 88.191.250.9, 2a01:e0d:1:3:58bf:fa02:0:2
Connecting to download.videolan.org (download.videolan.org)|88.191.250.9|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3520 (3.4K) [text/plain]
Saving to: `/tmp/dvdcss-aosHx9/Packages'

100%[=================================================>] 3,520      19.3K/s  in 0.2s   

2014-09-09 21:06:35 (19.3 KB/s) - `/tmp/dvdcss-aosHx9/Packages' saved [3520/3520]

--2014-09-09 21:06:35--  http://download.videolan.org/pub/debian/stable/stable/libdvdcss2_1.2.13-0_amd64.deb
Resolving download.videolan.org (download.videolan.org)... 88.191.250.9, 2a01:e0d:1:3:58bf:fa02:0:2
Connecting to download.videolan.org (download.videolan.org)|88.191.250.9|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44462 (43K) [application/octet-stream]
Saving to: `/tmp/dvdcss-aosHx9/libdvdcss.deb'

100%[=================================================>] 44,462      77.7K/s  in 0.6s   

2014-09-09 21:06:36 (77.7 KB/s) - `/tmp/dvdcss-aosHx9/libdvdcss.deb' saved [44462/44462]

(Reading database ... 333117 files and directories currently installed.)
Preparing to replace libdvdcss2 1.2.12-0.0medibuntu1 (using .../dvdcss-aosHx9/libdvdcss.deb) ...
Unpacking replacement libdvdcss2 ...
Setting up libdvdcss2 (1.2.13-0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

But linux still cannot detect the DVD... (And so far I haven't been able to get a media player to play a CD either, it does not detect it.)

ondoho 09-11-2014 10:22 AM

when i choose media => open disc in vlc, i am presented with a drop-down menu with a few preselected choices (like /dev/sr*...) and a "browse" button to browse the /media folder.

so you get nothing at all in those???

in that case... well, in that case my workaround won't work i guess.

you could still check if it uses some unconventional in /dev...

have you any way of checking if the hardware works at all & is recognized by the system?
i guess "lspci" should return something about the device.

what's in you /etc/fstab?

metaschima 09-11-2014 10:55 AM

To play a dvd just run the media player on 'dvd://'.

bjakob 09-11-2014 11:38 AM

@ondoho: I am also presented with a dropdown with preselected choises like this, but if I choose any of them, it is just a dead end (it is not linked to the dvd drive) as the directories don't exist. It does not seem to invoke any directories in /dev at all.

Quote:

have you any way of checking if the hardware works at all & is recognized by the system?
For pure hw I know that it works, as there is no problems reading CDs (or DVDs) in my Windows partition.

For linux I have tested that it detects the dvd if I boot my system with the dvd in the drive - then it appears under /media and the name of the DVD (in this case the name of the movie), and I can play it just fine in VLC.

If I eject the disc, the directory will remain in the /media and I can still browse through the folders of the DVD (although not open anything). If I re-insert the DVD into the drive, I cannot play it even though the DVD directory is still visible in /media, again it is not recognized (and the same goes if I insert another DVD, obviously).

Quote:

what's in you /etc/fstab?
/etc/fstab.d is empty (there is no fstab directory)

@metaschima:
Quote:

To play a dvd just run the media player on 'dvd://'.
I tried to write dvd:// and media/dvd but it does not detect it.

ondoho 09-12-2014 02:22 PM

Quote:

Originally Posted by bjakob (Post 5236282)
If I eject the disc, the directory will remain in the /media and I can still browse through the folders of the DVD (although not open anything). If I re-insert the DVD into the drive, I cannot play it even though the DVD directory is still visible in /media, again it is not recognized (and the same goes if I insert another DVD, obviously).

this sounds highly unusal and wrong.
Quote:

/etc/fstab.d is empty (there is no fstab directory)
/etc/fstab is a file, not a directory.
please post its content.

bjakob 09-12-2014 02:53 PM

Sorry :S This is the content of fstab:

Code:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    nodev,noexec,nosuid 0      0
# / was on /dev/sda5 during installation
UUID=9642f9f4-ff4c-42b8-ae92-d096494cc65a /              ext4    errors=remount-ro 0      1
# swap was on /dev/sda6 during installation
UUID=b4a82b52-42ef-4b7d-8dd8-b99965faa242 none            swap    sw              0      0


ondoho 09-13-2014 03:34 PM

ok so the drive is not being mounted at startup.

you can always try actually putting it in there, but it's really just a stab in the dark.

we need to find out if your system can see the hardware and maybe it can tell us why it's not being recognized properly.

not sure if cd drives are pci devices but e.g. the output of "lspci" or "lshw" might shed some light.

i also had this thought that maybe some other process might be blocking the drive?

bjakob 09-13-2014 11:13 PM

Quote:

Originally Posted by ondoho (Post 5237392)
not sure if cd drives are pci devices but e.g. the output of "lspci" or "lshw" might shed some light.

I tried lspci and got the following (with a dvd inserted at boot such that I can play it as I enter the command):

Code:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.3 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 03)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV710 [Mobility Radeon HD 4300 Series]
02:00.0 Network controller: Intel Corporation WiFi Link 5100
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)

And from lshw I got the following about the cdr drive (also with a dvd inserted before boot, and playing as I enter the command):

Code:

    *-scsi:1
          physical id: 2
          logical name: scsi5
          capabilities: emulated
        *-cdrom
            description: DVD-RAM writer
            product: DVD-RAM UJ892AS
            vendor: MATSHITA
            physical id: 0.0.0
            bus info: scsi@5:0.0.0
            logical name: /dev/cdrom
            logical name: /dev/cdrw
            logical name: /dev/dvd
            logical name: /dev/dvdrw
            logical name: /dev/sr0
            logical name: /media/ANY_DAY_NOW
            version: 1.00
            capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
            configuration: ansiversion=5 mount.fstype=udf mount.options=ro,nosuid,nodev,relatime,uid=1000,gid=1000,umask=77,dmode=500,iocharset=utf8 state=mounted status=ready
          *-medium
                physical id: 0
                logical name: /dev/cdrom
                logical name: /media/ANY_DAY_NOW
                configuration: mount.fstype=udf mount.options=ro,nosuid,nodev,relatime,uid=1000,gid=1000,umask=77,dmode=500,iocharset=utf8 state=mounted

Quote:

Originally Posted by ondoho (Post 5237392)
i also had this thought that maybe some other process might be blocking the drive?

How could I find out if that is the case?

bjakob 09-13-2014 11:40 PM

Update: after typing this, I tried to eject the dvd by clicking the usb icon and choosing eject the optical disc (sw). Doing this, the device actually disappeared from /media and what is more, when I re-inserted to test, it mounted just fine - a popup of options for the device, it appeared in /media and from the list of disks.

However, wanting to test with a different dvd I ejected (hw) by pushing the physical eject button for the dvd drive. Then it went back to all errors; directory stays in /media, and upon reinsertion cannot be mounted and the directory disappears. The error keeps hanging after I remove the dvd: from the usb icon it is visible as a device (that cannot be mounted) and it appears under my list of devices but reports an error if I click it (as it is not in /media anymore - whether the dvd is inserted or not, it makes no difference from here - and the option to eject (sw) is no longer there).

If I try to mount the dvd/open the directory, I get the message:

Quote:

Could not mount the following device: XXX

The kernel driver for this filesystem type is not available.: Error mounting: mount: no medium found on /dev/sr0
When I try lspci and lshw again, it seems the former is the same, and all the entries but the cdr drive entry from the latter are as well; this now reads:

Code:

    *-scsi:1
          physical id: 2
          logical name: scsi5
          capabilities: emulated
        *-cdrom
            description: DVD-RAM writer
            physical id: 0.0.0
            bus info: scsi@5: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

(The drive is not physically open as the command is entered.)

ondoho 09-14-2014 05:54 AM

it seems cd/dvd drives are not pci devices. but you found it with lshw, good.

since you're still using an unsupported system there really isn't much sense in discussing this any further.

reviewing your first post i think you might have borked something earlier.
you must repair your operating system, regardless of your current problem.
installing a current version probably is the easiest solution.
tip: if you go with ubuntu-based again, have a look at the releases and chose an LTS release. the newest LTS (17?) is supported for many years to come.

bjakob 09-14-2014 10:15 PM

Yes, it does seem that the problems just keep piling up. I will have to wait with doing anything until I have bought a new computer, since I'm even more stuck if this is not easily resolved and I then have nothing to work from :S

Thank you for your help and advice!


All times are GMT -5. The time now is 06:10 PM.