Thierry Vignaud wrote on Mon, Oct 07, 2002 at 03:13:28PM +0200 : > Todd Lyons <[EMAIL PROTECTED]> writes: > > > [todd@fiji ~/uml]$ vdir /dev/null > > crw-rw-rw- 1 root root 1, 3 Dec 31 1969 /dev/null > "MAKEDEV null" will do the trick
It's been my experience that MAKEDEV has issues with devfs mounted
systems. When I use it, it creates a temp file named {pattern}- that is
the correct block/character device. Then it tries to mv it to {pattern}
and it reports a failure. If I go manually do cp, it works.
[root@fiji /dev]# MAKEDEV hde
MAKEDEV: error making /dev/hde: Operation not permitted
[root@fiji /dev]# vdir hde*
brw-rw---- 1 root disk 33, 0 Oct 7 12:02 hde-
[root@fiji /dev]# mv hde- hde
mv: cannot move `hde-' to `hde': Operation not permitted
[root@fiji /dev]# cp -a hde- hde
[root@fiji /dev]# vdir hde*
brw-rw---- 1 root disk 33, 0 Oct 7 12:02 hde
brw-rw---- 1 root disk 33, 0 Oct 7 12:02 hde-
Emphasis: this is only on a devfs mounted system, and I thought he said
he was using devfs. If I got that backwards, sorry about the mixup.
I was unable to test with the null device because it wouldn't let me
remove it. Probably something has /dev/null open.
Blue skies... Todd
--
MandrakeSoft USA http://www.mandrakesoft.com
Never take no as an answer from someone who's not authorized to say yes.
--Ben Reser on Cooker ML
Cooker Version mandrake-release-9.0-0.3mdk Kernel 2.4.19-16mdk
msg78371/pgp00000.pgp
Description: PGP signature
