GRUB "Error 2: Bad file or directory type" 0.97 won

You can see the problem below, GRUB recognizes my hard drive and sees the partitions but cannot access them.  This is from the GRUB boot disc I'm using.

What happened is that I had some power issues causing this system's power to be interrupted several times and basically an on/off on/off situation.

The system won't boot, I just get a flashing cursor and no message or error from GRUB.  Obviously the problem is that my MBR seems corrupt or some other issue.

My filesystem is ext3 and running fsck does not find any errors.  I'm stumped, this system won't boot and I can't even use GRUB to repair the MBR.  The data seems fine, the BIOS of course recognizes the HDD and I can mount all partitions without any difficulty.

 *Update

I was able to get my system to boot, it seems that maybe running the fsck did fix something.  I also believe there are differences between some GRUB versions, although both my boot CD and GRUB on my OS show .97, the boot disc was not able to read anything on the partition.  This is still very strange and I'm not sure why things changed and suddenly worked.

It seems this was caused by the 256 byte inode issue reported here: http://www.linuxplanet.com/linuxplanet/tutorials/6480/1/

But still, both versions are .97 but I assume the one on the OS partition is patched or updated to support the 256 byte inodes.  This is a very silly move on the part of the EXT3 filesystem maintainers and it would also be nice for GRUB to release an update to support this new style of inodes on EXT3 and EXT4 systems.

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub> root (hd0,0)/
Error 2: Bad file or directory type

grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 1,  Filesystem type unknown, partition type 0x83
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 3,  Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,

 


Tags:

grub, directory, wonyou, recognizes, partitions, disc, interrupted, flashing, cursor, mbr, corrupt, filesystem, ext, fsck, errors, stumped, repair, bios, hdd, mount, difficulty, update, differences, versions, os, partition, byte, inode, reported, http, www, linuxplanet, tutorials, patched, updated, inodes, maintainers, gnu, minimal, bash, editing, supported, tab, lists, completions, filename, hd, num, fs,

Latest Articles

  • Flash LSI MegaRAID 2208 to IT mode in Linux Mint/Debian/Ubuntu
  • LSI MegaRAID in Linux Ubuntu / Centos Tutorial Setup Guide megacli
  • Convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/413. convert-im6.q16: no images defined `pts-time.jpg' @ error/convert.c/ConvertImageCommand/3258. solution ImageMagick P
  • Apache PHP sending expires header solution cannot use cache with CDN
  • How to install virt-manager in Mint 22/Ubuntu 22
  • Infiniband Guide
  • python mysql install error: /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found mysql_config --version
  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide
  • Linux Ubuntu Redhat How To Extract Images from PDF
  • Linux and Windows Dual Boot Issue NIC Won't work After Booting Windows
  • Cisco CME How To Enable ACD hunt groups