You are not logged in.

#1 2010-09-18 16:03:49

augie
Member
Registered: 2010-08-27
Posts: 12

[SOLVED] Mounting CD's / DVD's

I have read man mount, man fstab, the appropriate wiki's and I still can't figure out what I may be doing wrong.

I am trying to mount a music CD:

pts/0 % 09/18/10 11:42 /home/aalinovi >mount /media/cd
mount: I could not determine the filesystem type, and none was specified
pts/0 % 09/18/10 11:42 /home/aalinovi >

pts/0 % 09/18/10 11:42 /home/aalinovi >mount -t iso9660 /media/cd
mount: only root can do that
pts/0 % 09/18/10 11:43 /home/aalinovi >

pts/0 % 09/18/10 11:49 /home/aalinovi >mount /dev/cdrom /media/cd
mount: only root can do that
pts/0 % 09/18/10 11:49 /home/aalinovi >

[root@Glenda aalinovi]# mount -t iso9660 /dev/cdrom /media/cd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[root@Glenda aalinovi]#

pts/1 % 09/18/10 11:47 /home/aalinovi >dmesg | tail
sr 1:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
sr 1:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 04 9e fc 00 00 01 00
end_request: I/O error, dev sr0, sector 1211376
Buffer I/O error on device sr0, logical block 302844
sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
sr 1:0:0:0: [sr0] Sense Key : 0x5 [current]
sr 1:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
sr 1:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 04 9e fc 00 00 01 00
end_request: I/O error, dev sr0, sector 1211376
Buffer I/O error on device sr0, logical block 302844
pts/1 % 09/18/10 11:47 /home/aalinovi >

(That above dmesg bit I get regardless of the CD. I find it hard to believe that every CD is bad).

/etc/fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=157ea69d-9989-4546-86d9-7feff8ec2e69 swap swap defaults 0 0
UUID=5967e4cd-4cc1-425d-bea0-388eb2e86ed5 / ext4 defaults 0 1
UUID=a479f2ce-fdd8-4f46-8d0e-f0dee6e66657 /home ext4 defaults 0 1
UUID=a99d1c96-2dcf-42de-87dd-05df46a3a672 /boot ext2 defaults 0 1
/etc/fstab (END)

I note that if I try to play a CD using vlc, I have no problem:

Media > Open DIsc > Audio CD (Disc device /dev/cdrom) > Play

But, I would really like to abe able to do mount the CD from the command line.

Any assistance would be appreciated.

Thanks

Last edited by augie (2010-09-20 09:36:19)

Offline

#2 2010-09-18 16:11:38

chris-kun
Member
From: SF Bay Area
Registered: 2010-09-07
Posts: 235
Website

Re: [SOLVED] Mounting CD's / DVD's

augie wrote:

pts/0 % 09/18/10 11:49 /home/aalinovi >mount /dev/cdrom /media/cd
mount: only root can do that

so? run with sudo?

Last edited by chris-kun (2010-09-18 16:11:55)


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you." -- Bregol

Offline

#3 2010-09-18 16:36:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Mounting CD's / DVD's

AudioCDs don't have a filesystem, you can't mount them. Same goes for blank (empty) CDs / DVDs.
Root / user with sudo should be able to mount any media (with the corrects mount options)  w/o a problem.

You can't copy the music "files" from the CD because there are none - you have to rip the stream (or parts of it) and  create the needed files.
In other words, the output you get is OK, you shouldn't mount the audio CDs, just insert the CD and let the app you're using for ripping or playback handle it.


Please use [code ] tags for code listings https://bbs.archlinux.org/help.php#bbcode

Last edited by karol (2010-09-18 16:43:14)

Offline

#4 2010-09-19 05:04:35

augie
Member
Registered: 2010-08-27
Posts: 12

Re: [SOLVED] Mounting CD's / DVD's

Karol - Thanks for explaining that. It clears up a lot.

And thanks for pointing me to the codes tags. I was unaware of them.

Offline

#5 2010-09-19 13:25:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Mounting CD's / DVD's

If that solves your problem, please mark the thread as solved. Edit the first post and prefix the subject line with [SOLVED].

Of course, if you have further questions regarding drive mounting, feel free to ask :-)

Offline

Board footer

Powered by FluxBB