Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 03-06-2013, 12:31 AM   #1
Registered: Nov 2010
Posts: 59

Rep: Reputation: 24
Making LFS 6.8 bootable

I'm building LFS version 6.8 on a x64 Intel i5(1st gen) processor running open SuSE 11.4(32 bit) as the host OS.
Here is the partitioning scheme I've used:
Device    boot    Id     System
sda1              27     Hidden NTFS WinRe
sda2              7      HPFS/NTFS/exFAT
sda3              7      HPFS/NTFS/exFAT
sda4       *      5      Extended  
sda5              82     Linux swap/Solaris
sda6              83     Linux 
sda7              83     Linux(the LFS partition)
sda8              83     Linux
sda9              83     Linux
sda3 is Windows 7 partition

sda6 is /, sda8 is home, and sda9 is boot in open SuSE, i haven't assigned any dedicated partitions in LFS (for boot, home etc) apart from sda7.

My question is that how should i go about "Making the LFS system bootable"? I have the following layout in mind for /etc/fstab--

# Begin /etc/fstab

# file system   mount-point  type  options dump fsck
#                                              order
/dev/sda7        /         ext3   defaults  1   1
proc             /proc     proc   defaults  0   0
sysfs            /sys      sysfs  defaults  0   0
devpts           /dev/pts  devpts gid=4,mode=620 0 0
tmpfs            /dev/shm  tmpfs   defaults 0   0
# End /etc/fstab
Also how do i set up GRUB? Should i overwrite the MBR?
Old 03-06-2013, 12:52 AM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
You basically have 2 options:

1) Set up grub using LFS. This will overwrite the current bootloader! You also need to make sure both Suse and Windows are present.

2) Add an entry for LFS in the current bootloader (which I assume is grub installed and configured by Suse).

If you are new to all this I would advise to go for option number 2.

I haven't used Suse for a long time so I'm not familiar with the current procedure to add an entry to grub. You might be able to use update-grub, but maybe there is an entry in Yast that takes care of this.
1 members found this post helpful.
Old 03-08-2013, 11:18 PM   #3
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 24
Thank you for your reply, i think I'll be safer with the second approach so I'll go with it.
Old 03-22-2013, 01:15 AM   #4
Registered: Nov 2010
Posts: 59

Original Poster
Rep: Reputation: 24
OK here is how i went about the task, i copied the LFS kernel image (vmlinuz-2.6.37-lfs-6.8) to the /boot partition /dev/sda9 and added a new entry in the current grub menu (via YaST) so now it looks like
section name ---> lfs-6.8
kernel image----> /boot/vmlinuz-2.6.37.lfs-6.8
left initrd and optional kernel command line parameters blank
root device---> /dev/sda7
vga mode---> text mode


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
Making Hard drive bootable with LFS supanatral Linux - General 4 04-03-2010 01:08 PM
Making a USB stick bootable from a bootable cdrom cwwilson721 Slackware 2 10-23-2009 09:18 PM
bootable / install LFS nixnoobie Linux From Scratch 8 02-13-2008 11:15 PM
making a non bootable patrion bootable jason2 Linux - General 6 08-01-2004 10:25 AM
Making a bootable rescue-disk/mini-distro CD with LFS? dushkinup Linux From Scratch 5 04-15-2004 03:06 PM

All times are GMT -5. The time now is 04:54 PM.

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