LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 08-31-2010, 09:49 PM   #1
ArtemZ
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
Grub problems


Hi,
I got problems with grub again...as by always I cannot deal with it (seriously I think its the worst program ever made after ms windows)
I trying to install grub on the remote server with linux (debian stable) image loaded into the ram.
Firstly grub said there is no stage1 file, but its there:
Quote:
[root@rescue /]# file /boot/grub/stage1
/boot/grub/stage1: x86 boot sector, code offset 0x48
then I cleaned boot sector by dd if=/dev/zero of=/dev/sda bs=466 count=1
Now it says there is no first partition:
Quote:
grub> root (hd0,0)

Error 22: No such partition
I tried to reread partition table by hdparm -z /dev/sda but nothing changed.
Anyone please help

Last edited by ArtemZ; 08-31-2010 at 09:50 PM.
 
Old 08-31-2010, 10:12 PM   #2
ArtemZ
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Okay, I recovered partition table, but grub still unable to find stage1 file:

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

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type

grub> find /boot/grub/stage1

Error 15: File not found
grub> quit
[root@rescue /]# file /boot/grub/stage1
/boot/grub/stage1: x86 boot sector, code offset 0x48
 
Old 08-31-2010, 10:19 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,469

Rep: Reputation: 64
Are you %100 sure you have /boot mounted on the first drive first partition in the system?
 
Old 08-31-2010, 10:24 PM   #4
ArtemZ
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Oh it looks like I just used old grub which unable to load stage1 file generated by newer grub
 
Old 08-31-2010, 10:26 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,469

Rep: Reputation: 64
Yeah old grub is better IMHO then the newer one. The newer one makes things more complicated then they need to be for a simple loader. But back to your thread here yeah they are not compatible you need to use the right grub for the right files.
 
  


Reply

Tags
grub


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
Problems with /boot/grub/grub.conf not being read properly on reboots cmeyer Linux - Software 1 10-11-2008 06:34 PM
Problems with GRUB, not using whats in grub.conf **FIXED silentpetey Linux - General 1 11-06-2006 09:24 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Grub 0.95 Problems Little Dump Linux - General 3 09-23-2004 07:57 PM


All times are GMT -5. The time now is 04:50 AM.

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