LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-19-2004, 08:35 AM   #1
ukrainet
Member
 
Registered: Nov 2004
Posts: 107

Rep: Reputation: 15
Question How to check up a disk on presence of mistakes - logic and physical?


How to check up a disk on presence of mistakes - logic and physical?
 
Old 11-19-2004, 09:21 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
Code:
fsck /dev/device
Mount the device read-only first.
 
Old 11-19-2004, 09:54 AM   #3
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
This is to check for bad block in a harddisk

Mount the device readonly first

mount -o remount,ro /dev/device

/sbin/badblocks -s -c 1024 -b 4096 -o /tmp/Output.bb /dev/device > status.log

Output will be present in /tmp/Output.bb

Note:e2fsck can also be used to check bad vlocks with the -c option

Cheers
Z
 
  


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 for physical errors on /dev/hda? Waerner Linux - Newbie 5 10-28-2005 10:54 AM
Determine physical disk size Kristijan Linux - General 4 01-23-2005 06:56 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM
Installing on more than one physical disk Squiddy Slackware 5 11-02-2003 12:50 PM
how to detect floppy presence Shirley Linux - General 1 05-15-2002 08:14 AM


All times are GMT -5. The time now is 08:59 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration