LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-28-2009, 06:05 PM   #1
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
grub install problems


OK trying to install grub.
Code:
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
grub>
which corresponds to /dev/sda1
then I try to setup to MBR and...
Code:
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no
WTF?
but they so do exist.
Code:
# df . 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             29474172   5997080  23177924  21% /initrd/mnt/dev_save



# ls -1 $PWD/sta*
/initrd/mnt/dev_save/boot/grub/stage1
/initrd/mnt/dev_save/boot/grub/stage2
/initrd/mnt/dev_save/boot/grub/stage2_eltorito
any ideas?
 
Old 06-28-2009, 06:21 PM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Here a link showing possible problems:

http://www.gentoo.org/doc/en/grub-error-guide.xml

Hope this helps.
 
Old 06-28-2009, 07:25 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Do a "find /boot/grub/stage1" (or "find /grub/stage1") from within the grub shell. Let it find itself for you.
 
Old 06-28-2009, 10:54 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The grub shell is stupid ?
And will only know, what was found by the command
find /boot/grub/stage1 ( as said by syg00.)
... which is forgotten when hitting 'quit'.

So therefore the above is the first command.

Second command : grub> root (hd0,0)
Third command : grub> setup (hd....)
.....
 
Old 06-29-2009, 05:30 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
no
I tried the find
it doesn't find.
it's odd, I've used grub before i'm not a newbie.
even using a puppy linux grub GUI didn't work.
though I've had grub on before, at the mo' it's BSD in the MBR.
 
Old 06-29-2009, 06:55 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Rather than call grub (shell) stupid, I'd prefer "not too sophisticated". Try mounting at /boot rather than /initrd/mnt/dev_save/boot
 
Old 07-02-2009, 06:25 PM   #7
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
no, it doesn't need to be mounted anyway,
but look!

Code:
grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> find /boot/grub/stage1

Error 15: File not found

grub> 

grub> root
 (hd0,0): Filesystem type is ufs2, partition type 0xa5
weird.
my BSD partition maybe is weirding it out.
that's on (hd0,3) tho'
 
  


Reply

Tags
grub



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB install problems... (post windows install on ubuntu) sersdf Linux - Software 4 02-27-2009 07:59 AM
Redhat 4 grub install problems sdlinwwin Linux - Software 1 03-30-2007 06:28 AM
Grub install problems MrHnau Linux - Software 7 02-27-2007 12:45 PM
Problems with Gentoo install/grub/boot n5k Linux - Newbie 5 03-12-2004 09:29 AM
Gentoo 1.4 x86 grub install problems Joe_Bogarde Linux - Newbie 11 08-20-2003 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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