Announcement

Collapse
No announcement yet.

How to run fsck or e2fsck (solved)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to run fsck or e2fsck (solved)

    I have an external backup drive (/media/Iomega500GB/ or dev/sdd NTFS file system) This is not my boot drive.

    Can fsck or e2fsck check an NTFS formatted drive? This drive was a gift and even though I reformatted it, I'd like to verify its integrity. I know I can do this in Windows but want to learn something.


    Dell Inspiron 531/AMD Athlon 64 X2 5000+ 4GB RAM/GeForce 6150SE nForce 430
    Kubuntu 16.04
    "I have a problem with the fact that they just make really 3rd rate products." Steve Jobs on Microsoft. From “Triumph of the Nerds"

    #2
    Re: How to run fsck or e2fsck

    Originally posted by ICMike

    Can fsck or e2fsck check an NTFS formatted drive?

    Not according to this: http://linux.die.net/man/8/e2fsck

    Try GParted -- right-click the partition and see whether it offers a check function (i.e. I don't remember).

    If that happens not to work, you might try this:

    Install the package "ntfsprogs", then use the command "sudo ntfsfix /dev/xxxn" to scan an ntfs filesystem, where xxxn is the device to scan (such as sda1).

    However, since NTFS is a Microsoft proprietary system, the method of choice would be this: http://kb.wisc.edu/helpdesk/page.php?id=5097

    Comment


      #3
      Re: How to run fsck or e2fsck (solved)

      Thanks. gparted has the option to "check" an NTFS partition or device once its unmounted. It only ran a couple seconds and provides a nice report too.


      GParted 0.5.1
      Libparted 2.2
      Check and repair file system (ntfs) on /dev/sdd1 00:00:03 ( SUCCESS )

      calibrate /dev/sdd1 00:00:00 ( SUCCESS )

      path: /dev/sdd1
      start: 63
      end: 976768064
      size: 976768002 (465.76 GiB)
      check file system on /dev/sdd1 for errors and (if possible) fix them 00:00:02 ( SUCCESS )

      ntfsresize -P -i -f -v /dev/sdd1

      ntfsresize v2.0.0 (libntfs 10:0:0)
      Device name : /dev/sdd1
      NTFS volume version: 3.1
      Cluster size : 4096 bytes
      Current volume size: 500105216512 bytes (500106 MB)
      Current device size: 500105217024 bytes (500106 MB)
      Checking for bad sectors ...
      Checking filesystem consistency ...
      Accounting clusters ...
      Space in use : 25624 MB (5.1%)
      Collecting resizing constraints ...
      Estimating smallest shrunken size supported ...
      File feature Last used at By inode
      $MFT : 3241 MB 0
      Multi-Record : 75633 MB 70
      $MFTMirr : 250053 MB 1
      Ordinary : 392138 MB 19123
      You might resize at 25623810048 bytes or 25624 MB (freeing 474482 MB).
      Please make a test run using both the -n and -s options before real resizing!

      grow file system to fill the partition 00:00:01 ( SUCCESS )

      run simulation 00:00:01 ( SUCCESS )

      ntfsresize -P --force /dev/sdd1 --no-action

      ntfsresize v2.0.0 (libntfs 10:0:0)
      Device name : /dev/sdd1
      NTFS volume version: 3.1
      Cluster size : 4096 bytes
      Current volume size: 500105216512 bytes (500106 MB)
      Current device size: 500105217024 bytes (500106 MB)
      New volume size : 500105212416 bytes (500106 MB)
      Nothing to do: NTFS volume size is already OK.

      real resize 00:00:00 ( SUCCESS )

      ntfsresize -P --force /dev/sdd1

      ntfsresize v2.0.0 (libntfs 10:0:0)
      Device name : /dev/sdd1
      NTFS volume version: 3.1
      Cluster size : 4096 bytes
      Current volume size: 500105216512 bytes (500106 MB)
      Current device size: 500105217024 bytes (500106 MB)
      New volume size : 500105212416 bytes (500106 MB)
      Nothing to do: NTFS volume size is already OK.

      ========================================
      Dell Inspiron 531/AMD Athlon 64 X2 5000+ 4GB RAM/GeForce 6150SE nForce 430
      Kubuntu 16.04
      "I have a problem with the fact that they just make really 3rd rate products." Steve Jobs on Microsoft. From “Triumph of the Nerds"

      Comment

      Working...
      X