LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2008, 09:18 PM   #1
ThumbTack
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
Fedora 9, grub boot: Error 23 -- unable to parse number


Very frustrated at this point. Definitely need some help with a solution to this strange problem.

I have two disk drives; the second one (250 Gb) has Vista 64 Business on it. The first one (160 Gb) was wiped clean with GWScan by completely writing it with zeros. A GWscan quick test was done, and no problems were found. First one is IDE; second one is SATA. Linux sees them both as sd (sda, sdb). I am trying to see up a dual boot, with one OS on one drive and the other OS on the other.

The hardware on the machine includes a quad processor, x86_64, with 8 Gb of memory.

Installed Fedora 9, x64_64, from a CD created from an iso download about three weeks ago; the media check was good. The grub boot was placed on the MBR of the 160 Gb disk. The presence of the Vista system was noted during the Fedora install, and made part of the grub boot loader. Everything during the custom install was perfectly clean. The /swap partition is a primary partition, size 12 Gb. There are three more primary partitions, all ext3, for /boot (1Gb), /var (5Gv), and /(the rest of the disk).

The boot sequence in the BIOS was altered so that the 160 Gb drive came first.

We try to boot from the hard drive, and selecting Vista in the grub boot loader (second choice, not the default), we boot up just fine.

We try to boot with the default Linux, and we get "error 23: unable to parse number" (or something close to that...I don't recall the exact words).

The grub record has root (hd0,0), which is just what it ought to be.

Now, to make the story even weirder, the reason for the above install is that the previous install was working until yesterday, when suddenly the number parse error appeared after trying to customize SELinux. More than one attempt was made to reinstall, the last one being what is described above.

I even rewrote the boot record on the 250 Gb drive (whose boot sector isn't even being used) just to be sure that it wasn't causing any difficulties.

Now, even more peculiar, I downloaded and installed Ext2FS in the Windows OS, which enables it to access Linux partitions. When it tries to access the various partitions, it says that they need to be formatted, which makes it sound as though the Fedora install was just pretending to write things onto the disk. However, on one of the previous attempts to get the install to work, Ext2FS did find stuff on the /boot partition. But not this time.

I would love to get Linux working again. I welcome any ideas on what might do the trick.
 
Old 11-30-2008, 09:26 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data.
Can you post you menu.lst?

I recall Fedora changed their blocksize which may cause ext2fs some issues, so it probably is there.
 
Old 11-30-2008, 09:33 PM   #3
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 186

Rep: Reputation: 33
At the grub menu, can you press c for command line? It's in the menu screen instructions, here. Do

find /grub/stage1

from the grub> prompt, if you can get to that. Since you have a separate /boot partition, it complicates, in my mind, the grub paths in menu.lst and that might be something to look at. The find command will show you the partition. Esc to return to the menu screen, select the linux entry, press e to edit the entry and make note of the paths in that entry. Maybe report back.
 
Old 12-01-2008, 02:50 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
First one is IDE; second one is SATA.
this and the bios change most likely messed up the installer ( it got confused) .Mixing ide and sata will do that
have you tried setting grub to (hd1,0) seeing as the over route windows MBR was there .
and edited one from my grub.conf
Code:
title Fedora (2.6.27.5-41.fc9.i686)
	root (hd1,0)
	kernel /vmlinuz-2.6.27.5-41.fc9.i686 ro root=UUID=?????????????????? rhgb quiet
	initrd /initrd-2.6.27.5-41.fc9.i686.img
 
Old 12-01-2008, 01:47 PM   #5
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 492

Rep: Reputation: 40
If it where I, I would boot the Linux install CD or recovery CD (SuperGrub, DSL, Fedora, Ubuntu, etc.) and run some tests.
  • First run fdisk to map your drives.
  • Then if the drives check out OK run fsck for each partition.
  • Post all output from above along with your grub.conf or menu.list
  • If you have a laptop or other PC, use Grub's serial console and Minicom to 'log' the boot output.
I have a small tutorial that may help at:
http://64.124.13.3/hacks/USB_Boot_using_GRUB.html
If you still have problems, you can Email me directly, if you wish.

Grub is a great tool once you understand it.
 
Old 12-03-2008, 10:12 PM   #6
ThumbTack
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
All of your comments were helpful, and I learned something from each. However, as it turns out, one of the people I was talking to yesterday, when I told him my problem, said: "You have a partition wall problem. You need to delete all the partition walls before you do the Fedora install. It doesn't matter how you do it; you can do it with the Windows disk management console." Since I was working with a dual boot machine, that was easy to do, and when I reinstalled Fedora 10 yesterday evening, there was no problem at all.

The problem is caused by the fact that the install process puts info into the MBR which may not be consistent with the partitions on the disk, IF YOU HAVE NOT DELETED ALL THE PARTITIONS PRIOR TO THE INSTALL. You would think that, when you define partitions using disk druid during the installation, that DD would remove any previous partitions, but guess what....I am living proof that it does not.

So, the solution to my problem, and probably to many other people's similar problems, is:

(1) Delete ALL the partitions on the drive prior to doing the install. Make sure there is nothing but free space.

(2) Do the install, and define new partitions the way you want, and all will work the way it is supposed to work.

I was mistakenly assuming that any old partition walls would be removed during the installation. It just isn't so.
 
Old 12-03-2008, 10:21 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
First I've heard of that one. What's a partition wall btw?
 
Old 12-04-2008, 12:30 PM   #8
chipotphe
Member
 
Registered: Nov 2007
Posts: 62

Rep: Reputation: 15
Ok.

Removing the partitions is A solution.
But for me this is "a work around".
This is not THE solution.

I am afraid you did not pin-pointed the real problem.

Anyway : you have a working system again. That is what counts.

Enjoy yourself with it.
 
Old 12-05-2008, 02:36 PM   #9
ThumbTack
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Workaround not Solution?

Dropping a tantalizing hint is cruel. If there is a better solution, what is it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to boot Fedora 9 (Multiple OS's, hard drive reversal, grub confused) rcx11 Fedora - Installation 2 11-07-2008 08:56 PM
Fedora 9 - grub error 15 - unable to boot system jaideep.dhok Fedora 3 07-14-2008 06:21 PM
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 02:20 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 10:41 AM
Unable To Boot To Fedora When Grub Installed in /boot Partition FedoraNewbie Linux - Newbie 4 09-26-2006 04:46 AM


All times are GMT -5. The time now is 12:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration