LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-31-2012, 03:01 PM   #1
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
Grub.cfg not booting Grub prompt will


Hi

I had a bootable lfs system on sda3, I decided to create a boot partition sda1, I then copy all of sda3/boot to sda1.
I get an error invalid file name "/vmlinuz-3.7-lfs-7.2"

I have adjusted fstab as needed
Code:
      /dev/sda1  /boot  ext4   defaults 0   0
      /dev/sda2  /opt   ext4   defaults  0   0
      /dev/sda5  /      ext4   defaults  1    1
      /dev/sda2  swap   swap    pri=1
      /dev/sda6  /home/spiky/spiky ext4  defaults 0    0
      proc       /proc    proc  
      sysfs      /sys     sysfs
      devpts     /dev/pts   devpts
      tmpfs      /run      tmpfs
      devtmpfs   /dev     devtmpfs
proc etc is set as per lfs all correct.

grub.cfg
Code:
set root=(hd0,1)

menuentry   "Planet-spike" {
             linux /vmlinuz-3.7-lfs-7.2 root=sda5 ro
}
I,m only showing relevent parts in grub.cfg The rest is all there.

It wont boot from grub!!!

If I get grub prompt
grub> set root=(hd0,1)
grub> linux /vmlinuz-3.7-lfs-7.2 root=/dev/sda5
grub> boot

Even using the tab it finds the vmlinuz file ok

It boots ok!!!!!

Mount shows all partitions mounted in the correct places

Last edited by spiky0011; 11-02-2012 at 11:16 AM. Reason: adjusted typo
 
Old 10-31-2012, 06:07 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Is the file named vmlinuz or vmlinux? Your post has both.
 
Old 11-01-2012, 04:02 AM   #3
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
Hi stoat

I think hope thats a typo. I will check that but they were copied from
1 boot dir to the new partition
 
Old 11-02-2012, 11:16 AM   #4
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
Hi

I have checked the grub.cfg the entry is vmlinuz-3.7-lfs-7.2

It was a typo.
Any ideas why I cant get grub.cfg to boot but if i use grub prompt it works
 
Old 11-02-2012, 01:27 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
For my next guess, try changing this...
Code:
set root=(hd0,1)

menuentry   "Planet-spike" {
             linux /vmlinuz-3.7-lfs-7.2 root=sda5 ro
}
...to this...
Code:
set root=(hd0,1)

menuentry   "Planet-spike" {
             linux /vmlinuz-3.7-lfs-7.2 root=/dev/sda5 ro
}
 
Old 11-02-2012, 01:36 PM   #6
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
Thats what I have got stiil no luck I have also rebuilt kernel so as to put the 3 files into the new boot dir/partition

I have also checked that vmlinuz, System and config files are on the partition and not in /boot dir
 
Old 11-02-2012, 02:44 PM   #7
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
Hi

I fixed problem by reinstalling grub.
Is this something that should be done? According to the section in grub you should copy all over.
 
  


Reply



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
Booting Windows from the Grub Prompt Kurzweil Linux - Software 28 10-15-2017 04:43 AM
Booting Ubuntu throws me to the grub prompt. What to do? shaheer Linux - Kernel 2 02-10-2012 02:03 AM
[SOLVED] Ubuntu 11.04 not booting Grub prompt Dasfiter Linux - Newbie 1 08-04-2011 04:30 PM
[SOLVED] Grub can't find grub.cfg when booting - error: no such device Breagha Linux - Software 8 03-14-2010 12:40 PM
Booting redhat always go to grub prompt bsaputra Linux - Newbie 4 12-06-2006 09:33 AM

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

All times are GMT -5. The time now is 09:28 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