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 03-15-2017, 07:28 AM   #1
bingel74
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
Unable to install grub-legacy with grub-install command on latest Antix/Debian


Since I have a MB with a Via C3 processor, because a bug in grub2 that prevents booting grub2 with this processor, I had to install grub-legacy (grub2 is automatically removed) with these commands:

Code:
sudo apt-get install grub-legacy
sudo grub-install /dev/sda
sudo update-grub
Unfortunately the second command doesn't run. The output is:

Code:
Searching for grub installation directory ... found: /boot/grub
but here it stops to run.

I also tried with a live and chrooted system and same command (grub-install) now emitted this output:

Code:
$ sudo grub-install /dev/sda

...
device node not found
device node not found
device node not found
Searching for grub installation directory ... found: /boot/grub
device node not found
device node not found
device node not found
...
Obviously /dev has correctly been mounted in chrooted system.


Some ideas?
 
Old 03-15-2017, 08:32 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 19
Posts: 5,920
Blog Entries: 21

Rep: Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966
Back when AntiX used grub legacy as a boot loader. I used to install grub4dos to handle my mulit-boot situations back then.

grub4dos menu edits are like grub legacy. My reply to your question in AntiX forums pretty covers the rest as far as ideas go.

Edit: You do remember installing grub2 to mbr of hard drive. Not to root. So your error message is probably related to that step.

Last edited by rokytnji; 03-15-2017 at 08:35 AM.
 
Old 03-15-2017, 09:19 AM   #3
bingel74
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you for your reply.

I will try grub4dos but I wonder if this program needs a floppy or a dedicated partition to run.

I have installed grub2 in MBR (not root partition).

Thanks for your reply in Antix forum too.


EDIT: I've solved installing the old good "lilo"

Last edited by bingel74; 03-15-2017 at 09:49 AM.
 
Old 03-16-2017, 08:03 PM   #4
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,175

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
One of the nice things about Grub that Grub2 discarded was simplicity. There's no need for any script to install it, and it can even be installed to a partition that is not mounted. Simply start the grub> shell, verify the device and grub directory exist, set root, run setup. The man page explains. All my myriad installations, spread across more than 25 multi- multiboot machines, except the *buntus, have only Grub installed, including AntiX. The *buntus are an exception merely so that I need not be completely ignorant about Grub2. Oh, and I have no MBR with any version of Grub installed. All my MBRs have generic PC boot code installed.
 
Old 03-16-2017, 08:07 PM   #5
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
\
Code:
sudo apt-get install grub-legacy
sudo grub-install /dev/sda
sudo update-grub
\

my idea is you didn't read grub legacy info(1) pages

you could try this: make a grub floppy (if you have a floppy !). boot from the floppy. run grub install from the floppy. (read the info pages , that is one way grub can be installed if i remember). i'm unsure if grub floppy can be put on usb or if your board supports faking usb as a floppy: heard of it but never had such a motherboard bios to try it with.

Last edited by X-LFS-2010; 03-16-2017 at 08:09 PM.
 
Old 03-16-2017, 08:13 PM   #6
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 423

Rep: Reputation: Disabled
older grub can still be found (but not on it's offical development page - they removed the code !!) and still compiles

i'm unsure if your running the newest debian why you'd want to install older grub - and "really new systems" don't even have a bios that can be accessed by grub (grub legacy does require a bios be present)

why are you doing this ?
 
  


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] The AntiX cli-installer doesn't install grub hazel Linux - Distributions 12 11-22-2016 01:09 PM
grub-install using grub-legacy on LM 17.1 fails oldwierdal Linux Mint 3 12-20-2015 10:43 AM
install unubtu 12.04 show"unable to install grub in /dev/mapper. my patition tomli21228 Linux - Server 2 09-20-2012 02:45 PM
Unable to install gfxboot-grub on Debian Lenny sd|| Debian 2 11-07-2009 06:03 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 03:01 PM

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

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