Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
*Solved* Alternative to loopback device support in kernel.
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
Phz
n00b
n00b


Joined: 21 Feb 2005
Posts: 13

PostPosted: Sun Apr 15, 2007 6:23 am    Post subject: *Solved* Alternative to loopback device support in kernel. Reply with quote

I have a dedicated unmanaged server which has a kernel without loopback support. I need to mount or extract the contents of an iso file on the server.

I get the following error when trying to mount the iso
Code:

mount: could not find any device /dev/loop#

I know this is because of the kernel missing the support for loopback. However I can not recompile the kernel and reconfigure grub, if I did I would be risking missing something and then the server not booting or not getting eth0 back up. This would leave me unable to fix the system with ssh. Unfortunately I am on an unmanaged plan at the datacenter so free tech support is out of the question.

I am looking for an alternative way to get the raw data out of the iso, or mount the image. Any suggestion is welcome I am open to ideas.


Thanks

P.s.
I am not sure if this post belongs in this category or not. It is somewhat kernel related.


Last edited by Phz on Sun Apr 15, 2007 9:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun Apr 15, 2007 6:35 am    Post subject: Reply with quote

As long as you have the sources of the kernel you are currently running, then there may be a very simple solution to this;
Configure the kernel with loopback support as a module, compile the kernel, install the modules, and then modprobe the loop module into the running kernel.

You'll need the exact sources of the running kernel, and it might not work, but if even it doesn't it'll simply fail to load,
and no harm should come to your running system (and it should "just work").
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Phz
n00b
n00b


Joined: 21 Feb 2005
Posts: 13

PostPosted: Sun Apr 15, 2007 6:56 am    Post subject: Reply with quote

Nice idea...

Update coming soon.

Thank you very much Hopeless

//EDIT

Worked perfectly, for anyone else having this trouble here is what I did.

select loop from menuconfig "Device drivers> Block devices> Loopback device support"
then make modules;make modules_install
then modprobe loop

now I can mount iso files just fine.


Thanks again hopeless.
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