LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-25-2011, 02:22 PM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

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

My grub.cfg file
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod ext2
set root='(/dev/hd0,1)'
search --no-floppy --fs-uuid --set ad95dfa8-fdf9-47b5-ad1f-e0d35145c38c
set locale_dir=($root)/boot/grub/locale
set lang=
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.35.4-lfs-6.7" --class gnu-linux --class gnu --class os {
	insmod ext2
	set root='(/dev/hd0,1)'
	search --no-floppy --fs-uuid --set ad95dfa8-fdf9-47b5-ad1f-e0d35145c38c
	echo	Loading Linux 2.6.35.4-lfs-6.7 ...
	linux	/boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/sda1 ro  
}
menuentry "GNU/Linux, with Linux 2.6.35.4-lfs-6.7 (recovery mode)" --class gnu-linux --class gnu --class os {
	insmod ext2
	set root='(/dev/hd0,1)'
	search --no-floppy --fs-uuid --set ad95dfa8-fdf9-47b5-ad1f-e0d35145c38c
	echo	Loading Linux 2.6.35.4-lfs-6.7 ...
	linux	/boot/vmlinux-2.6.35.4-lfs-6.7 root=/dev/sda1 ro single 
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
My fstab
Code:
# file system  mount-point type   options        dump fsck
#                                                     order
/dev/hda1      /           ext3   defaults       1    1
/dev/hda2      swap        swap   pri=1          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          /dev/shm    tmpfs  defaults       0    0
# End /etc/fstab
Then I run
Code:
grub-setup /dev/hda
I dont run
Code:
grub-mkconfig -o /boot/grub/grub.cfg
 
Old 02-25-2011, 05:54 PM   #17
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
In your '/etc/fstab' change /dev/hda1 to /dev/sda1 and /dev/hda2 to /dev/sda2.
 
Old 02-26-2011, 11:28 AM   #18
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I would like to thank all who helped crts, druuna It now boots. Is there a way to make an iso of what I have so far? To make a bootable cd
 
Old 02-26-2011, 11:33 AM   #19
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Originally Posted by spiky0011 View Post
I would like to thank all who helped crts, druuna It now boots.
You're welcome

Quote:
Is there a way to make an iso of what I have so far? To make a bootable cd
Not that I know. I do know that there are no LFS hints that cover this.
 
  


Reply

Tags
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
Problem with final stage....GRUB error 17 lfs_rocks Linux From Scratch 4 03-26-2008 03:17 AM
LXer: AntiX spin on Mepis in 'pre-final' stage, should be 'final' in early July LXer Syndicated Linux News 0 06-28-2007 10:31 PM
Final Hurdle and it failed BobNutfield Linux From Scratch 1 05-20-2006 12:35 AM
Last hurdle with Slack...boot from Grub [SOLVED] BobNutfield Slackware 12 03-12-2006 10:38 AM
The IM hurdle for no-IM settings. NoobieDoobieDo Programming 0 10-18-2004 03:50 PM

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

All times are GMT -5. The time now is 10:39 PM.

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