LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2014, 03:07 PM   #1
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Rep: Reputation: 12
GRUB and LILO both fail to install (Debian)


I've gone through the Debian installer several times trying to figure this out. Everything goes smoothly until I try to install GRUB. I get a red screen with the following error:

Code:
An installation step failed. You can try to run the failing item again from the menu, or skip it and choose something else. The failing step is: Install the GRUB boot loader on a hard disk
I've checked the syslog and it shows this error:

Code:
Error: Can't have a partition outside of the disk!
grub-probe: error: out of disk.
Setting partition 1 of /dev/sdc to active... done.
grub-probe: error: no such disk.
WARNING **: Configuring 'grub-installer' failed with error code 1
WARNING **: Menu item 'grub-installer' failed
I did a bit of searching and found that sometimes using MBR can cause GRUB to fail. Since the Debian installer doesn't seem to have an obvious way to create a GPT partition table rather than an MBR, I had to boot into a different Live CD and use gparted. I booted up again, followed the install process, and I get the same red screen saying the GRUB install failed. Except this time, the syslog shows this:

Code:
Error: Can't have a partition outside the disk!
grub-probe: error: out of disk.
No DOS partition table on /dev/sdc; nothing to do
grub-probe: error: no such disk.
WARNING **: Configuring 'grub-installer' failed with error code 1
WARNING **: Configuring 'grub-installer' failed.
Alternatively, when I try to install LILO I also have problems. I get an error on the installer screen:

Code:
The lilo package failed to install into /target/. Installing LILO as a boot loader is a required step. The install problem might however be unrelated to LILO, so continuing the installation may be possible. 

LILO installation failed. Continue anyway?
Syslog shows:
Code:
Errors were encountered while processing:
 lilo
E
: Sub process /usr/bin/dpkg returned an error code (1)
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
ISO 9660 Extensions: Microsoft Joliet Level 3
info: calling 'apt-install lilo' failed
ISO 9660 Extensions: RRIP_1991A
Since two different bootloaders are having problems, I start to think it has to do with my hardware configuration. With additional searching, I read that BIOS anti-virus can mess with the bootloader. I have an MSI M87-G45 and it doesn't seem to have a BIOS anti-virus feature. So I don't know what to do at this point. I would prefer to use GRUB, but LILO is acceptable since I really just want my system up and running. Any suggestions?
 
Old 05-12-2014, 05:57 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Are you trying to install on an internal or external hard drive (hard drive or USB drive?

At the part of the installation in which you choose to install Grub/LILO, do you choose to install to the MBR of the drive you are installing on, or to the root partition of the installation?
 
Old 05-12-2014, 06:39 PM   #3
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by bigrigdriver View Post
Are you trying to install on an internal or external hard drive (hard drive or USB drive?

At the part of the installation in which you choose to install Grub/LILO, do you choose to install to the MBR of the drive you are installing on, or to the root partition of the installation?
Nope, this is an internal hard drive connected via a SATA port. Not even in RAID.

I choose to install to the MBR, which is /dev/sdc in this case. I haven't yet tried to install on the root partition though (/dev/sdc1). But I've always put the bootloader on the MBR when I install it. I don't know why things would be different in this case.
 
Old 05-12-2014, 10:12 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,615

Rep: Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645
This wouldn't happen to be booting in efi mode?
 
Old 05-14-2014, 07:53 PM   #5
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by colorpurple21859 View Post
This wouldn't happen to be booting in efi mode?
Looks like that might be it. Boot mode in BIOS is set to "Legacy+UEFI", so so it's hard to tell. The only other option is just "UEFI". But the hard drive in the boot sequence is labeled as "UEFI Hard Disk" so maybe it's forcing UEFI. I don't see any way to only specify legacy. Perhaps it's because I have the SATA Mode set to "RAID Mode"? Problem is I need it in RAID mode because I run Windows off of a RAID array.

Assuming there's no way to take the HDD out of UEFI mode, is it still possible to get a Linux boot loader installed?
 
Old 05-14-2014, 08:26 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,615

Rep: Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645
is there a a small fat-32 partition(100mb-500mb) on the hard drive and if so what is on it?
 
Old 05-14-2014, 08:32 PM   #7
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by colorpurple21859 View Post
is there a a small fat-32 partition(100mb-500mb) on the hard drive and if so what is on it?
No. I've rewritten the partition table several times on this HDD.
 
Old 05-14-2014, 09:06 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,615

Rep: Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645Reputation: 1645
Maybe creating an efi partition will allow grub to install. This teill how to create an efi partition https://help.ubuntu.com/community/UEFI
 
Old 05-16-2014, 08:34 PM   #9
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Original Poster
Rep: Reputation: 12
Quote:
Originally Posted by colorpurple21859 View Post
Maybe creating an efi partition will allow grub to install. This teill how to create an efi partition https://help.ubuntu.com/community/UEFI
Thanks for the link. I've also found http://tanguy.ortolo.eu/blog/article51/debian-efi which seems to be more specific to Debian. I'll update this thread with the results once I have time to try.
 
  


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] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
GRUB fail when install Fedora 8 in secondary hd pxhai Linux - Newbie 2 02-08-2008 11:16 AM
grub/lilo fail to install leegwebb Linux - Newbie 1 08-01-2007 07:27 PM
Bootloader problems (both grub & lilo fail?) Method9455 Debian 2 04-15-2007 08:18 PM
LILO/GRUB fail & Lost data pete_willis Linux - Newbie 2 11-15-2003 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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