It is currently Sat Jul 22, 2017 12:36 pm



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Error 18 after dist-upgrade
PostPosted: Sun Jul 06, 2014 5:33 am 
Offline
User avatar

Joined: Sun Sep 28, 2008 6:00 pm
Posts: 75
Location: Milano, Italy
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:
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 :oops:

Someone write about to make bigger the grub partiton and some other write about to install grub2.
Is possible to resolve without reinstall Antix ?

_________________
Dell Latitude C640 - CPU P4 2GHz - RAM 2 GB - made in 2002 - all for Antix Linux 15 and some LinuxBBQ flavour


Top
 Profile  
 
 Post subject: Re: Error 18 after dist-upgrade
PostPosted: Sun Jul 06, 2014 4:45 pm 
Offline
User avatar

Joined: Fri Feb 20, 2009 3:44 am
Posts: 4022
Location: Pecos, Texas
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.

_________________
Linux Registered User # 475019
Linux at Home courses
How to Search for AntiX solutions to your problems


Top
 Profile  
 
 Post subject: Re: Error 18 after dist-upgrade
PostPosted: Mon Jul 07, 2014 10:24 am 
Offline

Joined: Fri Nov 04, 2011 3:50 pm
Posts: 318
Location: Chemnitz
Please from a live CD, the terminal output:
Code:
# parted -l
or
Code:
# fdisk -l -u -c


Top
 Profile  
 
 Post subject: Re: Error 18 after dist-upgrade
PostPosted: Tue Jul 08, 2014 8:08 am 
Offline
User avatar

Joined: Sun Sep 28, 2008 6:00 pm
Posts: 75
Location: Milano, Italy
Thanks for all your help, I try in the next few days,now I'm out for work

_________________
Dell Latitude C640 - CPU P4 2GHz - RAM 2 GB - made in 2002 - all for Antix Linux 15 and some LinuxBBQ flavour


Top
 Profile  
 
 Post subject: Re: Error 18 after dist-upgrade
PostPosted: Fri Jul 25, 2014 9:00 pm 
Offline
User avatar

Joined: Sun Sep 28, 2008 6:00 pm
Posts: 75
Location: Milano, Italy
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: http://is.gd/KatvHM , maybe I can try modify the bios of the laptop.

I try to do it tomorrow, can you help me ?

_________________
Dell Latitude C640 - CPU P4 2GHz - RAM 2 GB - made in 2002 - all for Antix Linux 15 and some LinuxBBQ flavour


Top
 Profile  
 
 Post subject: Re: Error 18 after dist-upgrade
PostPosted: Sun Sep 21, 2014 8:56 pm 
Offline
User avatar

Joined: Thu Jul 17, 2014 2:39 pm
Posts: 17
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:
#!/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...

_________________
My favorite animal is steak.


Top
 Profile  
 
 Post subject: Re: Error 18 after dist-upgrade
PostPosted: Sun Sep 21, 2014 10:52 pm 
Offline
User avatar

Joined: Sun Sep 28, 2008 6:00 pm
Posts: 75
Location: Milano, Italy
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 " :)

_________________
Dell Latitude C640 - CPU P4 2GHz - RAM 2 GB - made in 2002 - all for Antix Linux 15 and some LinuxBBQ flavour


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred