LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-28-2005, 02:28 PM   #1
SlipAway172
Member
 
Registered: Jun 2004
Location: GA
Distribution: Latest ubuntu
Posts: 172

Rep: Reputation: 30
how to check disk


my STUPID brother pulled the power from mandrake while firefox was downloading solaris. i would like to know is there a command that will scan the disk for corrupt parts.
 
Old 02-28-2005, 02:40 PM   #2
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
Well that can sometimes depend on what File System you are using, but for the most part the command fsck does the trick. Now this is normally ran at startup, but if you would like you can run it again, but keep in mind that it is normally a good idea to umount the partition before checking the filesystem on it. Here is the syntax if you would like to do this, even after it is done at startup:

#umount /dev/hd?(the ? being whatever your partition # is.)
#fsck -f /dev/hd?

that should do the trick for you.
 
Old 03-01-2005, 03:16 AM   #3
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Mandrake usually tries to repair the system upon the next boot if needed.

You should really use a Journalling file system, such as ext3 or reiserfs for your Mandrake partitions.

If you do, you rarely have to worry about corruptions due to power outages as (usually) Mandrake will replay the journal restoring the HDD to health while preserving your files.

Still it's NEVER a good idea to cut power...
 
  


Reply



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
Check disk space used in a directory cli_man Linux - General 5 03-13-2009 03:28 PM
Program to check whether a disk is in a drive? g4c9z Linux - Software 16 08-28-2004 09:11 AM
Disk check question XPediTioN Slackware 2 06-23-2004 09:07 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM
Forced disk check nabil Linux - General 7 05-25-2001 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:19 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