LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-14-2006, 01:16 AM   #1
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Rep: Reputation: 15
Solved: Installing debian etch on a new hdd but grub won't install (fatal error)


Oh no.

I was running etch for a while and was running a dual boot windows on hda and etch on hdb (single partition, plus swap and small fat32 partition). I was running out of space on this old small hard drive (hdb) and decided to upgrade, so i bout a 80GB SATA one.

My M/B has SATA support directly, so i plugged it in and then i noticed that on turning on the pc nothing would work, there was a grub error (i think 26) So i plugged in the old hard drive, and it worked again. Anyway I fiddled with trying to copy the old partition to the new drive but couldn't do it in GParted cos i had to unmount my drive, on which i was running etch (and GParted). Grrrr. So i just thought bugger it i'll reinstall. I did a netinstall and i'm still there, I got to the etch Grub install part and it keeps failing, it won't work, i can't get it to install on either hda (which is default) or sda (my new sata drive) or even a floppy!?!?!?!?! AAAAAHHH!

I don't won't to exit cos i'm scared it won't work if i try to reboot what should i do?! I'm sitting here with my pc now. so quick help would really be appreciated.

Last edited by MrInept; 09-14-2006 at 08:55 AM.
 
Old 09-14-2006, 03:01 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,674

Rep: Reputation: 122Reputation: 122
You can always boot from a rescue CD, like Knoppix or so.

Ok, what filesystem did you choose, 'cause Grub has known problems installing on an XFS partition. Use ReiserFS for the /boot partition, all others can be XFS (I know it can, that's what I have done )

Did you compile booting from SATA/SCSI support in your kernel, or into your initrd image? In Etch it should work 'out-of-the-box' but apparently it doesn't.
 
Old 09-14-2006, 06:50 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
I have seen people reporting error like this before. I have installed Etch on SATA hardware with no problems. I wonder if you could be a little more specific about Grub's "failure."

Do you get the message that it sees your Windows partition, and would you like to install Grub on the MBR? Is there any kind of error message at the point of the failure?

A nit-picking point: Many people are insulted by threads which include "Urgent" in the title. If you have a clearly explained problem, which you do, it won't help you get any quicker attention.

Last edited by rickh; 09-14-2006 at 06:55 AM.
 
Old 09-14-2006, 08:45 AM   #4
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
sorry i'll edit it if i can, it was urgent because i was afraid to reboot, i didn't know if i could reboot safely without killing my window install and getting killed by my family.

Grub gives virtually no error, it does detect my win install and ask if i wanna install on mbr, (win is on hda) but gives a "fatal" error. then if i so no to installing on mbr and choose sda or fd0 it fails as well (without even reading the floppy). It should be noted that grub gave an error on boot (it wouldn't load) as soon as i had disconnected hdb and now that i have hda, hdb, and sda it is fine to boot either hda or hdb. I was really confused so i tried ctrl+alt+f4 and found the text console behind the gui (i did install gui) and it says it can't find /sbin/grub-install the actual error is:

Code:
running chroot /target /sbin/grub-install --recheck "(hd0)"
chroot: error cannot run /sbin/grub-install: file or directory not found
but thats cos grub-install isn't in /target/sbin its in /target/usr/sbin...

hangon
 
Old 09-14-2006, 08:54 AM   #5
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
OMG it works! I copied grub-installer from /target/usr/sbin to /target/sbin and it worked! I think i'm gonna have to report that as a pretty major error, lol, don't know why it never happened b4. thanks for your help!
 
  


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
Help installing Debian Etch android6011 Debian 6 06-30-2006 04:30 AM
grub error when installing debian Mathsniper Linux - Software 1 06-17-2006 06:21 AM
grub 17 error post debian install teh_zero Linux - Newbie 1 11-16-2004 04:35 PM
URGENT Help with Grub Install stage 1 error arundeep78 Linux - Software 2 02-14-2004 07:34 AM
Fatal server error installing Debian Bruce Hill Linux - Newbie 2 07-26-2003 11:41 PM


All times are GMT -5. The time now is 11:47 PM.

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