Click here to Skip to main content
15,912,457 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DOS virtual disk Pin
Low_Level24-Mar-10 7:39
Low_Level24-Mar-10 7:39 
GeneralRe: DOS virtual disk Pin
Spawn@Melmac24-Mar-10 8:31
Spawn@Melmac24-Mar-10 8:31 
GeneralRe: DOS virtual disk Pin
Low_Level24-Mar-10 9:36
Low_Level24-Mar-10 9:36 
QuestionPGPDisk 6.02 - Compilation Errors Pin
Low_Level14-Mar-10 6:22
Low_Level14-Mar-10 6:22 
QuestionBoot manager functionality Pin
Low_Level14-Mar-10 6:05
Low_Level14-Mar-10 6:05 
QuestionFreeDOS Scandisk - Compilation Errors for C++ code Pin
Low_Level14-Mar-10 5:42
Low_Level14-Mar-10 5:42 
QuestionFreeDOS Defrag - Compilation Errors Pin
Low_Level14-Mar-10 5:40
Low_Level14-Mar-10 5:40 
QuestionScandisk or Defrag functionality Pin
Low_Level14-Mar-10 5:38
Low_Level14-Mar-10 5:38 
Hi
I'm looking to write a partition cloning utility,
much like Norton Ghost in the sense of being able
to copy only the USED sectors from one partition
to another.

I'd like for that utility to be able to work
mostly with FAT32 formats, even though NTFS
and/or EXT2 or EXT3 (f/Linux) would be nice too Smile | :)



1. Programming background:

- I've had a bit of C/C++ programming experience,
but my Pascal skills are better.

- I'm not exactly familiar with Assembly language,
but if some Assembly code were to find its way
into a C/C++/Pascal wrapped function, using a
technique called 'inline Assembly' (I think) and
all parameters and/or function results were to be
passed in or returned in the hosting high level
language, that'll work Smile | :)



2. Problems:

- how do I read a hard drive's FAT, in order to find out
which sectors are used and which ones aren't?

+ My idea for my utility is to be able to tell that, right
upon startup - much like what Microsoft's MSDOS Scandisk
does when it's ready to do its surface scan - where
there's a nice form (or window) appearing on screen,
and a whole bunch of differently colored columns are
in it, representing the examined disk's data layout.

+ Obviously it has to be done very quickly; I know I
could scan sector by sector, but the downside is
that it may take forever if there's a large partition
that is mostly empty.

- Another problem is an option that I'd like to add in,
which would have to do with displaying, and perhaps
catalogging all filenames and pathnames that get
read along the way, during a clone. If I were to refer
to Norton Ghost again, then it has a command line switch
allowing the user to generate some sort of a filename list.


3. Available source codes:

- I've checked out FreeDOS Defrag and Scandisk,
where both utilities were written in C or C++
plus another Scandisk version written in Turbo Pascal.

- Unfortunately, the two C/C++ utilities didn't even compile;
The Pascal version, however, did.

- I booted the PC via some BootCD with Win98 system files
and attempted to run FreeDOS Scandisk on pure MSDOS mode,
but, unfortunately it would report my either FAT32 partitions
as non-DOS disks.


Any ideas on how clone USED sectors only?
Thanks in advance
LL
AnswerRe: Scandisk or Defrag functionality Pin
ThatsAlok14-Mar-10 19:19
ThatsAlok14-Mar-10 19:19 
GeneralRe: Scandisk or Defrag functionality Pin
Low_Level18-Mar-10 23:22
Low_Level18-Mar-10 23:22 
Questionthe dll and lib files in OpenCV Pin
Ahmed Ismail Mohamed14-Mar-10 5:36
Ahmed Ismail Mohamed14-Mar-10 5:36 
AnswerRe: the dll and lib files in OpenCV Pin
Tim Craig14-Mar-10 15:40
Tim Craig14-Mar-10 15:40 
GeneralRe: the dll and lib files in OpenCV Pin
Ahmed Ismail Mohamed15-Mar-10 9:27
Ahmed Ismail Mohamed15-Mar-10 9:27 
GeneralRe: the dll and lib files in OpenCV Pin
Tim Craig15-Mar-10 22:27
Tim Craig15-Mar-10 22:27 
QuestionTrueCrypt 6.3a - Compilation Errors Pin
Low_Level14-Mar-10 5:25
Low_Level14-Mar-10 5:25 
QuestionCMFCRibbonButton with custom width Pin
A&Ms13-Mar-10 19:45
A&Ms13-Mar-10 19:45 
AnswerRe: CMFCRibbonButton with custom width Pin
Eugen Podsypalnikov14-Mar-10 20:44
Eugen Podsypalnikov14-Mar-10 20:44 
QuestionRe: CMFCRibbonButton with custom width Pin
A&Ms15-Mar-10 8:01
A&Ms15-Mar-10 8:01 
QuestionGeneric stack library in c Pin
amitalonm13-Mar-10 14:12
amitalonm13-Mar-10 14:12 
AnswerRe: Generic stack library in c Pin
Nemanja Trifunovic13-Mar-10 14:44
Nemanja Trifunovic13-Mar-10 14:44 
AnswerRe: Generic stack library in c PinPopular
«_Superman_»13-Mar-10 17:04
professional«_Superman_»13-Mar-10 17:04 
AnswerRe: Generic stack library in c Pin
ThatsAlok14-Mar-10 19:20
ThatsAlok14-Mar-10 19:20 
Question"Virtual" Command Prompt Pin
hxhl9513-Mar-10 9:29
hxhl9513-Mar-10 9:29 
GeneralRe: "Virtual" Command Prompt Pin
hxhl9513-Mar-10 10:52
hxhl9513-Mar-10 10:52 
AnswerRe: "Virtual" Command Prompt Pin
Hristo-Bojilov13-Mar-10 11:39
Hristo-Bojilov13-Mar-10 11:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.