LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-12-2008, 11:43 AM   #1
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
slack12 new machine, grub fails to see hard drive


I've just put slackware 12 on a new machine. Grub fails to see the hard drive. In the past, I have used grub as the boot loader. it's always worked for me and I've never been able to figure out lilo. The following commands (in grub) always worked for me:
Code:
root (hd0,5)
setup(hd0)
The above sets grub up on a hard drive whose (linux) boot partition is /dev/hda6.

This now fails. Specifically, the first command yeilds the following error message: "Error 21: selected drive does not exist."

Why? The machine has only one hard drive, which is SATA. There is also a dvd drive. There are no other drives to confuse grub, not even a floppy.

Now the actual questions:
  • Does grub handle sata? man page and info file for grub make no mention of SATA. My web searches indicate that grub works with sata but my own experiments are contradicting that.
  • If grub does actually handle SATA drives, what is the actual root command to type to get grub to use /dev/sda6 in its "root" partition?
  • Is there a command to list the drives/partitions that grub "sees" so that I can get the names of them to then type them in the grub "root" command? The info file that comes with grub indicates that hitting "tab" after typing "root (" should do this but this does not happen.
  • In these modern times, what boot loader will work with SATA drives?
 
Old 10-12-2008, 12:26 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,298

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
GRUB definitely supports SATA drives. If you're using the GRUB that came with Slackware (in extra/), you should have no problems. If you're using the GRUB from another distro, you *may* have to switch to Slackware's GRUB if you're using an ext2/ext3 filesystem formatted with Slackware's installer, since GRUB has to be patched to handle the now default 256-byte inode size (instead of 128 bytes).

I think the problem is more likely your menu.lst syntax -- but I'm afraid you'll have to wait for someone else for help on that, since I don't use GRUB. A search for GRUB in the forums should help you immensely.

Although I can provide no help to you, I just thought I should post a quick reply saying that SATA is NOT the problem.
 
Old 10-12-2008, 12:43 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Does grub handle sata? man page and info file for grub make no mention of SATA. My web searches indicate that grub works with sata but my own experiments are contradicting that.
As already mentioned - yes - I use it on a SATA drive.
Quote:
to type to get grub to use /dev/If grub does actually handle SATA drives, what is the actual root command sda6 in its "root" partition?
your command looks fine to me.
Quote:
Is there a command to list the drives/partitions that grub "sees" so that I can get the names of them to then type them in the grub "root" command? The info file that comes with grub indicates that hitting "tab" after typing "root (" should do this but this does not happen.
you could try find /boot/grub/menu.lst from the grub prompt.
Quote:
In these modern times, what boot loader will work with SATA drives?
I have had both grub and lilo work fine.

Another idea would be to try the grub-install script that comes with Slackware.

Edit : With hindsight - as you may not have grub installed you may be better with find /boot/vmlinux or something to find what boot partitions grub reports.

Last edited by bgeddy; 10-12-2008 at 12:56 PM.
 
Old 10-12-2008, 02:30 PM   #4
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
It's the grub that comes with slack12, already installed in the grub directory of the boot partition.

Tried the "find" command within grub. Nothing. grub is definitely not seeing the hard drive.

Grub don't like sata, or at least doesn't like my hardware, which amounts to the same thing.

(and the hardware works, cause windows boots off it and runs fine)
 
Old 10-13-2008, 09:58 AM   #5
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
update:

downloaded a grub cd image. burned it and ...

Grub on the CD can see the HD that slack 12's grub does not.

Something in slackware 12's grub is broken.

booting into windows from this grub cd works OK.

booting into slackware 12 causes a reboot without prompt (ie, not a kernel panic). odd, very odd. A theory: version mismatch between the stages on the HD vs the stages on the cd. I hate mixign versions.

I don't know what to do now.
 
Old 10-13-2008, 10:08 AM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Maybe something to do with your BIOS settings ?
It is weird that it reboots without prompt, I would think it is hardware related, but I don't know
Anyway, grub query BIOS for drive infos, so I would check every BIOS settings

Also, maybe post motherboard infos (model, brand), it would help

Last edited by keefaz; 10-13-2008 at 10:10 AM.
 
Old 10-13-2008, 11:48 AM   #7
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
I had some grub related problems too. I was using grub that came with slacks from 12.0 and earlier. I noticed a new one that either came with slack 12.1 or from the current directory. Installing the new one helped. I'm using grub 0.97 from package: grub-0.97-i486-6.tgz

If you are using something earlier try this.
 
Old 10-13-2008, 01:25 PM   #8
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Very strange ... I got slackware 12's grub to see the HD. Apparently, if you chroot into the mounted drives to then run grub, the drive is not visible to Grub. If you instead just mount the partition where the grub program is (the partition that has /usr/bin/grub (or was it /usr/sbin/grub?)) and cd there and run grub thusly (direct and not in a chroot)
Code:
 ./grub
then grub will see the hard drive. So ...
  • sata was not the problem. slack 12's grub is fine with sata
  • grub won't see a drive that's mounted as part of a chroot-ed directory tree
  • grub is now on my HD and it can be used to boot to windows
  • grub can be used to boot to linux
  • linux seems to have a problem with its sudden reboot. That's off topic to this thread. so I'll be putting it in a separate thread if i can't puzzle it out.
 
  


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
How soon does a hard drive fails ? pleasehelpme Linux - Newbie 16 12-13-2007 09:20 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Installed GRUB on 3rd hard drive, how do I boot 1st drive? jesusphreak Linux - Newbie 4 04-06-2005 10:34 AM
Grub fails to boot when not at beginning of hard drive tisource Linux - Hardware 12 01-05-2005 12:13 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM


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