473,385 Members | 1,256 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.

Create and mount partitions

Hello,
I'm a student software developer.
As a part of an excerise I'm doing I'm trying to build a program to
create "mount files" and mount them.
Something like Sarah Dean's OTFE but really really basic, just to
create partitions and mount them. Nothing else.
All I want to do is be able to create a hidden partition inside an
existing partition (by providing an offset just like in FreeOTFE) and
be able to mount and dismount it.
Without anything else, no encryption, no other tools. Just that.

I downloaded Sarah's code, but it's in Delphi and I got really lost in
it. I hoped maybe someone here can help me and direct me. I already
sent her e-mail, but I got no reply.

I have no idea where to start with something like this, I wanna do in C
++.
But I have really hard time to start, I can't find proper
documentation in MSDN on how to do it, or available stuff on-line.

I hoped you can help me, give me a rough idea on what APIs I need to
use, I saw Sarah is using drivers, but for my basic needs I don't
think I need any drivers - what do you think? Do I need special
driver's to create and mount "hidden" partitions?

Please help me find some API or anything to get me started, even open-
source C++ app would help.

Thanks alot!
Michael

May 15 '07 #1
3 4837
On 15 Maj, 09:52, m.smith_1...@yahoo.com wrote:
Hello,
I'm a student software developer.
As a part of an excerise I'm doing I'm trying to build a program to
create "mount files" and mount them.
Something like Sarah Dean's OTFE but really really basic, just to
create partitions and mount them. Nothing else.
All I want to do is be able to create a hidden partition inside an
existing partition (by providing an offset just like in FreeOTFE) and
be able to mount and dismount it.
Without anything else, no encryption, no other tools. Just that.

I downloaded Sarah's code, but it's in Delphi and I got really lost in
it. I hoped maybe someone here can help me and direct me. I already
sent her e-mail, but I got no reply.

I have no idea where to start with something like this, I wanna do in C
++.
But I have really hard time to start, I can't find proper
documentation in MSDN on how to do it, or available stuff on-line.

I hoped you can help me, give me a rough idea on what APIs I need to
use, I saw Sarah is using drivers, but for my basic needs I don't
think I need any drivers - what do you think? Do I need special
driver's to create and mount "hidden" partitions?

Please help me find some API or anything to get me started, even open-
source C++ app would help.
First of all, where did you get the idea to ask this question here
when it basically has nothing to do with C++? Platform specific
questions should be asked in platform specific forums, you'll have
better luck in one of the microsoft.public.windows.* groups.

As to your question: I'm not familiar with OTFE but it sounds like a
method to mount the content of a file as a filesystem. Since I don't
know of any existing programs that does this I would suspect that
you'd have to write at least the file system driver (this can be quite
a task) or a driver which takes a file and makes Windows treat it like
a disk (in which case you can use the built-in filesystem drivers in
Windows.

As to hiding a partition, if you use normal PC partitions then you
can't hide one since they are made to be visible. So you would have to
create some partition scheme of your own and rewrite all that logic
too.

--
Erik Wikström

May 15 '07 #2
Erik Wikström a écrit :
On 15 Maj, 09:52, m.smith_1...@yahoo.com wrote:
>Hello,
I'm a student software developer.
As a part of an excerise I'm doing I'm trying to build a program to
create "mount files" and mount them.
[snip]

I have no idea where to start with something like this, I wanna do in C
++.
But I have really hard time to start, I can't find proper
documentation in MSDN on how to do it, or available stuff on-line.

I hoped you can help me, give me a rough idea on what APIs I need to
use, I saw Sarah is using drivers, but for my basic needs I don't
think I need any drivers - what do you think? Do I need special
driver's to create and mount "hidden" partitions?

Please help me find some API or anything to get me started, even open-
source C++ app would help.

First of all, where did you get the idea to ask this question here
when it basically has nothing to do with C++? Platform specific
questions should be asked in platform specific forums, you'll have
better luck in one of the microsoft.public.windows.* groups.
You can get a relevant list of newsgroups at:
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
As to your question: I'm not familiar with OTFE but it sounds like a
method to mount the content of a file as a filesystem. Since I don't
know of any existing programs that does this I would suspect that
you'd have to write at least the file system driver (this can be quite
a task) or a driver which takes a file and makes Windows treat it like
a disk (in which case you can use the built-in filesystem drivers in
Windows.
There is Explore2fs but it is in Delphi.
Part of the driver is in C, you can have a look:
http://www.chrysocome.net/downloads/
As to hiding a partition, if you use normal PC partitions then you
can't hide one since they are made to be visible. So you would have to
create some partition scheme of your own and rewrite all that logic
too.
My windows sometimes looses a partition or two. I could expect to be
able to hide one :)

Michael
May 15 '07 #3
m.**********@yahoo.com schrieb:
Hello,
I'm a student software developer.
As a part of an excerise I'm doing I'm trying to build a program to
create "mount files" and mount them.
[...]
I downloaded Sarah's code, but it's in Delphi and I got really lost in
it. I hoped maybe someone here can help me and direct me.
The device driver is written in C. Only the GUI components are written in
Delphi. There is also a similar project called TrueCrypt which is in C and C++.

If you want to create a real drive (with drive letter), you'll also need a
device driver. Ask in a windows device driver or kernel programming group.

--
Thomas
http://www.netmeister.org/news/learn2quote.html
May 15 '07 #4

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

Similar topics

7
by: Steve | last post by:
This post has two parts. First is my feedback on sets. (Hello? Last summer called, they want their discussion thread back...) Second is some questions about my implementation of a partition...
5
by: Nick J Chackowsky | last post by:
Wrote a python script to find the partitions of an integer (a list of all the ways you can express n as a sum of integers). For example, the partitions of 5 are 5 4+1 3+2 2+2+1 3+1+1 2+1+1+1...
3
by: RunLevelZero | last post by:
I need a way to detect hard drives and their partitions... labels would be nice too... I did some googling but did not find anything all too useful. This will strictly be on Linux / Unix so any...
2
by: Tooraj | last post by:
I'm trying to build a ROLAP cube, which must be available for real-time updates. During processing of the cube in Analysis manager I get a 'Failed to create index'. I am using SQL Server 2000...
6
by: Jack Li | last post by:
Hi All, I have DB2 EEE 7.2 12 db partitions running on AIX 5.1ML5 P690( one server). The AIX workload manager is on. I started the same peoplesoft job on all 12 nodes at the same time. But some...
3
by: jcgeorge | last post by:
I have a Windows DPF (v8.2.2) environment. 2 Nodes 5 Partitions Server1 - Cat (0) Data (1) Data (2) Server2 - Data (3) Data (4) I want to use block-based IO, but I do not want the same size...
3
by: tguclu | last post by:
Hi there, I hope this is the right place for my question if not please accept my apologies. In my application I want to mount/umount file system. From GNU C Library Reference Manual, for...
6
by: onkar.n.mahajan | last post by:
int mount(const char *fs, const char *path, int mflag); int mount(const char *fs, const char *path, int mflag, const char *fstype, const char *dataptr, int datalen); I am not getting what...
5
by: firefighter17103 | last post by:
Hi All, I am new to MS Access 07, & do not know any VB, on a new business adventure. I am running Office07 on Vista Home Premium. Basically what I would like to do is create a database that I...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.