Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Run CHKDSK in Linux?

  1. #1
    Join Date
    Jan 2007
    Posts
    456
    Rep Power
    0

    Angry Run CHKDSK in Linux?

    In windows im used to run chkdsk /?. How do i do the same in linux? I want to attached a usb hdd and check it. is that possible?
    Just an average web developer.

  2. #2
    Join Date
    Aug 2002
    Posts
    6,223
    Rep Power
    0

    Default

    Use fsck (file system check) command.
    http://en.wikipedia.org/wiki/Fsck
    .
    PC - Ubuntu 15.04 64bit Desktop
    HP Pav G60-236US 3GB RAM Laptop, Ubuntu 15.04 64bit and Win7 Home

    "So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"


    RIP Ramesh ...

  3. #3
    Join Date
    Jan 2007
    Posts
    456
    Rep Power
    0

    Default

    Quote Originally Posted by ramesh View Post
    Use fsck (file system check) command.
    http://en.wikipedia.org/wiki/Fsck
    Ok. If I should attached a usb hdd to my laptop, what command I should use for it to check that drive?
    Just an average web developer.

  4. #4
    Join Date
    Sep 2003
    Posts
    2,849
    Rep Power
    0

    Default

    man fsck

    that will give u the instructions on how to use the command, notice you may need sudo priveleges to run the command.
    starry heavens above and the moral law within
    Open source!
    dmitridawkins.com

  5. #5
    Join Date
    Jan 2007
    Posts
    456
    Rep Power
    0

    Default

    Im new to linux yow. nuh mek it suh bad starr. I dont want to check my primary hdd. I connected a usb hdd and I want to check it. "fsck" does not tell me how to do that.
    Just an average web developer.

  6. #6
    Join Date
    Nov 2002
    Posts
    2,231
    Rep Power
    0

    Default

    Quote Originally Posted by Daveyon View Post
    Im new to linux yow. nuh mek it suh bad starr. I dont want to check my primary hdd. I connected a usb hdd and I want to check it. "fsck" does not tell me how to do that.
    thats exactly why he told u that particular command...

    wen u go to terminal and type in "man fsck" and you will get a manual on using the fsck command and then from that you'll understand how to do the check.

    However just to make it a little easier for you the command would be something like

    Code:
    fsck /dev/sda1
    except you replace sda1 with usb1

    or also try

    Code:
    fsck /etc/media/drivename
    though that second command i'm not too sure about, however theoretically it should work

    Remember 'man' though, it is your friend within the command line.
    Last edited by Skillachi; Nov 16, 2008 at 07:40 PM.
    Laptop: HP DV6700t - Core 2 Duo T9300 2.5Ghz, 3GB RAM, Nvidia 8400m GS, 250GB HDD. Ubuntu 12.04 and Windows 7
    Phone: Samsung Galaxy Nexus

  7. #7
    Join Date
    Aug 2002
    Posts
    6,223
    Rep Power
    0

    Default

    Quote Originally Posted by Daveyon View Post
    Im new to Linux yow. nuh mek it suh bad starr. I dont want to check my primary hdd. I connected a usb hdd and I want to check it. "fsck" does not tell me how to do that.
    When he mentioned man fsck, he meant you should open up the terminal program (command line box) and type that command to see the manual page for the fsck command. You would get something like this:
    http://www.manpages.com/man/fsck/
    .
    PC - Ubuntu 15.04 64bit Desktop
    HP Pav G60-236US 3GB RAM Laptop, Ubuntu 15.04 64bit and Win7 Home

    "So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"


    RIP Ramesh ...

  8. #8
    Join Date
    Jan 2007
    Posts
    456
    Rep Power
    0

    Default

    O! Ok. Ill try it out after I finish watching Saw 5. LOL
    Just an average web developer.

  9. #9
    Join Date
    Jan 2007
    Posts
    456
    Rep Power
    0

    Default

    Nov/17/08: I dont think that fsck can check a windows partitioned hdd in linux. But i managed to installed xp in vmware and deal with it.
    Just an average web developer.

  10. #10
    Join Date
    Sep 2003
    Posts
    2,849
    Rep Power
    0

    Default

    by windows partitioned you mean ntfs or fat32? I know it can do fat32, and i beleive there is fsck.ntfs for ntfs partitions. As specified in the man page for fsck you need to declare the filesystem type with use


    I am not trying to be difficult, but sometimes jus giving the answer is not the best thing, especially when someone is trying to do something out of the norm, after you research it and complete the tasks you would have learned so much more including how to do it, vs. copying and pasting a command
    starry heavens above and the moral law within
    Open source!
    dmitridawkins.com

Posting Permissions

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