Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Invalid loop location on custom livecd. SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Fri May 02, 2008 6:39 am    Post subject: Invalid loop location on custom livecd. SOLVED Reply with quote

Hey guys, well the title says it all. I'm trying to build a custom livecd, and I think I got it largely working except for this problem here...

This is a screenshot taken by vmware, but I get exactly the same error on real hardware as well...
http://thebeast.dyndns.org:8080/invalid%20loop%20error.png

I'm totally stumped. In the block devices section of menuconfig I have loopback device support built in. I have squashfs support built in as well. If you guys have any suggestions for me, I'd be glad to hear what you got. I'm stumped on this one and would appreciate any help you guys might be able to offer.

BTW, I'll be using this disc in a thin client environment. The machines this will be intended for wont have any harddrives, and will use RDP to login to a windows terminal server.


Last edited by duby2291 on Fri May 02, 2008 9:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 903
Location: Switzerland

PostPosted: Fri May 02, 2008 12:28 pm    Post subject: Reply with quote

Hi

It looks like you are using genkernel as initramdrive... Just a guess: Do you have a file called "livecd" in the cdrom's root? (The init script will check for it...) If not, touch it! :wink:

Another helpful step would be to try to mount the cdrom from that "rescue-shell" and after that you can check if you're able to mount the squash manually... Just to make shure everything is in place for the Kernel itself! :wink:

Cheers...
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Fri May 02, 2008 9:32 pm    Post subject: Reply with quote

Well, guys I figured it out... It took a while, but it turns out that it was actually a combination of two things that caused this problem.

The first problem that I found was that I built all of the IDE drivers, and the SATA drivers as modules.. The problem was that the initramfs file was trying to mount the squash image before udev loaded. Which in turn means that the dvdrom was not available becouse the ide drivers werent loaded yet. I fixed that by going back into menuconfig and building all of the IDE, and SATA drivers into the kernel image.

The second problem that was contributing to this error was a bug in genkernel-3.4.9. The bug has since been addressed in 3.4.10, and all I had to do was unmask that version and upgrade to it. The problem that I had was that I --forgot-- to run etc-update after the upgrade, and it took me like three hours to figure out why genkernel stopped working. As soon as I ran etc-update the problem was solved...

I figure there are 2 lessons to be learned from this experience. The first one is, If you need a certain hardware on bootup, then your going to be better off building it into the image. The second one is dont forget to run etc-update after installing new packages or you --will-- break things....

Anyhow thanks for taking the time to respond. I'll just go ahead and mark this thread as solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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