LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 07-31-2016, 01:31 PM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
The AntiX cli-installer doesn't install grub


I've just completed an installation of AntiX on an old computer that I'm going to give to a friend. I found a couple of problems during the installation and I wonder if there is a quick way of reporting these to the AntiX team without having to subscribe to the AntiX forum. I don't want to belong to too many forums or I'll never get any work done!

This is antiX-16 (Berta Cáceres), base edition. It boots to a graphical desktop with an install icon. I clicked on it but didn't get very far; it crashed out while copying the files over. I don't know exactly where because I wasn't watching the screen at the time. When I next looked up, the install window was gone.

There is also a cli-installer so I switched to that and found it much more robust and quite easy to use. It ran to completion and reported no errors. But afterwards I couldn't boot from the hard drive. There was simply no sign of a bootloader although I had requested for grub to be installed in the mbr. This clearly hadn't happened. I found all the grub files in their usual places, so the grub package had been correctly installed but grub itself had not.

It took me quite a while to work out what had gone wrong. In the end I chrooted in and ran grub-install by hand and after that I could reboot normally. God knows what a newbie would have done!
 
Old 08-01-2016, 06:03 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Using a USB?

Has been an issue with the Debian installer on certain hardware from usb install media - the installer has trouble determining the correct mbr automatically.
It works if you choose to specify the device to install to (provided you get it right ).
 
Old 08-01-2016, 06:11 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by descendant_command View Post
Using a USB?

Has been an issue with the Debian installer on certain hardware from usb install media - the installer has trouble determining the correct mbr automatically.
It works if you choose to specify the device to install to (provided you get it right ).
I was installing from a cdrom on the built-in cd reader (IDE interface). The hard drive is SATA. I'm pretty sure I specified /dev/sda but I can't prove it!
 
Old 11-15-2016, 11:02 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
I'm bumping this thread because I've recently done another installation on a different machine and with a different image. This time it was 32-bit AntiX-base (the other one was 64-bit). This is a very old machine; you can read the details in the General thread on old PCs. I knew it wouldn't be able to cope with a graphical install so I used the cli installer straight away. Again the installation device was a cdrom.

In view of what Descendant Command said above, I made sure this time that there were no usb devices present. In the other case, there was a wifi dongle plugged in, and I know that these register initially as storage devices so it is just possible that GRUB got installed there by mistake. This time around, the only writeable drive was the hard drive.

Everything went smoothly and, when it came to installing GRUB, I specified the MBR. But when I rebooted, I got LILO, which was what was there before. I had intended to boot another partition, which had Slackware on it, and then chroot over to AntiX and install GRUB. But from force of habit, I booted AntiX. To my surprise the hand-rolled kernel I had made for my previous AntiX came up. Obviously it hadn't been overwritten by the new install and LILO still had the address. So in the end, I didn't have to chroot and I was able to install GRUB successfully.

Oscar Wilde wrote that once could be a misfortune but twice looks like carelessness! I have now done this installation twice on two different machines with two different architectures and both times I hit the same bug. In this second case it could not be confusion between the hard drive and a usb device because there was none present. Either grub-install is not being run at all or perhaps it is wrongly installing GRUB in the AntiX partition.
 
Old 11-21-2016, 07:23 AM   #5
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 636
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
antiX UEFI/GPT support is "partial" but not 100% complete and accurate

Just out of curiosity, what is the disk organization, in terms of partitioning type and file system? Is this using the old BIOS-based, four primary partition layout or the more modern GPT? Similarly, is it using GRUB Legacy (1, 0.97) or is it a variation of GRUB 2 or GRUB 2 EFI?

I hadn't encountered any issues with antiX and GRUB until I started using UEFI/GPT. AntiX will work with it, but I've not been able to have AntiX MANAGE that environment and I have not figured out how to do it. I've installed GRUB 2 to the antiX root partition, and the symptoms I saw were similar to yours.

I am able to boot antiX either by chainloading to the GRUB 2 root installed by antiX from another system, and/or by having PCLinuxOS, Fedora (23, 24, 25), or openSUSE 42.* manage GRUB.
 
Old 11-21-2016, 10:53 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by masinick View Post
Just out of curiosity, what is the disk organization, in terms of partitioning type and file system? Is this using the old BIOS-based, four primary partition layout or the more modern GPT? Similarly, is it using GRUB Legacy (1, 0.97) or is it a variation of GRUB 2 or GRUB 2 EFI?
All my computers are second-hand and have BIOSes. I don't have anything new enough to sport a UEFI. The drives are likewise old and therefore use MSDOS partitioning. All partitions are primary with ext4 filesystems. The GRUB is GRUB2.
Quote:
I hadn't encountered any issues with antiX and GRUB until I started using UEFI/GPT. AntiX will work with it, but I've not been able to have AntiX MANAGE that environment and I have not figured out how to do it. I've installed GRUB 2 to the antiX root partition, and the symptoms I saw were similar to yours.
Other people haven't had problems but I think they were using the graphical installer. My guess is that it is only the cli-installer which has this bug. btw, if you are using UEFI, you need to have the second stage of GRUB installed in your EFI system partition where UEFI can find it. There are some options you can use with the grub-install command to tell it to treat the system as EFI/GPT.
 
