[wellylug] cp and Linking to /dev/dsp
Ewen McNeill
ewen at naos.co.nz
Fri Jun 6 10:04:33 NZST 2003
In message <20030605215341.72D969F500 at smtp-2.paradise.net.nz>, Edouard Chalaron
writes:
>I cannot create a link and I wonder why :
>as root
>I (bummer me !!) removed /des/dsp
>cp -l /dev/sound/dsp /dev/dsp
>should link /dev/sound/dev to /dev/dsp
Any particular reason you want to use the GNU-extension to cp (which
creates a hard link IIRC), rather than the traditional unix utility
"ln"? Any particular reason you want to create a hard link to a device
rather than, eg, creating a symlink or simply recreating the device?
I'd suggest either:
ln -s /dev/sound/dsp /dev/dsp
if you want a symlink, or
ln /dev/sound/dsp /dev/dsp
if you want a hard link (which I wouldn't recommend). Or just use mknow
with the same parameters as /dev/sound/dsp if you want another device
node. If you're using devfs (and I'm guessing you are from the paths in
question) a symlink is probably what you want.
>I got "Operation not permitted"
strace would probably tell you what operation this is; I suspect it's
not the link operation per se.
Ewen
More information about the wellylug
mailing list