Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot mount my loop device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dellaxim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2005
Posts: 138

PostPosted: Fri Mar 04, 2005 12:50 pm    Post subject: Cannot mount my loop device Reply with quote

Hi everybody,
I was trying to mount an img file today without succeed.
I read couple posts about moutning img file, i did compile my kernel to support loopback device:
Code:
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_CRYPTOLOOP=y


But when I tried to mount the img
Code:
 mount -o loop /folder/name.img /mnt/fake_drive

it returns an error message
Code:
 mount: could not find any device /dev/loop#


Could anyone help me out pls!
Thanks you
:) :)
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Fri Mar 04, 2005 12:55 pm    Post subject: Reply with quote

Try this:
Code:
losetup /dev/loop0 /file.img
mount /dev/loop0 /mnt/point
Back to top
View user's profile Send private message
dellaxim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2005
Posts: 138

PostPosted: Fri Mar 04, 2005 1:01 pm    Post subject: Reply with quote

I have an return error
Code:
/dev/loop0: No such file or directory

checked my /dev and couldnt find the loop0.

thanks you
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Fri Mar 04, 2005 1:06 pm    Post subject: Reply with quote

Try
Code:
modprobe loop
.
Back to top
View user's profile Send private message
dellaxim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2005
Posts: 138

PostPosted: Fri Mar 04, 2005 1:10 pm    Post subject: Reply with quote

I compiled the loop device as static so I guess I dont have to execute
Code:
modprobe loop


Thanks you !
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Fri Mar 04, 2005 5:13 pm    Post subject: Reply with quote

Are you using udev, or devfs?
Back to top
View user's profile Send private message
dellaxim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2005
Posts: 138

PostPosted: Sat Mar 05, 2005 5:11 pm    Post subject: Reply with quote

Hi, iam using devfs but I just reinstall the whole system using new install method tage 1 on 3 and the problem was solved.
Thanks you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum