LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 11-04-2012, 01:55 AM   #16
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled

I posted "adding a new system to the Slackware LILO boot loader" on Slackware-SubForum as you suggest

http://www.linuxquestions.org/questi...me-4175435521/

While waiting Slackware-SubForum's help. I'm worrying that will take a long time for giving the answer. Might I do it with SupperGrub2Disk?
http://www.supergrubdisk.org/super-grub2-disk/

I mean I will uninstall LILO of Slackware and install SupperGrub2Disk on the LFS. However I will research about SupperGrub2Disk, I don't know how to use it before.

Hope you help me! Thank you very much!

Last edited by Forget-Me-Not; 11-04-2012 at 05:29 AM.
 
Old 11-04-2012, 06:07 AM   #17
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 458

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Forget-Me-Not

I posted "adding a new system to the Slackware LILO boot loader" on Slackware-SubForum...
Somebody has replied in your Slackware thread. Now try to fix your Slackware boot loader to boot LFS.

Quote:
Originally Posted by Forget-Me-Not

I mean I will uninstall LILO of Slackware and install SupperGrub2Disk on the LFS.
Once and for all, the Super Grub 2 Disk is not something that you install. It is merely a utility for emergency booting a system whose GRUB 2 boot loader is broken. IMO, everyone who uses GRUB should have some kind of emergency boot disk. The Super Grub 2 Disk is such a thing.
 
Old 11-04-2012, 09:00 AM   #18
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Like(facebook).
 
Old 11-05-2012, 08:45 AM   #19
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 458

Rep: Reputation: 133Reputation: 133
Okay. So I saw your post in the Slackware forum. It's trying to boot now. I don't want to post over there. But I recommend against that guy's idea to create an initial ramdisk for drivers. That is possible (there is a hint article about it), but the classic LFS way to handle that is by building in things that the kernel needs to boot. And today one guy over there referred you to the v6.5 LFS book as the newest version. Uh, maybe we should continue on here until you need Slackware boot loader help again.

The kernel is loading and starting its message spew, then stops very early. I recommend that you review your kernel config for file system and storage device support at this point. And it should be built in (* or =y), not modules (M or =m). That is the kind of stuff that can stop it from booting early. Another common error these days (I made it, too) is to forget to build in support for devtmpfs. Your LFS system will not boot without that. Not everything has to be built in. I have lots of modules, too. But this stuff needed for booting has to be built in.

Here, only as an example of what I mean, are some snippets from my kernel menuconfig notes regarding these kinds of filesystem and storage device things. I don't mean for you to mindlessly copy this stuff. Just review yours and make sure it accommodates your filesystem and hardware. A good idea for the hardware stuff is to examine the drivers in use by your host system, then see to it that the ones needed before the filesystem is mounted are built in to your LFS kernel...
Code:
			|
			|
			|
			|...Device Drivers --->
			|    |
			|    |...    Generic Driver Options --->
			|    |        | 
devtmpfs (enable)	|    |        |...[*] Maintain a devtmpfs filesystem to mount at /dev (CONFIG_DEVTMPFS=y)
			|    |        |...[ ]   Automount devtmpfs at /dev, after the kernel mounted the rootfs (CONFIG_DEVTMPFS_MOUNT is not set)
			|    |        |
			|    |
			|    |
			|    |
SCSI drivers		|    |...    SCSI device support --->
			|    |        |
			|    |        |...-*- SCSI device support (CONFIG_SCSI=y, module=scsi_mod)
			|    |        |...<*> SCSI disk support (CONFIG_BLK_DEV_SD=y, module=sd_mod)
			|    |        |...<*> SCSI CDROM support (CONFIG_BLK_DEV_SR=y, module=sr_mod)
			|    |        |...<*> SCSI generic support (CONFIG_CHR_DEV_SG=y, module=sg)
			|    |        |
			|    |
			|    |
			|    |
SATA/PATA drivers	|    |...<*> Serial ATA and Parallel ATA drivers ---> (CONFIG_ATA=y)
                	|    |        |
			|    |        |...[*] ATA ACPI Support (CONFIG_ATA_ACPI=y)
			|    |        |...<*> AHCI SATA support (CONFIG_SATA_AHCI=y)
			|    |        |...[*] ATA SFF support (CONFIG_ATA_SFF=y)
			|    |        |...[*] ATA BMDMA support (CONFIG_ATA_BMDMA=y)
			|    |        |...<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support (CONFIG_ATA_PIIX=y)
			|    |        |...<*> Marvell PATA support via legacy mode (CONFIG_PATA_MARVELL=y)
			|    |        |...<*> Intel PATA old PIIX support (CONFIG_PATA_OLDPIIX=y)
			|    |        |...<*> Intel SCH PATA support (CONFIG_PATA_SCH=y)
			|    |        |...<*> Intel PATA MPIIX support (CONFIG_PATA_MPIIX=y)
			|    |        |...<*> Generic ATA support (CONFIG_ATA_GENERIC=y)
			|    |        |
			|
			|
			|
			|...File systems --->
			|    |
ext3 filesystem		|    |...<*> Ext3 journalling file system support (CONFIG_EXT3_FS=y, module=ext3)
			|    |...[ ]   Default to 'data=ordered' in ext3 (CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set)
			|    |...[ ]   Ext3 extended attributes (CONFIG_EXT3_FS_XATTR is not set)
ext4 filesystem		|    |...<*> The Extended 4 (ext4) filesystem (CONFIG_EXT4_FS=y, module=ext4)
			|    |...[ ]   Use ext4 for ext2/ext3 filesystems (CONFIG_EXT4_USE_FOR_EXT23 is not set)
			|    |...[ ]   Ext4 extended attributes (CONFIG_FS_XATTR is not set)
			|    |...[ ]   Ext4 debugging support (CONFIG_EXT4_DEBUG is not set)
			|    |
			|
			|
And if you get past this stuff, it may not be over. Brace for more of it that may need work after it boots. I spent days on video driver and firmware issues. I probably recompiled my first LFS kernel thirty times (not joking about that). I don't mean to sound discouraging, but there's no use in pretending at this point either.

P.S.: No promises for any of this. You may have a lot more work to do. But that stuff you're getting in the Slackware forum today will just have you wandering off into the tall weeds. I promise you that.

Last edited by stoat; 11-05-2012 at 09:01 AM.
 
Old 11-16-2012, 09:00 AM   #20
Forget-Me-Not
Member
 
Registered: Oct 2012
Posts: 55
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Thank you so much stoat!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to start blfs once lfs is finished bhismnarayan Linux From Scratch 5 03-14-2011 11:22 AM
Finished on LFS But how to continue in BLFS MajesticX Linux From Scratch 5 09-17-2008 07:12 AM
Doubleprompt in LFS-6.3 system after starting BLFS....?? andrew.sharp3 Linux - Software 0 01-15-2008 08:29 PM
GIMP Compile Problem, LFS 6.0 & BLFS 5.1 drowbot Linux From Scratch 2 12-10-2004 01:37 PM
Lfs & Blfs safrout Linux From Scratch 4 07-05-2002 07:27 AM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration