change permissions on /dev/null

Jeremy Byron rjjbyron at shaw.ca
Mon Aug 15 21:57:14 PDT 2005


Donal Farrell wrote:
> Hi there. How do I change permissions or use mknod to make /dev/null
> back into a charcter device? 
> 
> donal at linux:~> ls -la /dev/{null,zero}
> -rw-r--r--  1 root root  117 2005-08-15 20:50 /dev/null
> crw-rw-rw-  1 root root 1, 5 2004-04-06 14:27 /dev/zero
><snip>

1) Remove devices:
umount /dev/pts
umount /dev/shm
umount /dev
rm -f /dev/console
rm -f /dev/null

2) /dev setup instructions:
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/devices.html
(The instructions from Ch-6.8.1 should suffice.)

3) Cleanup:
reboot

That should do it I think..

Regards,
Jeremy.



More information about the blfs-support mailing list