LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2008, 11:23 PM   #1
centguy
Member
 
Registered: Feb 2008
Posts: 627
Blog Entries: 1

Rep: Reputation: 48
Error 2: Bad file or directory type


I have a triboot machine (windowsxp,centos5.2,and Fedora 9).
I have been using FC9's grub bootloader to boot to any system without
any problem.

Today I single-mode logon to centos5.2 and type grub
and then "root (hd0,3)" and "setup (hd0)" in order to use the CentOS5.2
boot loader.

When I reboot the computer, I cannot boot to Fedora 9 any more:
error message is this :


Quote:
root (hd0,2)
Filesystem type is ext2fs, partition type Ox83
kernel /boot/vmliuz-2.6.27-5-41.fc9.86_64 ro root=UUID=df8a58d-9835-4270-6219=f4d1c22e3c60 rhgb quiet

Error 2: Bad file or directory type
Press any key to continue...
Luckily I can still boot to CentOS5.2 or WindowsXP.
The menu list (with the entry copied from the Fedora 9)
is
Quote:

[root@centos52-64-fuj ~]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,3)
# kernel /boot/vmlinuz-version ro root=/dev/sda4
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=20
splashimage=(hd0,3)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.el5) /dev/sda4
root (hd0,3)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/12 rhgb quiet noapic
initrd /boot/initrd-2.6.18-92.el5.img
title WindowsXP
rootnoverify (hd0,0)
chainloader +1
title Fedora (2.6.27.5-41.fc9.x86_64) "yum update"
root (hd0,2)
kernel /boot/vmlinuz-2.6.27.5-41.fc9.x86_64 ro root=UUID=df8a580d-9835-4270-b219-f4d1c22e3c60 rhgb quiet
initrd /boot/initrd-2.6.27.5-41.fc9.x86_64.img
title Old Fedora (2.6.25-14.fc9.x86_64)
root (hd0,2)
kernel /boot/vmlinuz-2.6.25-14.fc9.x86_64 ro root=UUID=df8a580d-9835-4270-b219-f4d1c22e3c60 rhgb quiet
initrd /boot/initrd-2.6.25-14.fc9.x86_64.img
[root@centos52-64-fuj ~]#
If I cannot boot to Fedora 9, it means I am going to lose it (I cannot locate my FC9 Installation DVD)..

Thanks for the help.
 
Old 12-13-2008, 01:04 AM   #2
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Why does not

Quote:

root (hd0,2)
chainloader +1

work ??
 
Old 12-13-2008, 03:35 AM   #3
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
[root@centos52-64-fuj boot]# cp /sda3/boot/vmlinuz-2.6.27.5-41.fc9.x86_64 /boot
[root@centos52-64-fuj boot]# cp /sda3/boot/initrd-2.6.27.5-41.fc9.x86_64.img /boot
and revise menu.lst

and now it works !!!
 
Old 12-13-2008, 09:27 AM   #4
centguy
Member
 
Registered: Feb 2008
Posts: 627

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Since Fedora folks' responses are better. I shall concentrate the discussions here:
http://forums.fedoraforum.org/showth...=1#post1130579
 
  


Reply



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 error 2: bad file or directlry type sherm Linux - Software 3 05-30-2009 01:15 AM
grub 'Error2: Bad file or directory type' percy_vere_uk Linux - Newbie 2 10-05-2008 06:53 AM
Error:bad ELF interpreter : No such file or directory vicky_me Red Hat 1 03-21-2007 05:29 AM
wrong fs type ,bad option, bad superblock on /dev/hda3, or too many mounted file syst Vencalator Linux - Newbie 4 09-20-2003 01:58 PM
wrong fs type, bad option, bad superblock on /dev/cdrom, or too many mounted file sy TheCyberDude Linux - Software 1 02-11-2002 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration