LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03: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, 03: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, 04: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


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


All times are GMT -5. The time now is 08:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration