LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-17-2003, 01:14 PM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
check linux partition


can anyone tell me how to check for disk error in my linux partition ext3.

what is the command that i can run to check for bad sector. and summaries the result whether the is a badsector or none badsector on my ext3 partition include the swap partition.?
 
Old 09-17-2003, 01:17 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
fsck -c /dev/hdx

However, the partition must be either unmounted OR remounted in RO mode. Easiest way I know of is to simply boot into rescue mode or use a LiveCD to do the checks.

Cool
 
Old 09-17-2003, 01:34 PM   #3
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
how is the output look like if it found a badsector on my drive?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I check whether I have a swap partition in Suse Linux 9.2 pro? pujolasdf Linux - Software 10 02-13-2005 05:24 PM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 05:47 AM
Linux dying at partition check at boot tonimontanna Linux - General 2 02-24-2004 04:21 PM
Linux halts at partition check before installation starts. KiLLaWaBBiT Linux - Hardware 13 08-20-2003 12:26 PM
Linux freezes on partition check Haldanite Linux - Laptop and Netbook 1 06-22-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:11 AM.

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