LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-17-2012, 04:57 AM   #1
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Rep: Reputation: Disabled
9.3. Rebooting the System


hi
im complete the all part of LFS
but when i restart my laptop there no option of LFS 7.2 in GRUB
anybody know why??
 
Old 12-17-2012, 05:01 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

I take it ou mean in the host grub what host do you have
 
1 members found this post helpful.
Old 12-17-2012, 05:08 AM   #3
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
GNU GRUB 2.00-7ubuntu11
 
Old 12-17-2012, 05:10 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Try
Code:
sudo update-grub
 
1 members found this post helpful.
Old 12-17-2012, 05:15 AM   #5
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
no dude didnt work
 
Old 12-17-2012, 05:18 AM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
I take that you done that on the host and it still dosn't show up on the grub menu
 
1 members found this post helpful.
Old 12-17-2012, 05:20 AM   #7
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
so what can i do now ?? plz help
 
Old 12-17-2012, 05:22 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Post your grub.cfg file
 
1 members found this post helpful.
Old 12-17-2012, 05:26 AM   #9
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,2)
menuentry "GNU/Linux, Linux 3.5.2-lfs-7.2" {
linux
/boot/vmlinuz-3.5.2-lfs-7.2 root=/dev/sda1 ro
}
 
Old 12-17-2012, 05:36 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
When you ran the update-grub command on your host, was LFS mounted? I do believe it should be.

Quote:
Originally Posted by raza.ajmi
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,2)
menuentry "GNU/Linux, Linux 3.5.2-lfs-7.2" {
linux
/boot/vmlinuz-3.5.2-lfs-7.2 root=/dev/sda1 ro
}
Which grub.cfg is this? I do hope it is not the one on your host.

If you have chosen to use your host to take care of your booting then you do _not_ do 8.4. Using GRUB to Set Up the Boot Process. You either use your host or lfs, not both.
 
1 members found this post helpful.
Old 12-17-2012, 05:41 AM   #11
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
yes your are right LFS was not there

raza@raza-Inspiron-1564:~$ sudo update-grub
[sudo] password for raza:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
raza@raza-Inspiron-1564:~$
 
Old 12-17-2012, 05:48 AM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Post the output of
Code:
sudo fdisk -l
 
1 members found this post helpful.
Old 12-17-2012, 06:04 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by raza.ajmi View Post
yes your are right LFS was not there

raza@raza-Inspiron-1564:~$ sudo update-grub
[sudo] password for raza:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
raza@raza-Inspiron-1564:~$
I don't think you understand my previous question: Did you mount $LFS before you ran update-grub?
 
1 members found this post helpful.
Old 12-17-2012, 06:16 AM   #14
raza.ajmi
Member
 
Registered: Dec 2012
Location: Lahore,Pakistan
Distribution: Ubuntu 12.10
Posts: 35

Original Poster
Rep: Reputation: Disabled
raza@raza-Inspiron-1564:~$ sudo fdisk -l
[sudo] password for raza:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc1d515b5

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 102399999 51096576 7 HPFS/NTFS/exFAT
/dev/sda3 102400000 313343999 105472000 7 HPFS/NTFS/exFAT
/dev/sda4 313346046 488396799 87525377 5 Extended
/dev/sda5 313346048 459829247 73241600 83 Linux
/dev/sda6 459831296 481312767 10740736 83 Linux
/dev/sda7 481314816 487172095 2928640 82 Linux swap / Solaris
/dev/sda8 487174144 488396799 611328 83 Linux
 
Old 12-17-2012, 06:21 AM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Did you run update-grub with lfs mounted as druuna mentioned
which partitions are lfs on
 
1 members found this post helpful.
  


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
System or Software rebooting? fusion1275 Linux - Newbie 15 09-08-2009 11:31 PM
problems after rebooting the system!! sharmashikha Linux From Scratch 2 07-09-2005 02:29 AM
System automatically rebooting! defa0009 Linux - General 13 03-23-2004 11:01 AM
Help, system is rebooting nightly.. BxBoy Linux - General 3 12-18-2003 03:21 PM
Self Rebooting System hubergeek Linux - General 2 06-11-2003 08:36 PM


All times are GMT -5. The time now is 12:59 PM.

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