unable to boot from lfs 6.2 after kernel compilation
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Not that I really know that much about many possible situations (only about few I had myself or helped to sort out) or about internals, but I pretend to know where to look to get lots of info. Mystical not found files are strace's job, not human brain's one. And yes, I know what people with solved difficult problems end up posting, so I propose to post it earlier rather than later (though 16 messages is already not so early to do it).
My RHCE man who was doing this for me for quite a while got frustrated and gone for a vacation. This is stalled for some time. I will post the outcome after trying what you (Raskin) have suggested. I cant ask for more than your guesses. I am thankful for your time.
We will post our queries again to LFS and other forums. Either way will inform you all about the outcome at the end of this chain.
lfs partition grub>root(hd0,4)--->says file system unknown partition type 0xb
Respected lfs-6.2 experience members
please help me as I am in final stage of lfs-6.2
I have followed the lfs-6.2 book by all means and installed all the modules of lfs-6.2
Now at grub prompt
when I issue
grub>root (hd0,4) that is hda5 my lfs partition it says
filesystem unknown partition type 0xb
I have Redhat 9(2.6.8) as host system on hda7
And swap on hda8
And windows on hda1
please help me why my lfs partition filesystem is unknown wy not it is ext3
I am a newbe and have no idea what to do and how to tackle this problem
zalmay
unable to boot from lfs 6.2 after kernel compilation
Dear Daws + Raskin,
Good News !
We have finally succeeded the booting into the LFS kernel. I would like to attribute this success to partimage. partimage helped us to save our work before doing crucial things or things that may go wrong. we have taken an image
1. before booting into the kernel
2. after booting into the kernel
3. after xfree86
4. after xfce
5. after gdm + xfce
our host was fc3.
alternatively, we have were trying to build LFS at home, which had a fc4 as host system. we have taken two images
1. after xfree86
2. after lfs kernel boot
we copied the xfree86 image into the new host system at office but it never worked as expected. hence we took the second image (after lfs kernel boot) and started whole blfs process again.
we succeeded !
Bad News
---------
We were unable to find why we were not able to boot from the lfs kernel. till date the pc which we used as a host could not boot the lfs. we even attached a working lfs hard disk from a different hardware of the same configuration.
sorry for abling to give solution the problem for which we initially started this thread.
ps: thanks for your guys, specially daws and raskin for all the help. we have seen the god (godess and she is beautiful).
You succeded with the grub problem but how you did it it is not mentioned on the forum. will you please share yoour experience with me cause I am having the same problem of booting from my lfs-6.2
I have installed my lfs-6.2 with Redhat Linux(2.6.8) as host system and lfs partition is hda5.
When I apply the command from the grub menue as
grub> root (hd0,4)
it give me error as
the specified disk does not exist
I don't know what to do
I will be glade if you may help me by sharing your experience of grub with me
thanks
Dear Daws + Raskin
please help me as I am in final stage of lfs-6.2
I have followed the lfs-6.2 book by all means and installed all the modules of lfs-6.2
Now at grub prompt
when I issue
grub>root (hd0,4) that is hda5 my lfs partition it says
filesystem unknown partition type 0xb
I have Redhat 9(2.6.8) as host system on hda7
And swap on hda8
And windows on hda1
please help me why my lfs partition filesystem is unknown wy not it is ext3
I am a newbe and have no idea what to do and how to tackle this problem
zalmay
zalmaygul, I think your question would be better suited in its own thread.
Anyway,
Quote:
filesystem unknown partition type 0xb
I am not sure but I think 0xb is a partition type used by Windows (FAT32 maybe?).
Could you post the infomation provided by "cfdisk /dev/hda" (don't change anything yet)
I think that the partition type needs to be changed to 0x83, and you can certainly do that in cfdisk, but I don't know whether doing that will screw up the existing filesystem.
Dear Daws
thank you for being there for my help
When a newbe trape in a problem and helpless to proceed he some time perform this kind of mistake by jumping into wrong thread
Sorry for being in a wrong thread.
I have redhat 9 when I apply cfdisk /dev/hda it says command not found
Then I used fdisk command and its contents are given bellow
fdisk -l
Disk /dev/hda: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 893 7172991 b Win95 FAT32
/dev/hda2 894 3649 22137570 f Win95 Ext'd (LBA)
/dev/hda5 1787 2679 7172991 b Win95 FAT32
/dev/hda6 2680 3649 7791493+ b Win95 FAT32
/dev/hda7 894 1709 6554457 83 Linux
/dev/hda8 1710 1774 522081 82 Linux swap
Partition table entries are not in disk order
Please help wheather I can make the change to partition type with fdisk command or not
thank you very much for your continuous help
zalmay
cfdisk is in the util-linux package if you want to use it. fdisk can change the partition type for you. Once you have started "fdisk /dev/hda" you want the t option, and hex code 83. But as I said before, I don't know what this will do to the existing ext3 filesystem, it might destroy it.
Dear Daws
thank you very much for your help
Your specified method helped me and I did changed the partition type accordingly and it worked without any damage
I am so really thankfull to you for your help And I guess without it I would'n't have proceeded.
I booted from my new LFS-6.2 with grub and it add alot to my happiness.
Dear friend one more question that I want to ask you where we can find the technical flow of various packages of LFS-6.2 such as Binutils, gcc, glibc etc
I want to learn obout there internals and get to know these from programmar persfective.
thanks
Zalmay
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.