LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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, 07:32 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,148
Blog Entries: 21

Rep: Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483
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 07:35 AM.
 
Old 03-15-2017, 08: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 08:49 AM.
 
Old 03-16-2017, 07:03 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,878
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
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, 07:07 PM   #5
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
\
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 07:09 PM.
 
Old 03-16-2017, 07:13 PM   #6
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
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



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

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

All times are GMT -5. The time now is 07:59 PM.

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