Oracle Linux – How to create /dev/zero after accidentally deleted
in Linux
APPLIES TO:
Linux OS – Version Oracle Linux 7.0 to Oracle Linux 9.0 [Release OL7 to OL9]
Linux x86_64 on Oracle Public Cloud
GOAL:
Create the character device /dev/zero which was deleted by error.
This is not an essential character device for Linux to work properly, is mostly used to create dummy files and wipe out disks
Symptoms
[root@alejanarol7 ~]# dd if=/dev/zero of=./myfile.out bs=1M count=100 status=progress dd: failed to open ‘/dev/zero’: No such file or directory [root@alejanarol7 ~]# ls -l /dev/zero ls: cannot access /dev/zero: No such file or directory
SOLUTION:
After /dev/zero was deleted by mistake now we need to create it.
Tagged:
0