Ubuntu: I accentally removed a loopback device



Question:

I accendentally removed /dev/loop2 and i need it for a "loopback-floppy" but everytime i try to do ANYTHING it just says: "mount: image.flp: failed to setup loop device: wrong ioctl() for device" and the same if i put in a floppy or cd.

i would prefer NOT to re-install


Solution:1

Recreate it with:

sudo -i  mknod /dev/loop2 b 7 2  chown --reference=/dev/loop0 /dev/loop2  chmod --reference=/dev/loop0 /dev/loop2  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »