Posts: 75
equimanthorn
Joined: 28 Sep 2008
#1
Hello,
this evening after the dist-upgrade using smxi I rebooted my laptop and I have a problem.
I can booted Antix, after the grub screen I have this message:

Code: Select all

Booting 'Debian GNU/Linux, kernel 3.7.10-antix.5-486-smp'

root   (hd 0.0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz-3.7.10-antix.5-486-smp  root =UUID=a9661cc2-70c1-4306-adcd-1a487560944a ro
[Linux-bzImage, setup=0x4000, size=0x2c21b0]

initrd /boot/intrd.img-3.7.10-antix.5-486-smp

Error 18: Selected cylinder exceeds maximum supported by BIOS

Press any key to continue
If I press one key grub restart and after some seconds (I have only Antix in this laptop) the message reappear.

I found some solution on the net but these are not clear, english is not my mothertongue __{{emoticon}}__

Someone write about to make bigger the grub partiton and some other write about to install grub2.
Is possible to resolve without reinstall Antix ?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Does init3 boot work? The grub menu entry line with a 3 on the end of it.

You can also reinstall grub to mbr using a live cd without reinstalling AntiX .

If Hard Drive is failing because of age of drive. I got no fix to recommend other than replace drive. But first make sure hard drive in bios setting is set to lba.

Just to rule out something. You are not running a separate /boot partition, are you?

Cuz if you are. Resize it to a larger partition using a live cd.
Posts: 325
male
Joined: 04 Nov 2011
#3
Please from a live CD, the terminal output:

Code: Select all

# parted -l
or

Code: Select all

# fdisk -l -u -c
Posts: 75
equimanthorn
Joined: 28 Sep 2008
#4
Thanks for all your help, I try in the next few days,now I'm out for work
Posts: 75
equimanthorn
Joined: 28 Sep 2008
#5
Hello Roki and Male

First of all thank you

excuseme if I write my answer only now but I have to much things to do to go in hollyday next friday:)

I don't know how to reinstall grub to mbr using a live cd without reinstalling AntiX .
I don't have a separate grub partition,when I install Antix I choose the most simple procedure,
init 3 don't work,and I can't reinstall grub using the control center.
I find this tread:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://is.gd/KatvHM"
linktext was:"http://is.gd/KatvHM"
====================================
, maybe I can try modify the bios of the laptop.

I try to do it tomorrow, can you help me ?
Posts: 17
machinebacon
Joined: 17 Jul 2014
#6
Hi paolo,

1) boot into a live session of any 32-bit Debian-based Linux
2) do not mount anything
3) create this script as root in /usr/local/bin/grubrepair

Code: Select all

#!/bin/bash

clear 
 
GRUB_TARGET="/mnt/repairs"
  
setup () {
if [[ ! -d"$GRUB_TARGET" ]]; then
mkdir -p"$GRUB_TARGET"
fi
}
   
bind_it () {
mount --bind $1 $2
}
    
sudo blkid -o list

read -p"Please enter the device you wish to install grub to (MBR):"
DEVICE_INST="$REPLY"
read -p"Please enter the partition device node on which your installation exists (Your linux install):"
PARTITION_INST="$REPLY"
setup
      
# Attempt mount
mount"$PARTITION_INST""$GRUB_TARGET"
if [[ $? != 0 ]]; then
echo"Could not mount the device. Aborting"
exit 1
fi
       
for mountpoint in"/dev/""/dev/pts""/dev/shm""/proc""/sys"; do
bind_it"$mountpoint""$GRUB_TARGET$mountpoint"
done
        
# run teh commands
chroot"$GRUB_TARGET""grub-install""$DEVICE_INST"
chroot"$GRUB_TARGET""update-grub"
         
for mountpoint in"/dev/pts""/dev/shm""/dev""/proc""/sys"; do
umount"$GRUB_TARGET$mountpoint"
done
          
umount"$GRUB_TARGET"
4) make it executable as root: chmod a+x /usr/local/bin/grubrepair
5) run it as root: grubrepair
6) as first answer, enter something like /dev/sda (if your GRUB is on the first drive, so hd0 or sd0)
7) as second answer, enter the partition of your actual Linux system (for example /dev/sda1)
eight) after a minute it is all done. Reboot into the normal system.

Bonus tip: you can store this script in a pastebin or github and then download it with wget, curl or even links/links2/lynx/w3m in the Live session, depending on the distro you use...
Posts: 75
equimanthorn
Joined: 28 Sep 2008
#7
Thanks for your help Jules...

Only 2 weeks ago I reinstall Antix because I can't find the solution ... and I have read somewhere (in the past)
"be proud of breakage" __{{emoticon}}__