Posts: 38
nassausky
Joined: 29 Aug 2013
#1
Actually for the most part Antix has what I need except 1 thing. A script to install the grub to the MBR or a frugal install script which includes the grub installation. (Maybe I missed it somewhere but someone mentioned a script antix-system.sh which does a repair that they said doesn't work with the 13 version and it didn't create the grub for me) Somehow I was able to get it installed once and when I was recreating my steps to make a new remaster and write instructions, I just can't get it. I don't have a problem changing or even creating a menu list because I have a copy of my original but it's so time consuming especially now that I can't figure out what's wrong.

The frugal instructions here
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://antix.mepis.org/index.php?title=Frugal_install"
linktext was:"http://antix.mepis.org/index.php?title=Frugal_install"
====================================
start off with the 6th paragraph down"You need a working grub already installed" and then it continues on how to move stuff over from Live to the Frugal HDD install. I think it would be so much nicer (and help me scratching my head each time) if there was a script for this.

Here I am now:
I have 2 partitions created. sda1 (fat32 set with boot flag) & sda2 (ext2). Booted live antiX13.2 (x386) . What do I do now if I want it installed to the MBR of sda? I tried :

Code: Select all

sudo grub
grub> root (hd0,0)
grub> setup (hd0)
Responds with

Code: Select all

Checking if"/boot/grub/stage1" exists... no
Checking if"/grub/stage1" exists... no
Error 15: File not found
Posts: 38
nassausky
Joined: 29 Aug 2013
#2
OK, I had some success and hope maybe some slight changes are done to the next antiX to make it easier.

After seeing errors like:
grub error 15: file not found

and trying to install grub2 which was very simple with a nice gui front end to install the MBR it gave me:

Code: Select all

/usr/sbin/grub-probe: error: /live/aufs is not a block device.
Auto-detection of a filesystem of /live/aufs failed.
Try with --recheck
device node not found
It looks like antiX-M8.5 has the tool I needed under the Applications/Other menu called MEPIS System Assistant. It is such a primary tool for those who want to install grub either don't have it or want to dual boot windows. It would be nice if that was added to AntiX13.2. The problem seems that the repair grub tool (antix-system.sh) doesn't add the *stage* files needed for grub to install to the MBR. It is basically as easy as just copying /usr/lib/grub/i386-pc/* to /boot/grub on the running linux root partition (not the sda1,sda2 since it's done automatically after you do this step. Note I'm only testing the 386 and not 64 bit. Their might be a different folder for this) It's so nice to read a bit about grub. Some real cool articles on 'tab-completion' for finding files and devices. Anyhow my first suggestion for the next version of antiX is either:
-fixing antix-system.sh (or creating a new grub installer script) so that it copies /usr/lib/grub/i386-pc/* to /boot/grub
-adding it to a separate menu more clear like installing grub or something more intuitive.

Since this antix-system.sh is already in control-centre it could use a rewording:
-rewording 'Configure system' in control centre to something like 'Config Sys & Disk)
and

It's probably important too mentioning it in the frugal instructions I noted in the previous post.

The overall conclusion to get grub installed had 2 steps involved. I ran this a few times in VirtualBox to test it(.
1) Running AntiX-M8.5's tool MEPIS System Assistant ignoring the popup msystem error"Sorry, creating the menu.lst failed. Root filesystem may be faulty. (antiX-system.sh didn't work)
2) Running the following code afterwards

Code: Select all

sudo grub
grub> root (hd0,1)
grub> setup (hd0)

Which basically means
1) Start grub command prompt
2) root (hd0,1) means I'll be using my 2nd partition sda2 to install linux
3) setup (hd0) installs to MBR of first physical drive (sda) where it looks in this partition under /boot/grub for the *stage* files and menu.lst

[Anyone new to grub. They mention many times the convention for naming drives is different in grub and not /sda1 /sda2 etc.]

So basically after that I could do my antiX copying to the partition. In my case it was from /live/boot-dev/antix to /media/sda2/antiX-base and added a new section to the bottom with the slight change to the /media/sda2/boot/grub/menu.lst as so:

Code: Select all

title My antiX frugal hdd install
root (hd0,1)
kernel /antiX-base/vmlinuz quiet bdev=sda2 bdir=antiX-base antiX=LMX nomodeset persist
initrd /antiX-base/initrd.gz

I hope this helps someone else.

Note. Running Rox as root, you can't edit text files (it looses file associates)
Posts: 38
nassausky
Joined: 29 Aug 2013
#3
The only thing that puzzled me after I got it working is how I installed grub to the MBR the first time in antiX 13.2 with no effort. After creating multiple new virtual machines and digging around and tossing files all around and I also got grub installed to the MBR by just copying the files from /usr/lib/grub/i386-pc/* to /boot/grub on sda2 and running the grub commands I listed above root(hd0,1) & setup (hd0) without downloading Antix 8.5 and running it's tool.
Posts: 38
nassausky
Joined: 29 Aug 2013
#4
OK I think I figured out what I did the first time when I coasted through my first remaster.

Code: Select all

sudo mkdir /mnt/hdd2
sudo mount /dev/sda2 /mnt/hdd2
sudo grub-install --root-directory=/mnt/hdd2/ /dev/sda
I think what worked during my first frugal install is I mounted the 2nd partition and assigned it the root directory directly as a grub-install parameter. Still would be nice to have this done in a GUI for newbies.