Use mknod to set up the major and minor blocks and the type of device, block
or character . I used to think that only
the major and minor number mattered, but there is another device on my machine
with the same major and minor numbers, ram3, and is sure don't act like
/dev/null.
Maybe it is because they are different types, block and character, that they
act so differently.
ls -al /dev/null:
crwxrwxrwx 1 root root 1, 3 Feb 17 2000 /dev/null
This worked for me:
mknod /dev/junk c 1 3
ls /dev/junk:
crw-r--r-- 1 root root 1, 3 Dec 16 21:07 /dev/junk
Then, chmod 777 /dev/junk
Then test it out:
echo this is a test junkfile
cat /dev/null junkfile
Junkfile should now be zero length.
Then, mv /dev/junk /dev/null
Joel
crwxrwxrwx 1 root root 1, 3 Feb 17 2000 /dev/null
On Sun, Dec 16, 2001 at 05:03:02PM -0800, stayler wrote:
Hi Guys,
Any clues on how to recreate /dev/null in Caldera OL. I was trying out
QMail which exploded when I tried to reboot, wanted to see if the
daemons started ok etc, now I can't get to init 3 and the kernel
complains that it can't open /dev/null. It appears that the install
script for QMail replaced it, and caused my 2.4.13 kernel to hang hard.
Only 2.4.2 seems to get me to init 1.
Any ideas?
Stayler
___
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users
___
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users