I accidentally deleted /dev/loop special block device. Is it possible to recover it?
Asked
Active
Viewed 928 times
2
Anthon
- 79,293
Asma Sarhan
- 21
1 Answers
2
You can recreate the device with mknod:
sudo mknod -m 660 /dev/loop b 7 0
assuming that you don't have /dev/loop0 that already has taken that minor number (0)
Anthon
- 79,293
mknodusemount -t iso9660 -r -o loop "iso image path" /dev/loop. You need to do it read-only (-r) and your type was wrong (missing a0) at the end. Post a new question if there are additional problems, including the exact command you use and error message. – Anthon May 06 '15 at 11:33