LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2010, 05:48 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,520

Rep: Reputation: 51
Reading an audio CD. Do I mount?


Hi:
Under some circumstance, and with an audio cd in the drive, 'ls /mnt/cdrom0' should output

TRACK01
TRACK02
.......
TRACKNN

But what are the circumstances. Should I mount the cd? And with what type (option -t)? Thanks for reading.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-15-2010, 06:09 AM   #2
portamenteff
Member
 
Registered: Feb 2006
Location: Colorado
Distribution: sabayon
Posts: 180
Blog Entries: 1

Rep: Reputation: 36
mount cd

That ould be correct. If your unsure of the filesystem's type, just use the -a option.(-a = all types)
On my system CDs mount at /cdrom so I would type 'ls /cdrom'

Quote:
Originally Posted by ENRIQUESTEFANINI View Post
Hi:
Under some circumstance, and with an audio cd in the drive, 'ls /mnt/cdrom0' should output

TRACK01
TRACK02
.......
TRACKNN

But what are the circumstances. Should I mount the cd? And with what type (option -t)? Thanks for reading.

Last edited by portamenteff; 03-15-2010 at 06:10 AM. Reason: mistyped directory
 
Old 03-15-2010, 06:11 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You do not mount an audio CD - it does not have a file system.
Some audio CDs also have a data section - they are mounted iso9660.

It is pretty unusual to find cdrom0 in /mnt, it is normally in /media.

However - things can get quite cool with the abstraction layers...

When I load an audio CD, I get a CD icon on my desktop. I can rt-click this icon and select "browse folder", which opens the filebrowser to a location called cdda://sr0 full of files called track*.wav

This has been pseudo-mounted through fuse by the gnome virtual file system.
http://en.wikipedia.org/wiki/GVFS

This is controlled by gvfs-mount, the mountpoints are created in ~/.gvfs
Code:
$ ls ~/.gvfs
cdda mount on sr0
That's only one mount-point.

gvfs-mount --help

to see the options and short usage.

There is a good discussion on accessing gvfs mounts using gvfs-mount, and mount.

Naturally, searching LQ also works.
 
2 members found this post helpful.
Old 03-17-2010, 05:20 PM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,520

Original Poster
Rep: Reputation: 51
I perfectly knew an audio-cd has no fs asociated with it. But it has some structure, some kind of directory. Otherwise, we could not specify "play track #4".

Thank you for your kind information. I got confused by ms-dos command dir outputing a directory listing.

------------------------------------
Motto: multimedia are a curse to computing. If you like computing, make a program to emulate particle collision, write a compiler, find out every group of order 10 disregarding isomorphisms.
 
Old 03-18-2010, 11:01 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by ENRIQUESTEFANINI View Post
I perfectly knew an audio-cd has no fs asociated with it.
Well I can only respond to the questions actually ask, vis:
Quote:
Should I mount the cd? And with what type (option -t)?
... with the information you actually supply.

There are two questions - the first one is answered: "no" and the second is thus rendered moot. The reason: no file system to mount or specify ... which is something you now tell me you knew already.
Quote:
But it has some structure, some kind of directory. Otherwise, we could not specify "play track #4".
Sure it has a structure: it has cdda structure to allow HW playback.
Quote:
I got confused by ms-dos command dir outputing a directory listing.
MS-DOS had a different abstraction system to Unix/Linux. For example - HW devices are handled explicitly. DIR does different things depending on the device and media.

For *nix:

You can also access the tracks with CD ripping copying backup software.

These days audio CDs are accessed through fuse. I gave you a link and some background - the rest is up to you.

There used to be a driver which abstracted cdda as a regular file system.
 
Old 03-19-2010, 06:22 AM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,520

Original Poster
Rep: Reputation: 51
Most kind of you. Your information will be put to work.
Enrique.
 
Old 03-19-2010, 06:41 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by Simon Bridge View Post
There used to be a driver which abstracted cdda as a regular file system.
There has been several of these toys around in the past. "cdfs" should still work, I think.

KDE does it's own with kio-slaves, which presents any audiocd as a virtual fs with mp3/ogg/flac/wav files inside of it, which is quite convenient (at least it used in 3.x, haven't tested 4.x lately). Surely gnome will do something similar.

There might be some kind of similar generic audiocd fs using fuse, though I am not personally aware of such a thing. I guess I could find an use or two for that, though I really see no problem in using cdda2wav once to add the disk to my media library so I can later store it in my shelves forever.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading audio cd: cdparanoia fails, cdstatus doesn't Arla Linux - Hardware 2 07-19-2007 02:01 AM
Bad CD reading performance while grabbing audio Clemente Linux - Hardware 3 03-08-2006 07:16 AM
Is Windows just better at reading audio cds? riotxix Linux - Hardware 6 02-21-2006 08:38 PM
Reading audio data files as an actual audio file? Erik_the_Red Linux - Software 1 06-01-2005 07:22 AM
Reading a waveform from an audio file? killjoy Programming 1 03-11-2004 06:15 PM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration