I can't boot fedora. It shows (Repair filesystem):/#

Transfered from Linux Config Disqus comments:

I can’t boot fedora. It shows (Repair filesystem):/#

Hi,

First determine what partition are defined in your linux system using a command. This is only if your boot error message does not provide you with such information:

# fdisk -l

Alternativelyrun blkid command. The fdisk -l will show table like:


Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007c2f9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   296042495   148020224   83  Linux
/dev/sda2       296044542   312580095     8267777    5  Extended
/dev/sda5       296044544   312580095     8267776   82  Linux swap / Solaris

Please note that your output will be different. Once you have a partition name attempt to repair with fsck -y . For example:

# fsck -y /dev/sda1

will attempt to repair first partition. The -y option instructs fsck to automatically apply “yes” to any questions during repair process.

If the above does not fix your problem you could also try run fsck -Vy for more verbose output. Here is a list of error code that fsck may produce:

  • 0 - No errors
  • 1 - File system errors corrected
  • 2 - System should be rebooted
  • 4 - File system errors left uncorrected
  • 8 - Operational error
  • 16 - Usage or syntax error
  • 32 - Fsck canceled by user request
  • 128 - Shared library error

This should help you to further determine what your problem is.

Hope this helps

Lubos