473,385 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

check if disk is corrupt

Hello,
is there any way i can know if the disk is corrupt using either C or C+
+, under both windows or linux,

Thankx

May 13 '07 #1
2 1757
yazwas wrote:
Hello,
is there any way i can know if the disk is corrupt using either C or C+
+, under both windows or linux,
By calling something platform and filesystem specific with system().
Try a platform specific group for the gory details.

--
Ian Collins.
May 13 '07 #2

Ian Collins <ia******@hotmail.comwrote in message
news:5a*************@mid.individual.net...
yazwas wrote:
Hello,
is there any way i can know if the disk is corrupt using either C or C+
+, under both windows or linux,
By calling something platform and filesystem specific with system().
Try a platform specific group for the gory details.
- - Ian Collins.
<OT>
OP: Maybe, head on over to gnu.org and search for "S.M.A.R.T.". Seems I saw
something in the "hdparm" docs about disk failures. Also, don't forget to
check the drive mfg site for utilities. File system corruption is a whole
new ballgame! <G>

[ Thanks for the use of your post, Ian. I didn't load the orig. <G]
--
Bob R
POVrookie
May 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mark4asp | last post by:
Hello, Is there a simple way to check whether a database driver is available on a remote server? I only have ftp access so I can only run ASP scripts. An ASP application on a host has...
5
by: Vinay | last post by:
Hi I have a corrupt word file. I am able to open it with the code given below tr Dim pInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo( pInfo.UseShellExecute...
9
by: Jon LaBadie | last post by:
Suppose I'm using stdio calls to write to a disk file. One possible error condition is no space on file system or even (in unix environment) a ulimit of 0 bytes. Which calls would be expected to...
2
by: Keith | last post by:
A2k3 Win XP Pro. I have a BE on a Win 2003 server which started giving the above error this morning. Now I can't connect to it at all. This behaviour is limited to one folder on the server, I...
10
by: kevinliu23 | last post by:
HI, I am new to Python and wanted to know how to check for the remaining disk space on my Windows machine using Python? I was thinking of using the command line "dir" and trying to extract the...
0
by: =?Utf-8?B?dG9ueSBhZGR1Y2k=?= | last post by:
Hello, I have been getting lucallbackproxy.exe messages that say my disc is corrupt and to run a checkdsk on the local hard drive. I do this and restart the pc and it is fine then for a few weeks....
0
by: trazcure | last post by:
Hi everyone, my name is Traz I'm trying to write some C# code that will check for remote disk space on network shares. I have seen across the internet and MSDN that you can utilize the...
4
by: sunfeifei | last post by:
Your job is to write a C++ program that reads in a matrix and checks if it has the parity property. If not, your program should check if the parity property can be established by changing only one...
6
by: James Yang | last post by:
"bad page", especially in table, is a risk for database maintenance. The particular access attempt for corrupt blocks may not occur often, and corrupt DB2 blocks are not recognized during a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.