You are not logged in.
Hi everybody! ![]()
I need to have a null device in a chroot environment. I know that I could mount the /dev directory with "-bind" option, but I want to share only the essential. So I thought to create the null device with the following (typed as root):
# mknod mynull c 1, 3
# chmod a+w mynullI tested the new block device with:
# ls -l
crw-rw-rw- 1 root root 1, 3 Apr 12 14:51 mynull
# echo blabla > mynull
bash: mynull: Permission deniedI really don't understand why it doesn't work.
Thanks.
Last edited by EnergiaPotenziale (2014-04-16 09:15:40)
Offline
Ok, i found that the partition in which I created mynull was mounted with "nodev" option. Aftter changing the partition, worked fine.
Offline