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.
Can you get a grub prompt, If so try loading manually
I can enter the grub prompt and I can see that it recognizes the usb as (hd1,gpt1) (?)
and when I try root(hd1,gpt1) it gives me error: unknown command root(hd1,gpt1)
The gpt I have not seen normally it would be msdos1 etc root=(hd1,msdos1)
All mine show like this, Although they are usb harddrives but I dont think there should be a difference
The gpt I have not seen normally it would be msdos1 etc root=(hd1,msdos1)
All mine show like this, Although they are usb harddrives but I dont think there should be a difference
I think that's because I created the partition with GParted.
I changed the partition table and now I have a normal ext3 partition in my usb stick.
the strange things now is that when I install grub with grub-install /dev/sdb1 it says Installation finished. No errors reported, but the grub folder in /mnt/lfs/boot/ is empty?!
On first boot with grub2 installed to usb key, grub2 will see the usb key as the first hard drive, however the linux kernel that is being booted will see the internal hard drive as the first hard drive. If I'm not mistaken it will switch around on a reboot and the usb grub2 will see the internal hard drive as the first hard drive. On first boot this should work
Code:
set root(hd1,msdos1)
linux /boot/vmlinuz root=/dev/sda1
on reboots
Code:
set root(hd0,msdos1)
linux /boot/vmlinuz root=/dev/sda1
I believe the use of uuids will solve the problem
Last edited by colorpurple21859; 10-14-2012 at 08:27 AM.
I switched to HDD for now to complete the process and start the distribution. As you know, I was having problems with gpt partition and I didn't have time to solve the problems.
Now I'm able to get the bash shell after booting the system. But for know I'm using the image of a kernel I had in my host Ubuntu. With the image I prepared from scratch, I'm having problems (kernel panic). It seems that even if I configured it with make allyesconfig the necessary support for the hardware is still missing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.