LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2009, 07:26 AM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 635
Blog Entries: 1

Rep: Reputation: 48
Checking if "/grub/stage1" exists... no


When I installed a new operating system on a portable external hard drive, I deliberately chose not to install grub bootloader (as it might overwrite a perfectly working MBR on the internal hard drive), as a result, /boot/grub of the new system is rather empty.

I can still boot to the new operating system using another existing bootloader. Now, I decide to install a bootloader in the MBR of the
portable hard disk, expectedly I have this:

Quote:

grub> root (hd0,0)
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found
How do I get back /boot/grub/stage1 and other files ?
If it is impossible, then I have to reinstall the OS again, what a pain!
 
Old 06-15-2009, 08:20 AM   #2
centguy
Member
 
Registered: Feb 2008
Posts: 635

Original Poster
Blog Entries: 1

Rep: Reputation: 48
(1) I copied /usr/share/grub/x86_64-redhat/* to /boot/grub

and
(2)
created a new /boot/grub/grub.conf

and voila, it works!!
 
Old 06-15-2009, 08:31 AM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Thanks for sharing your success!
most people don't....
I was going to comment and try to help, but my knowledge is limited
as I have never used external hd, and have never used grub.conf-is that same as menu.lst?
anyway, sometimes when installing I get the same error, so I found a work-around that sometimes works...
after above error I tried , while mounted to partition, using grub-0.97(important)
"grub-install --root-directory=/mnt/hdxx /dev/hdx"
which usually works beautifully.

What distro are you runnng?
 
Old 06-15-2009, 08:41 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 635

Original Poster
Blog Entries: 1

Rep: Reputation: 48
linus72: menu.lst is soft-linked to grub.conf, so they are the same.

I am using CentOS, which is a distro that forces me to think very hard about linux. I got burned quite badly initially with the GM 965 graphic controller, but now I enjoying this distro and this graphic card, PLUS I have a portable OS ! I can now use an old HP laptop in the office. Sorry I might have bored you.
 
Old 06-15-2009, 08:50 AM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hmmm.CentOS I know nothing about; can it do a minimal install?
Hmmmmmm.... I just downloaded net-install c5 and it works on portable-qemu too!
awesome, you use any portables?
 
  


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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
Grub Checking if "/boot/grub/stage1" exists... no (but it does) ??? taylorkh Linux - General 5 08-01-2008 05:17 PM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
"init 3" freezes while checking "lm_sensors" diogobaeder Fedora 5 07-03-2006 07:40 AM
"DeVirgined" by FC5, new to MS's parallel Universe of which I heard freedom exists! five00seven LinuxQuestions.org Member Intro 1 06-05-2006 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:40 AM.

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