On Sun, Nov 02, 2008 at 12:28:40AM +0100, Nicolas FRANCOIS wrote:
>
> The problem seems to come from the symlinks : if I use /dev/hdd, which
> is, as you mention, owned by root.disk, I can, being a member of disk,
> read it. But if I use the symlink /dev/dvd, then I have a permission
> error.
Ouch! Membership of the disk group is not usually given to regular
users. I've been using the following for a long time - one day,
it's bound to break with an update but for the moment it seems to
work. Actually, my script allows for various other options (hda on
the mac G5, sr0 on the box using libata for the cd/dvd), but those
are just variants. In your case, change hdc to hdd. I use the
audio group for both audio and video devices, your setup might be
different.
# assign hdc to audio group by using a rules script earlier than
# 25-lfs,
# and extend cdrom symlink to dvd as well
# thanks to Andrew Benton for an ownership of hdc that works
# and to somebody else on blfs-support for the later
# OPTIONS="last_rule"
# which now makes it work again.
if ! [ -f /etc/udev/rules.d/20-media.rules ]; then
echo "creating media.rules"
echo 'BUS=="ide", KERNEL=="hdc", GROUP="audio",
NAME="%k", SYMLINK="cdrom dvd", MODE="0660", OPTIONS="last_rule"' \
>/etc/udev/rules.d/20-media.rules
fi
else
echo "media.rules already exists"
fi
>
> Something that looks similar : an error while reading Dvd on mplayer :
>
> "Can't open /dev/dsp".
>
> I still can hear the sound, just this silly message at the start of every
> video reading (DVD or not).
>
That message mostly means sound won't work. Perhaps mplayer tries
/dev/dsp (the old oss interface, I think) and then uses something
newer.
I use the attachment on my clfs builds. Didn't used to be needed
on LFS, perhaps something in the new udev upstream rules is
different. Do you actually have a /dev/dsp, and if so, what are its
permissions ? Do you belong to the required groups ?
ĸen
-
das eine Mal als Tragödie, das andere Mal als Farce
# rule definitions for alsa on clfs
# ALSA devices go in their own subdirectory
KERNEL=="controlC[0-9]*", NAME="snd/%k", GROUP="audio"
KERNEL=="hw[CD0-9]*", NAME="snd/%k", GROUP="audio"
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k", GROUP="audio"
KERNEL=="midiC[D0-9]*", NAME="snd/%k", GROUP="audio"
KERNEL=="timer", NAME="snd/%k", GROUP="audio"
KERNEL=="seq", NAME="snd/%k", GROUP="audio"
# Sound devices
KERNEL=="admmidi*", GROUP="audio"
KERNEL=="adsp*", GROUP="audio"
KERNEL=="aload*", GROUP="audio"
KERNEL=="amidi*", GROUP="audio"
KERNEL=="amixer*", GROUP="audio"
KERNEL=="audio*", GROUP="audio"
KERNEL=="dmfm*", GROUP="audio"
KERNEL=="dmmidi*", GROUP="audio"
KERNEL=="dsp*", GROUP="audio"
KERNEL=="midi*", GROUP="audio"
KERNEL=="mixer*", GROUP="audio"
KERNEL=="music", GROUP="audio"
KERNEL=="sequencer*", GROUP="audio"
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page