Urgent: Installing debian etch on a new hdd but grub won't install (fatal error)
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
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.
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:
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...
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:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.