Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/cdrom : can't read superblock
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Wed Jan 02, 2008 2:01 am    Post subject: /dev/cdrom : can't read superblock Reply with quote

When I inserted an audio CD, nothing showed up in the folder where it's mounted. I tried to unmount it and mount it again and I got this error when mounting:

Code:
# mount /dev/cdrom /media/CD-ROM/
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom: can't read superblock


What's strange is that using k3b, I can rip the music from the CD just fine.
_________________
I am not a Linux Guru, but a n00b with a lot of questions. :)
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Wed Jan 02, 2008 3:20 am    Post subject: Reply with quote

You can not mount an audio CD, because it does not have a filesystem. So applications showing you the content of an audio CD, access the CD directly instead through filesystem driver.

Cheers,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Wed Jan 02, 2008 3:29 am    Post subject: Reply with quote

So does that mean I can *never* see the contents of an audio CD through a file manager like Thunar? or through the commandline? Even in Audacious, nothing shows up in the folder where the CD contents should be.... that, at least, should be fixed.
_________________
I am not a Linux Guru, but a n00b with a lot of questions. :)
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Wed Jan 02, 2008 4:00 am    Post subject: Reply with quote

GivePeaceAChance wrote:
So does that mean I can *never* see the contents of an audio CD through a file manager like Thunar? [...]

Yes and no. Think some filemanagers support raw access to audio CD's and hence give you access to them similiar to mounted partitions (e.g. konqueror). Another way would be to use third party applications/drivers such as "cdfs" (never tried this, but as far as I know it allows you to mount audio CD's. See http://trappist.elis.ugent.be/~mronsse/cdfs/).
However, in general an audio CD does not have a filesystem and hence is accessed directly instead of mounted as other devices.

Cheers,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Wed Jan 02, 2008 4:50 am    Post subject: Reply with quote

Hi,

I emerged cdfs and made sure I hate the loopback stuff in my kernel, but even after restarting my box (it's not needed, I know), I still get the same error when trying to mount the audio cd. :S
_________________
I am not a Linux Guru, but a n00b with a lot of questions. :)
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Wed Jan 02, 2008 11:04 pm    Post subject: Reply with quote

GivePeaceAChance wrote:
Hi,

I emerged cdfs and made sure I hate the loopback stuff in my kernel, but even after restarting my box (it's not needed, I know), I still get the same error when trying to mount the audio cd. :S

Did you specify "cdfs" as filesystem when mounting the device? Sorry, but I never used CDFS on my own, so the only things I can tell you is what's already written on the website I mentioned above :-(.

Cheers,

Sino
_________________
Help to answer the unanswered
Back to top
View user's profile Send private message
GivePeaceAChance
Guru
Guru


Joined: 26 May 2007
Posts: 480

PostPosted: Thu Jan 03, 2008 1:39 am    Post subject: Reply with quote

Hi,

I checked out the website, and tried this:

Code:
# mount -t cdfs -o ro /dev/cdrom /media/CD-ROM/
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

GentooHost gimli87 # dmesg | tail
cdfs 2.6.19 loaded.
ioctl(CDROMREADTOCHDR) failed
cdfs_toc_read failed
ioctl(CDROMREADTOCHDR) failed
cdfs_toc_read failed


And here's what I found on the internet about it. I'm not sure how to fix the error though:

Quote:

GET TOC HEADER

// reads beginning and ending tracks of cd // FROM TRACK 1

struct cdrom_tochdr
{
u_char cdth_trk0; /* start track */
u_char cdth_trk1; /* end track */
};
ioctl(cd_fd,CDROMREADTOCHDR,&tochdr);

A pure data cd will return 1:1

Returns:

-EFAULT invalid tochdr struct
-EIO cdrom_read_toc failed.

_________________
I am not a Linux Guru, but a n00b with a lot of questions. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum