LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-04-2011, 12:39 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,254

Rep: Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134
grub hiccough


I have the grub slackbuild instead of lilo and installed over a failed grub installation (all my partition numbers got wiped and they were out of order)

# grub install <anything I have tried so far> returns a silly error.
# grub setup <anything I have tried so far> returns a silly error.

Grubconfig did something. Grubconfig is some bash script bundled with grub. I have a working menu.lst, but it comes up with another table, something like the o/p of fdisk -l interpreted. For the linux partitions, it runs (hd0,x)/boot/vmlinuz This fails with an error, and I get an error message but no time to read it, after which I see menu.lst and I get my correct choices

Any idea how I can end this madness? It doesn't feel reliable as a method of booting.

Last edited by business_kid; 01-05-2011 at 05:52 AM.
 
Old 01-04-2011, 03:34 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,919

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
Reading the doco is usually a good start. Error messages are generally put out for a reason.
I don't know grubconfig - must be specific to the slackbuild. Reading it should tell you what it's doing, and how it has set things up.

"install" and "setup" are sub-commands to (classic/legacy) grub, not parameters.
 
Old 01-04-2011, 04:25 PM   #3
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I am curious, let us know if or when and how you fixed.
 
Old 01-05-2011, 04:32 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,254

Original Poster
Rep: Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134
I think I found it.Grub has installed to /boot/boot/grub as well as /boot/grub.

So I said haha, I'll check that and went and renamed /boot//boot/ to /boot/junk.
"Error, can't find grub files . . . " :-//.
That sends me back in with the install dvd one last time to sort that out. It's at times like this you are glad it's not a netbook.

Other possibly related collateral damage is that windows doesn't boot(even with /boot/boot/grub), as grub as supplied doesn't seem to like ntfs 'invalid partition type 7' (& middle digit from grub). That's hardly kosher.
 
Old 01-05-2011, 05:55 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,254

Original Poster
Rep: Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134Reputation: 1134
Well, I got it finally talking some sense. Getting /boot/boot out of the way normalised things and grub went back to being the dodgy boot loader it always was. I still somehow prefer it, because it is never as inscrutably awkward as lilo can be. Is that heresy for a slacker?

Thanks to all who offered wisdom on this.

EDIT: windows still doesn't boot. That has it's (low) place on the to-do list.
 
Old 01-05-2011, 03:11 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,919

Rep: Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852Reputation: 2852
The /boot/boot is because of a symlink on "." (I think). Used to be explained in a FAQ, but the doco is disappearing.
For the NTFS issue, use "rootnoverify" instead of "root" for that stanza.
 
  


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
[SOLVED] Grub : Lost my windows partition, can't find menu.lst in /boot/grub.Someone can help? lucid_dino Ubuntu 9 11-01-2010 01:51 PM
GRUB GRUB GRUB.... all over the display while booting with USB. kapsikum Linux - General 5 01-08-2010 04:29 AM
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

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

All times are GMT -5. The time now is 02:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration