LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-03-2005, 02:08 PM   #1
zero79
Member
 
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

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.

Last edited by zero79; 05-03-2005 at 02:17 PM.
 
Old 05-03-2005, 02:12 PM   #2
sudya
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, 02:15 PM   #3
zero79
Member
 
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.
 
  


Reply



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 08:34 PM
Problem of mounting USB disk coffeebreak Debian 1 09-12-2005 09:37 PM
mounting a hard disk image as user? zero79 Debian 2 05-05-2005 07:12 PM
problem mounting a floppy disk favor Linux - Software 4 02-05-2004 01:23 AM
Problem mounting CD image (no loop device)... Slayer Linux - General 1 10-05-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:50 AM.

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