Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-03-2005, 03:08 PM   #1
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
Exclamation 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

$su -c "modprobe loop"
$ lsmod | grep loop
loop                   16424  0
next, i try to mount my disk image, but get an error

$ 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

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

$ 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.

Last edited by zero79; 05-03-2005 at 03:17 PM.
Old 05-03-2005, 03:12 PM   #2
LQ Newbie
Registered: Mar 2005
Location: CA
Distribution: SuSE, Debian
Posts: 27

Rep: Reputation: 15
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.
Old 05-03-2005, 03:15 PM   #3
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a qemu created root disk image Valhalla Linux - Software 4 10-26-2005 09:34 PM
Problem of mounting USB disk coffeebreak Debian 1 09-12-2005 10:37 PM
mounting a hard disk image as user? zero79 Debian 2 05-05-2005 08:12 PM
problem mounting a floppy disk favor Linux - Software 4 02-05-2004 02:23 AM
Problem mounting CD image (no loop device)... Slayer Linux - General 1 10-05-2003 10:30 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration