Find the answer to your Linux question:
Results 1 to 5 of 5
Hi I have 1TB USB disk formatted to ext3, I executed: e2fsck -p -v /media/disk and it showed me this, I dont know what does it mean? r-c r-c # ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    How to repair ext3 fs on USB disk?


    Hi I have 1TB USB disk formatted to ext3, I executed:
    e2fsck -p -v /media/disk
    and it showed me this, I dont know what does it mean?

    r-c r-c # e2fsck -p -v /dev/sda1
    WD1TB contains a file system with errors, check forced.
    Error reading block 135734817 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 67862530.

    WD1TB: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
    (i.e., without -a or -p options)

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763

    Exclamation

    It shows the system is not properly shutdown (or unmounted).
    Try running,
    fsck /dev/sda1
    It may prompt you with questions,just press yes,most often fsck will take care of it.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    re

    disk has 1TB and I have no other 1TB disk
    just now I executed fsck /dev/disk
    it has been showing me a lot of read errors and asks me to owervrite:
    Error reading block 162038050 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes

    Force rewrite<y>? yes

    Error reading block 162038051 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes

    Force rewrite<y>? yes

    Error reading block 162038052 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes

    Force rewrite<y>? yes

    Error reading block 162038053 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes

    Force rewrite<y>? yes

    Error reading block 162038054 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes

    Force rewrite<y>? yes

    Error reading block 162038055 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>? yes

    Force rewrite<y>? yes

    Can you tell me what fsck do when I press yes on error question?
    Is that good solution or is any better?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    fsck /dev/disk
    Remember give specific device name,

    not just
    fsck /dev/sda
    I should be like

    fsck /dev/sdaX
    Replace X with appropriate number,In your case it looks like
    sda1

    Quote Originally Posted by rado3105 View Post
    Can you tell me what fsck do when I press yes on error question?
    Is that good solution or is any better?
    When you Press Yes - fsck will try to fix the problem on it's own.
    In your case, it looks like while scanning inodes you are getting errors may be due to bad blocks.

    try fixing it-fsck will pass through different stages-,at the end you will see message like

    **** FILE SYSTEM WAS MODIFIED *****
    653/32014336 files (6.0&#37; non-contiguous), 60991937/64000944 blocks

    Check these links which will give you more informations,

    Arch Linux Forums / Questions about fsck

    Error occured during the file system check. - *nix Software
    Errors with Linux file system - *nix Hardware Configuration

    http://www.linuxforums.org/forum/lin...fsck-help.html

    All the best
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  6. #5
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    re

    BEFORE ANYTHING I CHANGED THE INIT FROM 3 TO 1.
    It helped this command:
    fsck.ext3 -y /dev/disk
    it is important to write type of filesystem, because if there is nothing written can be done more damage like without running fsck.
    -y means answear on every question yes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •