lost disk

This is a discussion on lost disk within the Linux Programming forums, part of the Platform Specific Boards category; My disk is not totaly lost. There is data writen on it but because I started to format a disk ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    161

    lost disk

    My disk is not totaly lost. There is data writen on it but because I started to format a disk then I canceled it when it just started I can't go back to the disk. Maby some data in the disk is not lost (all there is are important documents written in unicode format.) I want to read the bytes from the disk and then just do some copy and pasteing to recreate those files.

    Before starting this project Iam new to Linux. What tools/compilers is there to code in C/C++?

    Thanx in advance!

  2. #2
    Registered User
    Join Date
    Jan 2004
    Posts
    24
    Gcc http://gcc.gnu.org/ is a popular compiler and comes with most if not all disributions. Gcc can compile c,c++ and a variety of other languages. KDevelop and anjuta are two popular development environments.

    Mike

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    Thanx very much. I now know how to create a very simple GUI. I need to know 2 more things so I can restore what I can from my disk.

    1. I need to know how I may read bytes of a disk. I tryed searching but I get tutorials for using functions to read files and do things with files. But I accedently tempered with the filesystem on the disk, thus I can't use those funtions to access my disk. So how can I read the bytes on a disk?

    2. I want to put the information that I have collected from the disk to somewhere in memory so I can press CTRL+V to paste it all in a text editor and sort the data my self using copy and past functions in a text editor.

    Thanx in advance!

  4. #4

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    Thank you very much. I am able to access my hardrive like that. But How do I access my floppy drive. I tryed for the first parameter to be "/mnt/floppy" but it accesses my hardrive.

    Thanx in advance!

  6. #6
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    thank you very much. My files are still alive. The file system is corrupted but the files data are still there.

    I want to copy the files data to memory so I can copy and paste it to a text editor and save it again. How can I copy it through code to the "clipboard" so I can press CTRL+V and paste it to a text editor like kwrite and then save?

    Thanx in advance!

  7. #7
    Registered User
    Join Date
    Jan 2004
    Posts
    24
    I'm not really sure you can but you could use a temporary file and go from there.

    Mike

  8. #8
    Registered User
    Join Date
    Nov 2003
    Posts
    161
    Thanx very much. I wrote it to a file and opened it all in a text editor. Now all I have to do is Copy & Paste .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Disk failure in 3 disk RAID0 & 5?
    By cpjust in forum Tech Board
    Replies: 12
    Last Post: 12-22-2008, 10:09 AM
  2. Formatting Output
    By Aakash Datt in forum C++ Programming
    Replies: 2
    Last Post: 05-16-2003, 09:20 PM
  3. Towers of Hanoi, special output.
    By spoon_ in forum C Programming
    Replies: 3
    Last Post: 03-15-2003, 06:08 PM
  4. Strange hard disk
    By GanglyLamb in forum Tech Board
    Replies: 20
    Last Post: 03-01-2003, 04:05 AM
  5. Direct disk access in DOS
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-26-2002, 02:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21