Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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
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.
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 rippingcopying 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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.