You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux – How to create /dev/zero after accidentally deleted

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!