LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 12-13-2011, 05:35 PM   #31
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

LOL I,m no expert it,s just that I got mine running with the same set up as you, yes build the kernel as in the book, Dont forget file system that resets and dont forget to copy the files over.
No dont use Ubuntu config file.
I know it takes time but you will learn things, It is trial and error with all this. I started the same as you I was helped with my problems.
Have a think about putting drive in laptop.
I have to go now I,ll be about tomorrow

have fun
 
Old 12-13-2011, 07:06 PM   #32
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
I think I might have found an issue:

In section 6.43 we to configure grub install we use:

Code:
./configure --prefix=/usr
--sysconfdir=/etc
--disable-grub-emu-usb
--disable-efiemu
--disable-werror
We shouldn't be using --disable-grub-emu-usb, should we? If it is really the case, can I safely just recompile grub being at the final stage of LFS setup?
 
Old 12-14-2011, 02:31 AM   #33
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I would of followed the book
 
Old 12-14-2011, 06:38 AM   #34
nivwusquorum
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
Fuck yeah, kurwa!!!

After 3 days (1 of which I spent configuring grub), I got this shit to work!

----

OK, here's how it goes: Grub boots from /boot partition so we need to set root=(hd0,1) which corresponds to /boot (/dev/sdb1 in my case) - sorry druuna, it's opposite of what you said. Now that we reside on boot partition temporarily, it is the root. So vmlinuz is /vmlinuz-3.1-lfs-7.0 rather than /boot/vmlinuz-3.1-lfs-7.0. As an argument to vmlinuz we need to supply true root of out system - in my case /dev/sdb4. So in my example my external disk is layed out as follows:
Code:
# Begin /etc/fstab

# file system  mount-point  type   options         dump  fsck
#                                                        order

/dev/sdb4      /            ext4   defaults        1     1
/dev/sdb2      swap         swap   pri=1           0     0
/dev/sdb1      /boot        ext4   defaults        0     0
/dev/sdb5      /home        ext4   defaults        0     0
proc           /proc        proc   defaults        0     0
sysfs          /sys         sysfs  defaults        0     0
devpts         /dev/pts     devpts gid=4,mode=620  0     0
tmpfs          /run         tmpfs  defaults        0     0
# End /etc/fstab
and proper way to configure grub.cfg assuming you are using one external usb hdd is:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5

menuentry "GNU/Linux, Linux 3.1-lfs-7.0" {
insmod ext2
set root=(hd0,1)
linux /vmlinuz-3.1-lfs-7.0 root=/dev/sdb4 rootdelay=10 ro
}
btw. the trick that I saw in tutorial Druuna tutorial share - with using UUIDs in grub is not working for me. I get kernel panic when try to boot, so I assume it's unable to locate the root partition.

Well at this point I would really like to thank Druuna and Spiky, for pointing out a lot of things, that were really useful and eventually lead me to the right solution!
 
  


Reply

Tags
boot, disks, grub, lfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 11 - problem with booting from external HDD orangina Linux - Newbie 28 10-01-2011 02:38 PM
never used cfdisk before, small HDD as well. ejames82 Linux - Newbie 4 08-12-2009 11:38 AM
Booting problem on HDD addition having ext3 partitions. learner786 Linux - Newbie 6 04-07-2009 08:44 AM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
Damn Small Linux...booting problem dip_xp3 Linux - General 2 11-28-2006 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration