LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-18-2008, 10:07 AM   #1
Scandaglio
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Rep: Reputation: 0
grub does not like my partitioning: Error 2


I wonder if there is an easy way to solve this.
Maybe my initital mistake was when I installed linux (Mandriva)
on a primary partition quite some time ago...

To make room for a new distro for testing I repartitioned,
with parted or diskdrake - I do not remember - and installed some
new distro on the newly created ext3 partition.

It looks like this now:
# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x48d8907c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 7296 58605088+ 7 HPFS/NTFS
/dev/sda2 7297 11868 36724590 7 HPFS/NTFS
/dev/sda3 11869 13194 10651095 5 Extended
/dev/sda4 13195 14593 11237467+ 83 Linux
/dev/sda5 11869 13063 9598774+ 83 Linux
/dev/sda6 13064 13194 1052226 82 Linux swap

Windows (on sda1) and Mandriva (on sda4) boot and run just fine.
I can mount sda6 and access its contents (from Mandriva).
However, grub does not me boot the Fedora on sda6:
# grub
Probing devices to guess BIOS drives. This may take a long time.
grub> root (hd0,4)
Filesystem type is ext2fs, partition type 0x83

grub> kernel /boo
Error 2: Bad file or directory type

Is there a way out w/o deleting partitions 4,5 and 6 and restarting from
scratch by installing in secondary partitions?

Last edited by Scandaglio; 09-18-2008 at 10:11 AM.
 
Old 09-18-2008, 11:41 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
No you should not have to start over but I am a little confused, you say windows and mandriva boot fine. Do you boot windows and mandriva from the same grub menu.lst.
 
Old 09-18-2008, 12:30 PM   #3
Scandaglio
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Yes Larry, both are booted from boot/grub/menu.lst on sda4.
The menu also holds an entry for Fedora, with


title fedora
kernel (hd0,4)/boot/vmlinuz-2.6.25-14.fc9.i686 BOOT_IMAGE=fedora root=/dev/sda5 vga=790
initrd (hd0,4)/boot/initrd-2.6.25-14.fc9.i686.img

but that one fails with the "Error 2" mentioned earlier.

By the way, I have also tried Mandriva 2009 on that partition,
with the same problem.
Oh, I think I have grub in the MBR.
 
Old 09-18-2008, 01:45 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Check out this solution and see if it does not fit your situation. It is your bios and not your grub installation, you will find the solution about halfway down the thread.
 
Old 09-18-2008, 04:54 PM   #5
Scandaglio
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Larry,

Sorry, I do not understand which *this solution* or halfway down which thread.
Never considered my BIOS: PhoenixBIOS on a Toshiba Satellite Pro, cannot find version info.
 
Old 09-18-2008, 06:06 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,827

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
part of the problem might be fedora9's grub uses a 256 bit inode , the others use a 128 bit
by chance did you NOT install the fedora9 grub in sda5 /boot
also fedora by default will put grub in mbr sda1

-- OR and most likely --
the problem may be that grub dose not work on a lvm /boot must be a ext3 but all of sda5 is lvm
so repartition sda5 and 6 into
sda5 /boot ext3 100meg
sda6 swap ~ 2 to 3gig
sda7 / the rest of the disk ( no format if you want to use LVM) or ext3
personally i hate lvm and have not used it since fedora5
 
Old 09-20-2008, 04:57 AM   #7
Scandaglio
LQ Newbie
 
Registered: Sep 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the suggestions, but I have now admotted defeat and repartitioned with Parted Magic.
Removed primary sda4 and logical sda5/6, grown extended sda3 to the remaining space,
created new logical partitions within sda3 and re-installed.
Not understanding what exactly was the problem irks me, but I needed to move on.
And it works.
 
  


Reply

Tags
grub, partition


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
Grub & partitioning Necromuru Linux - Software 1 12-22-2007 02:10 PM
grub missing.. -or bad partitioning? MrFixit Linux - General 11 08-29-2007 03:27 AM
Question about Partitioning and GRUB blueobsession Linux - General 6 06-13-2007 01:47 PM
dualboot FC4/winXP grub doesnot respond after partitioning p.s.georgoulia Fedora 2 10-12-2005 11:08 PM
error partitioning BaAa3 Linux - Newbie 6 03-07-2004 02:20 PM


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