LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Failed to build glibc, VirtualBox 32-bit question (https://www.linuxquestions.org/questions/linux-from-scratch-13/failed-to-build-glibc-virtualbox-32-bit-question-885016/)

MTK358 06-09-2011 02:13 PM

Pass 2 is finished! On to "Part 3: Building the LFS System"...

MTK358 06-11-2011 04:25 PM

Success!
 
I just finished the LFS book, rebooted the VM, and it works!

I'll move on to BLFS now.

druuna 06-12-2011 02:00 AM

Ho MTK358,

Always nice to read when someone successfully finishes LFS :)

MTK358 06-12-2011 08:32 AM

1 Attachment(s)
I had to un-mark this thread as solved, since I have an issue: it won't boot any more. The first boot worked fine, I played around with the config files they talked about in the BLFS book, and when shutting it down I accidentally typed "shutdown -r now" instead of "shutdown -h now". So I decided to wait for it to reboot and then I'll type the correct command. But it failed to boot! I tried again today, and it still doesn't work.

What happens if it seems to work fine, but it just reaches this point and freezes. How can I fix it?

druuna 06-12-2011 10:27 AM

Hi,

There's not enough info in the posted attachment. Can you post what's above it (first none similar line and say 5 lines above and below that)?

Looking at the output it seems some process is having trouble figuring out the input/output controls for your (virtual) hard drive and cdrom. I don't have a solution at the moment, but maybe with some more info we can figure it out.

MTK358 06-12-2011 10:33 AM

Quote:

Originally Posted by druuna (Post 4383401)
Can you post what's above it

How am I supposed to do that?

druuna 06-12-2011 10:57 AM

Hi,
Quote:

Originally Posted by MTK358 (Post 4383407)
How am I supposed to so that?

Doesn't <shift>-<page up> work? Or one of the options that comes with oracle's VM (which I'm not familiar with)?

Are you at all able to access the (virtual) disk you used to build LFS and make changes to its content? If not then this is academic.....

Hope this helps.

MTK358 06-12-2011 11:04 AM

Quote:

Originally Posted by druuna (Post 4383418)
Hi,
Doesn't <shift>-<page up> work?

No. It only works when I'm in a shell.

Quote:

Originally Posted by druuna (Post 4383418)
Are you at all able to access the (virtual) disk you used to build LFS and make changes to its content? If not then this is academic.....

I'm not sure how. Maybe I can find a tool that can convert VirtualBox's disk format to another, but how would I modify it (especially without screwing up the permissions)?

druuna 06-12-2011 11:24 AM

Hi,
Quote:

Originally Posted by MTK358 (Post 4383424)
I'm not sure how. Maybe I can find a tool that can convert VirtualBox's disk format to another, but how would I modify it (especially without screwing up the permissions)?

If you would be able to mount it from another linux box for example you could chroot into LFS again. You might not even need the chrooted environment, root on one linux box equals root on another, restoring/editing the config files you tinkered with can be done using your hosts root user.

Hope this helps.

MTK358 06-12-2011 11:26 AM

Quote:

Originally Posted by druuna (Post 4383432)
Hi,
If you would be able to mount it from another linux box for example you could chroot into LFS again. You might not even need the chrooted environment, root on one linux box equals root on another, restoring/editing the config files you tinkered with can be done using your hosts root user.

Hope this helps.

I can boot the LFS Live CD and then chroot into the LFS system on the disk.

druuna 06-12-2011 11:34 AM

Hi,

I have to take your word for that. I thought you build your LFS system inside a VM, which leaves you with a disk-image if I'm not mistaken. I would not know how to access it from the LFS liveCD.

MTK358 06-12-2011 11:37 AM

1 Attachment(s)
Quote:

Originally Posted by druuna (Post 4383440)
I have to take your word for that. I thought you build your LFS system inside a VM, which leaves you with a disk-image if I'm not mistaken. I would not know how to access it from the LFS liveCD.

I don't understand what you're talking about. This is just like you can boot a Live CD in a physical machine and mount the hard drive.

EDIT: I attached a screenshot:

druuna 06-12-2011 12:26 PM

Hi,

That looks promising (and shows I know even less about VM's then I though :) )

I do hope you remember which config files you edited and how to restore them to their original state. You at least have a way to reach and edit them now.

MTK358 06-12-2011 12:56 PM

All I modified is:

Code:

/etc/profile
/etc/profile.d/*
/etc/bashrc
/etc/skel/*
/etc/issue


MTK358 06-13-2011 09:26 AM

Anyone?

I really have no clue about what to do or where to start. And I don't even understand what is going wrong.


All times are GMT -5. The time now is 12:44 PM.