Old 11-22-2016, 01:29 AM   #7
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
A bit different, but I too seem to have ended up with NO [bootloader], as evidenced by:
nothing on screen, no disk activity (except maybe 1 read I missed); cpu [VBox] 100%.
boot-repair-disk fixed it.
I'm using antiX-16_386-core-libre.iso, so no GUI; cli-install only. (also no IP)
(I'm clueless about the F5 persist/frugal; probably just ignore it here)

NOW, I'm trying with a new VBox. cfdisk Seg-faulted, so I chose Custom instead of Beginning, changed default 0.03M to 1 (msdos label). Only 1 partition, so I answered sda1 for root.
Blew up with "no space" errors for everything, because /media/sda1 is a 10M! tmpfs (not /dev/sda1).
(Make FS seems to be Unimplemented in cfdisk! Did I need to change type to ext3?)
I answered ext3 (#2 of 7 fs choices) later. Confusing, but now it mounted properly.
(cp -a /live/aufs/* . took about 10minutes) I took default to install GRUB in MBR

Well, it 'won't boot', just like the first! isoCD: od /dev/sda|more & saw the 125125 [55aa]
so I don't know what's wrong. I can try anyone's suggestions...
 
Old 11-22-2016, 02:19 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by Jjanel View Post
Well, it 'won't boot', just like the first! isoCD: od /dev/sda|more & saw the 125125 [55aa]
so I don't know what's wrong. I can try anyone's suggestions...
Try booting from the installation disc, then mount your partition and create dynamic directories on it as in this extract from the LFS book. Then chroot to it and run grub-install by hand. That's what I did when setting up my friend's computer.

Someone ought to report this but I'm damned if I'm going to join the AntiX forum just to report a bug! Anticapitalista is the guy who should be dealing with this. Does anyone know if he visits this forum?

Last edited by hazel; 11-22-2016 at 02:21 AM.
 
Old 11-22-2016, 05:47 AM   #9
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
Let's fix cli-install script for them! (tomorrow/...) (OR is grub-install broken?)
It seems to do (after mount -o tmpfs --bind /{dev,proc,sys}/) chroot ... hd0
Is hd0 ok or is /dev/sda needed??

I wanna do what grub-install does, *manually*
 
Old 11-22-2016, 06:17 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
You need to use the normal device name as an argument: grub-install /dev/sda. hd0 is what the bootloader calls the disk, but this is a Linux command, so you must call it what the kernel calls it.

What it does is to put stage 1 of Grub (boot.img) into the mbr and stage 2 (core.img) after the mbr.

Last edited by hazel; 11-22-2016 at 06:29 AM.
 
Old 11-22-2016, 11:23 AM   #11
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
Should be fixed with an upgrade via the repos. Obviously, do this before running the installer.

The script really needs re-writing. When I have time ...
 
Old 11-22-2016, 11:37 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570

Original Poster
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Is that the version I just read on github? I checked out the grub installation sequence and it looked fine to me. Thanks for fixing it so quickly. Just out of curiosity, what was the script doing before?
 
Old 11-22-2016, 12:09 PM   #13
anticapitalista
antiX
 
Registered: May 2005
Location: Greece
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631

Rep: Reputation: 190Reputation: 190
It is deb version 3.9 in the repos and here at Github: https://github.com/antiX-Linux/cli-installer-antix

The script was trying to install directly to hda (as an example) rather than /dev/sda.

As I posted earlier, the script really needs a complete re-write to cater for UEFI for example. Still it does get the job done now thanks to your bug report.
 
1 members found this post helpful.
  


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
Is there a usb-pendrive (ISO-hybrid) for ANTIX with classical Installer (debian/installer)? patrick295767 Linux - Distributions 1 01-21-2016 05:48 PM
Could Debian Installer ask where to install the GRUB like before? Xeratul Debian 4 08-21-2015 09:34 AM
yast installer doesn't install wiliamvw SUSE / openSUSE 9 04-30-2013 05:06 PM
New install dumps to grub CLI K3l3v Linux - General 3 11-13-2010 10:21 PM
GRUB - only Centos installer is able to install right ? Vilius Red Hat 4 04-04-2009 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 10:16 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