LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2006, 12:10 PM   #1
eNtoS
Member
 
Registered: Feb 2006
Distribution: slackware, ubuntu, knoppix, backtrack, debian
Posts: 35

Rep: Reputation: 15
chkdsk


chkdsk is the windows tool for cheacking and repairing disk inconsistencies...

is there any similar tool under linux? (currently using suse10)
 
Old 04-09-2006, 12:16 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
Code:
fsck
is the Linux equivalent. Although it is more powerful.
 
Old 04-09-2006, 12:21 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
fsck ? but umount (at least mount read-only) FS first. Then run /sbin/fsck.<FS type> /dev/<node>
 
Old 04-09-2006, 12:52 PM   #4
eNtoS
Member
 
Registered: Feb 2006
Distribution: slackware, ubuntu, knoppix, backtrack, debian
Posts: 35

Original Poster
Rep: Reputation: 15
so if i want to "fsck" my hda4 (suse10 root) it is better to do it from hda2 (slackware10.2 root), rather than from suse itself?
 
Old 04-09-2006, 01:02 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
I think yes, as far as they have comparable versions of fsck. FSCK-ing partition from itself mounted RO - as far as I understand - is not a big problem, but if you can avoid it, avoid it. Don't forget to umount... Also if you have ext3 use fsck.ext3 to make it clearer you don't want ext2-only check on it.
 
Old 04-10-2006, 07:46 AM   #6
eNtoS
Member
 
Registered: Feb 2006
Distribution: slackware, ubuntu, knoppix, backtrack, debian
Posts: 35

Original Poster
Rep: Reputation: 15
i see you guys talking about ext2 and ~3... does it work with reiserfs?

edit... yes it does but how do i mount /dev/hda4 as read only?

Last edited by eNtoS; 04-10-2006 at 10:24 AM.
 
Old 04-10-2006, 12:51 PM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Boot from another partition, umount (to be sure) the one of interest and run fsck.reiserfs on it. All the rest mentioned are pitfalls which aren't (hopefully) waiting for you because of your rather nice system configuration.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help recovering from chkdsk.exe deletion of files? Lleb_KCir General 11 07-15-2005 12:30 PM
whats the "chkdsk /f" equivlent on linux ? perry Linux - Software 1 05-27-2004 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration