Why does 'mount' give the error "mount: can't find /mnt/disk"?
Olivia Zamora
I am trying to following the to mount an img file on ubuntu:
But when I do 'sudo mount -o test.img /mnt/disk'
$ sudo mount -o test.img /mnt/disk
mount: can't find /mnt/disk in /etc/fstab or /etc/mtabCan you please tell me how can fix that?
2 Answers
You forgot to actually give the options to -o. Because of that, mount interprets "test.img" as the options, and not as the disk/image to mount.
sudo mount -o loop test.img /mnt/disk 2 Maybe the right way to do it would be to convert img file to iso and than mount it as loop device.
according to this thread
you forgot to add "loop"