[SOLVED] i cant boot into new LFS installation (lfs 7.5)
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.
well, there is not a boot dir there(in /dev/sda5) :-)
i made a directory /mnt/pashosh
then i mount /dev/sda5 /mnt/pashosh
then i go into /mnt/pashosh and there are there just those folders:
lost+found sources tools
all my work is in /mnt/lfs directory, but /mnt/lfs isn't connected to /dev/sda5.
if /mnt/lfs directory has no any partition attached (not mentioned in "mount" command output) but still has your system LFS installed there it seems you installed your system not at sda5, but at /mnt/lfs that belongs another filesystem.
However it dosn't explain why grub found your kernel at sda5.
Did you try to find lfs kernel location from grub shell?
if /mnt/lfs directory has no any partition attached (not mentioned in "mount" command output) but still has your system LFS installed there it seems you installed your system not at sda5, but at /mnt/lfs that belongs another filesystem.
yes, you are right!
Quote:
However it dosn't explain why grub found your kernel at sda5.
maybe it didn't found.
i just have a new entry in the grub menu.
maybe it just that: menu entry, and nothing else :-)
Quote:
Did you try to find lfs kernel location from grub shell?
i tried before to search in grub command line, like that:
search -f /boot/vmlinuz-3.13.3-lfs-7.5
it didn't find anything because this file(as i know now) is in /mnt/lfs/boot
and as you(and me) understand now, it's just a folder in my archlinux system :-)
it didn't find anything because this file(as i know now) is in /mnt/lfs/boot
and as you(and me) understand now, it's just a folder in my archlinux system :-)
Obviously you forgot to mount sda5 before starting installation.
Seems you have to re-install it.
Though things might be moved from /mnt/lfs to sda5, but I think it would be very tricky to get it configured properly.
Though, I would try to boot into LFS by editing grub menu entry to get it pointed to root as
root=<arch partition>/mnt/lfs/boot/vmlinuz.......
Just out of curiosity
Though, I would try to boot into LFS by editing grub menu entry to get it pointed to root as
root=<arch partition>/mnt/lfs/boot/vmlinuz.......
Just out of curiosity
i tried but i get the same error which is strange because i know for sure that my /mnt/lfs is on sda3.
i did it like that:
linux /mnt/lfs/boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sda3 ro
Another final option if the files are there, A long shot mount sda5 cp -r all the directories to sda5 If that fails clean up and start again
you are the man, my friend!
it is working.
i can boot into LFS!!!
it's ugly like hell is, but i'm very (very!) happy!
thank you very much!
i mount /dev/sda5 to /mnt/pashosh
then i: cp -rf /mnt/lfs/* /mnt/pashosh
waiting... ...
after finished i: umount /mnt/pashosh
and then: mount -v -t ext4 /dev/sda5 /mnt/lfs
i remove the entry i made manually before, from the file '/etc/grub.d/40_custom' (don't need it, because grub-mkconfig will do the trick).
save this file
now when i do: grub-mkconfig -o /boot/grub/grub.cfg
it also find! my LFS!!! (besides the other already recognized OSes (arch and windows)).
reboot
now, when i press the LFS menu i get into the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.