I accidentally deleted /dev/loop special block device. Is it possible to recover it?
1 Answer
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)
-
the main problem is that ; I want to mount an iso image so I'm using that command (mount -t iso966 -o loop "iso image path" mount point) and it still doesn't recognize /dev/loop . U understand me ?Asma Sarhan– Asma Sarhan2015-05-06 11:23:29 +00:00Commented May 6, 2015 at 11:23
-
@AsmaSarhan That is essentially a different problem. After creating the loop device with
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– Anthon2015-05-06 11:33:05 +00:00Commented May 6, 2015 at 11:33 -
Can you explain how\why you used those parameters for mknod?SailorCire– SailorCire2015-05-06 11:54:40 +00:00Commented May 6, 2015 at 11:54
-
@SailorCire Yes I can. (I specify the parameters on the commandline)Anthon– Anthon2015-05-06 12:32:34 +00:00Commented May 6, 2015 at 12:32