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-26-2006, 06:59 AM   #1
Jayaraghavendran
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
Regarding badblocks command in linux


Hi,

badblocks command in linux supports "-o" option in which the output is written into a file specified by the user.

Does anyone know the format of this file? A snapshot of the file contents when badblocks are found on the disk will help a lot.

I am writing a code to run badblocks and then read from this file and display the output to the user. Since my disk doesn't have any badblocks, each time i run the command nothing is written in the file. I don't have an idea as to how to parse the file for getting the number of badblocks.

Please help.

Thanks in advance.

Regards,
Jayaraghavendran.K
 
Old 04-26-2006, 07:49 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Its a simple text file, one block number per line. No headers.
Code:
456777
456779
456783
456789
657782
 
Old 04-27-2006, 03:17 AM   #3
Jayaraghavendran
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Hi,

Thanks a lot for your reply!!

Regards,
Jayaraghavendran.K
 
  


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
badblocks time linuxhippy Slackware 20 07-16-2005 11:48 PM
Badblocks check in Linux ssampurna Red Hat 5 02-28-2005 02:27 AM
Madrake Rescue - Badblocks command not found ggard Mandriva 0 01-26-2005 03:04 AM
Badblocks odd Linux - Software 1 06-03-2004 02:54 PM
Badblocks and using dd? sthemage Linux - General 1 12-26-2003 03:52 PM

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

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