Announcement

Collapse
No announcement yet.

Broken disk?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Post-Install] Broken disk?

    On one of tree old PCs, after a week or so, the install is broken.

    It boots into:

    GNU GRUB version 2.14
    Minimal BASH-like line editing is supported
    ...
    ...''

    grub>
    When I do

    ls
    I get

    (hd0) (HD0,mscos|) (HD0,msdos2) (HD0, msds3) (hd0, mosdos4)
    But when I do

    ls (msdos0)
    I get
    Device hd0: No known filesystem detected - sector size 512B - Total size 488386584KiB
    And the PC will not boot from CD or USB, whatever I do in the BIOS.

    Is the disk bad? OR can I rescue this?


    #2
    You have to supply the entire path and there is no "msdos0". Only (msdos1), 2, 3, etc.

    So not "ls (msdos0), but "ls (hd0,msdos1)"

    Please Read Me

    Comment


      #3
      Not necessarily a bad disk. The fact that GRUB can still see the drive and its partitions is actually a good sign.

      A few observations: 1. The partition names are probably not what you're typing


      Your ls output should be something like:(hd0) (hd0,msdos1) (hd0,msdos2) (hd0,msdos3) (hd0,msdos4) , like oshunluvr​ said.
      GRUB partition numbering starts at 1, not 0.

      try :
      Code:
      ls (hd0,msdos1)/
      Code:
      ls (hd0,msdos2)/
      Code:
      ls (hd0,msdos3)/
      Code:
      ls (hd0,msdos4)/

      One of them may show directories such as:
      boot/
      etc/
      home/​
      or
      vmlinuz
      initrd.img​
      If so, the filesystem is still readable.
      next: Check whether GRUB can find Linux
      Code:
      search.file /boot/grub/grub.cfg
      or
      Code:
      search.file /grub/grub.cfg
      If it returns a partition, note it.

      then
      Code:
      set root=(hd0,msdosX)
      Code:
      configfile /boot/grub/grub.cfg

      (replace X with the partition found)
      If GRUB loads the menu, your installation may be completely intact and only the bootloader configuration is damaged.

      If every partition says "unknown filesystem" for all partitions, then possibilities include:
      Corrupted partition table
      Corrupted filesystem
      Failing hard drive
      Loose SATA cable (surprisingly common on old PCs)

      At that point I would strongly suspect disk trouble.
      ʟɨռʊӼ ʄօʀ ʟɨʄɛ

      Comment


        #4
        Originally posted by oshunluvr View Post
        You have to supply the entire path and there is no "msdos0". Only (msdos1), 2, 3, etc.

        So not "ls (msdos0), but "ls (hd0,msdos1)"
        Sorry, typo - it should read:

        Code:
        ls (hd90)

        Comment


          #5
          Originally posted by die.boer View Post
          Not necessarily a bad disk. The fact that GRUB can still see the drive and its partitions is actually a good sign.

          A few observations: 1. The partition names are probably not what you're typing


          Your ls output should be something like:(hd0) (hd0,msdos1) (hd0,msdos2) (hd0,msdos3) (hd0,msdos4) , like oshunluvr​ said.
          GRUB partition numbering starts at 1, not 0.

          try :
          Code:
          ls (hd0,msdos1)/
          Code:
          ls (hd0,msdos2)/
          Code:
          ls (hd0,msdos3)/
          Code:
          ls (hd0,msdos4)/

          One of them may show directories such as:
          boot/
          etc/
          home/​
          or
          vmlinuz
          initrd.img​ [/QUOTE)

          The same files, including /boot, / /home /etc are all partitions.

          (QUOTE)

          If so, the filesystem is still readable.
          next: Check whether GRUB can find Linux
          Code:
          search.file /boot/grub/grub.cfg
          or
          Code:
          search.file /grub/grub.cfg
          If it returns a partition, note it.

          then
          This does not find anything.

          Comment

          Users Viewing This Topic

          Collapse

          There are 0 users viewing this topic.

          Working...
          X