LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2009, 10:42 AM   #1
mbvo
Member
 
Registered: May 2006
Location: the land of confusion
Distribution: slackware-current
Posts: 220

Rep: Reputation: 31
grub2


Im on slackware current. i downloaded grub-1.96 and compiled it a few days ago. when i would run grub-install /dev/hda it apeard to create all the needed files in /boot/grub but would hang before finishing. i finaly gave up cleared out all the files redownloaded them and compiled again it worked this time. the thing is i have no clue what i did and after a system crash(hdd errors due to dropping my laptop not a software issue) and reinstalling slackware i cant figure out how to get grub2 working again. has anyone seen this before or have any ideas?

i compile simply by:
tar -xvf grub-1.96.tar.gz
cd grub-1.96
./configure
make
make install
 
Old 03-17-2009, 11:27 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I assume grub successfully compiled, you can get to a grub prompt from within slackware and that when you run grub-install from a console the command never completes, i.e. it hangs. Further assuming you have successfully edited your menu.lst file to boot your slackware installation, try opening a console and running as root:

# grub

which sould take you to a grub prompt if grub is properly installed on your system. Your console should look like so:

grub>

At the grub prompt run:

grub> root (hd0,0)
grub> setup (hd0)

assuming slackware's kernel is installed on /dev/hda1 which is (hd0,0) in grub speak. /dev/hda2 would be (hd0,1), /dev/hda5 would be (hd0,4), etc. I further assume that your bootloader is to be installed on the mbr of hda which is (hd0) in grub speak.

When these command have successfuly run, type:

grub> quit

to exit from the grub prompt.
 
Old 03-17-2009, 11:46 AM   #3
mbvo
Member
 
Registered: May 2006
Location: the land of confusion
Distribution: slackware-current
Posts: 220

Original Poster
Rep: Reputation: 31
yes it compiled with no errors but

first the menu.lst in grub2 is /boot/grub/grub.cfg
second there is no /usr/sbin/grub in grub 2 or i would've simply used grubconfig
and third i discovered after leaving it for a while it does work but for some reason is taking bout 10 minutes.
 
Old 03-17-2009, 01:29 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Maybe its a result of your hardware being dropped? Notebooks do funny things after being dropped or water damaged... I used to fix notebooks all the time screens, mobo's, hdd's, etc... I'd get a 2.5" to 3.5" converter and hook it up to a tower and test the hdd. see if the issue can be isolated.




EDIT: You might want to check the ./configure options... maybe a ./configure=/usr/local/bin or another .. just a suggestion

Last edited by manwithaplan; 03-17-2009 at 01:30 PM.
 
Old 03-17-2009, 02:23 PM   #5
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Sorry about that; haven't really been following grub development. From their website, grub 2 is still in pretty heavy development so I guess you can expect some bugs and you can definitely expect some incompatible changes in future releases of grub 2.

Just curious, did you also try designating the drive in grub syntax instead of /dev/hda, i.e.:

# grub-install (hd0)

and if so, was the result the same?

I'm fairly certain you should have a grub executable somewhere on your system even with grub 2. It may have been dumped in some weird location. Have you been able to locate it anywhere?
 
Old 03-17-2009, 02:39 PM   #6
mbvo
Member
 
Registered: May 2006
Location: the land of confusion
Distribution: slackware-current
Posts: 220

Original Poster
Rep: Reputation: 31
check out http://landofconfusion.comze.com/grub-1.96-i486-1.tgz i made a slackbuild of grub2 and installed it on here via pkgtool if you want to see what i did to make it check out http://landofconfusion.comze.com/grub2.tar.gz
 
Old 03-19-2009, 02:19 AM   #7
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
grub2 uses different naming. what was grub hd0,0 in grub it is hd0,1 in grub2

one should use svn version; 1.96 is too old

Last edited by Alien_Hominid; 03-19-2009 at 02:26 AM.
 
Old 11-12-2009, 06:06 AM   #8
vit0cf
LQ Newbie
 
Registered: Mar 2009
Location: Italy
Distribution: Slackware-current
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by Alien_Hominid View Post
one should use svn version; 1.96 is too old
Here you can find newer versions without dealing with svn (perhaps packaged versions are different from svn ones...)
ftp://alpha.gnu.org/gnu/grub/

Grub website is: http://www.gnu.org/software/grub/ lot of documentation there...

mbvo slackubuild (http://landofconfusion.comze.com/grub2.tar.gz) still works with version 1.97.1 I just finished compiling with no errors and now will install the package... Let's cross fingers! All this because I want ext4 support...
Thanks mbvo!!!
 
  


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
loading winXP from Grub2 scottybwoy Debian 14 04-20-2011 10:33 AM
Splashimage for Grub2 in Lenny megaprog Debian 12 10-21-2009 12:16 PM
Any distro defaultly using GRUB2? gabeyg Linux - General 1 08-19-2007 02:11 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 09:43 AM
Editing GRUB2 ssinustwo Fedora - Installation 1 07-20-2004 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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