PPC: Audio CDs in SuSE Linux PPC
Support knowledgebase (ubrueck_audioCD)
Applies to
SuSE Linux PowerPC: Version 7.3
Situation
You want to play back audio CDs in SuSE Linux PPC.
When you click on the CD icon on the KDE desktop,
the following message appears when konqueror starts:
audiocd:/
file or directory / does not exist
An attempt to mount this CD with mount /dev/cdrom
results in the following error message:
Could not mount device
/dev/cdrecorder: Input/output error
mount: I could not determine the filesystem type, and none was specified
Procedure
First, make sure that the sound card is configured and you are basically
able to hear sound.
This is the case if you can hear the start-up sound of KDE, or if you can
hear a sound when you enter the following
command on a text console:
aplay /usr/share/sounds/alsa/test.wav
If necessary, adjust the volume with KMix.
Now you can play back mp3 audio files with the media player xmms.
In order to be able to listen to WAV audio files, please proceed as follows:
Open a text console and change to the root identity by entering su
.
Open the file /etc/lilo.conf
with an editor of your choice (I recommend pico or mcedit)
mcedit /etc/lilo.conf
and change the entry
append = ""
to
append = "hdX=ide-scsi"
(X stands for the designation of your CD or DVD drive. You can find the respective letter by entering:
dmesg | grep CD
(or DVD))
Subsequently, run lilo.
If you use kernel 2.4.12, continue with the section "Loading the SCSI Emulation".
If you use kernel 2.4.16, start with the section "Correcting the Setting for the CD Drive".
You can determine the kernel version you use by entering the command
cat /proc/version
Loading the SCSI Emulation
In order to load the module, enter the following on the text console:
modprobe ide-scsi
In order to ensure that this occurs on a regular basis when the system is booted,
open the file
/etc/init.d/boot.local
and append the following line:
/sbin/modprobe ide-scsi
Correcting the Setting for the CD Drive
The SCSI emulation causes the device /dev/hdX
to be viewed as /dev/scd0
.
In order to make sure that the device /dev/cdrom
does not point to nothing, please set
it to /dev/scd0
.
To do this, enter the following on the text console:
ln -sf /dev/scd0 /dev/cdrom
Please check if the file /etc/fstab
contains the following entry:
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
Append this line if necessary.
To listen to the audio CD, start the media player xmms:
xmms /dev/scd0 &
If xmms merely displays the message -No CD in /dev/scd0
-, you need to change the file permissions.
For this purpose, enter the following:
chmod 664 /dev/scd0
If you have a DVD drive, perform the modifications for /dev/dvd
instead of /dev/cdrom
.
Keywords: PPC, POWERMAC, POWERBOOK, APPLE, POWERPC, MACINTOSH
Categories:
Power PC
SDB-ubrueck_audioCD, Copyright SuSE Linux AG, Nürnberg, Germany
- Version: 04. Jun 2002
SuSE Linux AG - Last generated: 11. Jun 2002 by ip (sdb_gen 1.40.0)