LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problem mounting a disk image (https://www.linuxquestions.org/questions/debian-26/problem-mounting-a-disk-image-319778/)

zero79 05-03-2005 02:08 PM

problem mounting a disk image
 
Hi all,

I'm having issues mounting a basic hard disk image file via the loop device. I loaded the loop kernel module and verified that it's loaded

Code:

$su -c "modprobe loop"
$ lsmod | grep loop
loop                  16424  0

next, i try to mount my disk image, but get an error

Code:

$ mount -o loop tst.img ./mnt
mount: Could not find any loop device. Maybe this kernel does not know
      about the loop device? (If so, recompile or `modprobe loop'), or
      maybe /dev/loop# has the wrong major number?

so i try

Code:

$ mount -o loop=/dev/loop0 tst.img ./mnt
/dev/loop0: Permission denied

checking permissions

Code:

$ ls -l /dev/loop0
brw-rw----  1 root disk 7, 1 2005-05-03 14:58 /dev/loop0

what's going on here? thanks for any assistance.

sudya 05-03-2005 02:12 PM

ARe you sure that you have mnt dir in your current catalog, because looks like you meant /mnt and instead you are using ./mnt which means(lets pretend that you are in /home/user) /home/user/mnt. Try to fix that and post the results.

zero79 05-03-2005 02:15 PM

no, i have a mnt dir in the working directory. i didn't want to mount in /mnt. i tried the same command as root, and it worked. i just can't mount the image as user.


All times are GMT -5. The time now is 11:05 AM.