Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. 666cartman

    Western Digital 80GB HD - Free Space Reported Incorrectly :-(

    Alright, second try: 80000MB/1024 = 78.125 GB (this is the way your os calculates it) 80000MB/1000 = 80GB this is the way the company is calculating it to say it is more do you understand that ? 1024Byte = 1KB 1024KByte = 1MB 1024MByte = 1GB
  2. 666cartman

    Pioneer DVD-ROM detected as CD-ROM

    It doesn't matter if it is recognized as cd-rom or dvd by your OS, because the only diverence between those two in the driver is the size of the media, try to put a dvd into it and mount it and you'll recognize that you can read the data
  3. 666cartman

    Western Digital 80GB HD - Free Space Reported Incorrectly :-(

    uups 78.125GB of course, sorry my fault ;)
  4. 666cartman

    Western Digital 80GB HD - Free Space Reported Incorrectly :-(

    I think it is because vendors divide by 1000 to get GB out of MB while your system devides by 1024. e.g: 80000MB/1000=80GB 80000MB/1024=78.125MB
  5. 666cartman

    make one float out of 2 integer

    i have 2 integersand want to make them to 1 float, eg: int i,j; i=3; j=234567323; float f=3.234567323
  6. 666cartman

    I'm trying to simulate animation in my program... need help....

    you could do such an thing with clearscreen and printf in a loop, but it'll look ugly and I think it is a bit of a silly idea doing such a thing without a header like curses.h ncurses.h (I don't know if they work on windows) or conio.h for msdos
  7. 666cartman

    Computer Locks Up

    does the problem only occur while using WinXP ? In other words after reinstalling xp have you tried another os ?
  8. 666cartman

    Get the size of an HD in Linux

    sorry, i just forgot to enter the close in the post it is in my real prog, also are the params, i just posted a real slim code fragment, sorryy anout that
  9. 666cartman

    Get the size of an HD in Linux

    I finally found the solution: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <linux/fs.h> #include <sys/ioctl.h> #include <linux/hdreg.h> void main () { int fd...
  10. 666cartman

    sys/ioctl.h

    i am looking for a good man/tutorial or information about the functions of sys/ioctl, is it possible to get information about a device with this header ?
  11. 666cartman

    hdparm source

    any idea where i can find the source of &quot;fd&quot; too ?
  12. 666cartman

    Size of Harddisc

    any idea where i can find the source of fd ?
  13. 666cartman

    hdparm source

    thx, that'll help
  14. 666cartman

    hdparm source

    where can i find the source code of hdparm ?
  15. 666cartman

    Size of Harddisc

    i need a c-function that can get me the size of the hd, without using system(), via ftell and fseek i can determine the size of a file, but as soon as i try to use this on eg. dev/hda it all goes wrong, in my programm the file is opened via low-level i/o, it works perfectly as long as i open a...
  16. 666cartman

    Size of Harddisc

    How can i get the size of an HD on a Linux system ? I need it for an Benchmark program i am writing.
  17. 666cartman

    mount

    1: create a dir where you later want your win partition in: eg: mkdir /windows 2: mount it: mount -t vfat /dev/hdc /windows
  18. 666cartman

    Added SCSI HDD to my system =&gt; W2K does not boot any more !

    The only reason i can think of is a problem with the windows Bootmanager which hd is your boot device ?
  19. 666cartman

    Keep application after reformatting

    where there is a thought there is a way: I assume you have only one hd with one Partition in your pc: 1: get a copy (legal of course :) ) of partition Magic 7.x, 2: split you partition c into two 3: Save the programms on the new partition 4: remember to save the Regestry Information too ;) 5...
  20. 666cartman

    Harddisc Benchmark for LINUX

    Hello, At the moment i am trying to program a Harddisc Benchmark for Linux, my problem is how to get the size of the Harddisc and how to read it from block 0 to the very end of it end meassuring the speed. I tried it using fseek,lseek, but i am only able to determine the size of a file (this...

Part and Inventory Search

Back
Top