![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Dec 2005
Posts: 40
Rep Power: 0
![]() |
FAT creation
Does anyone have any tips of creating a FAT. Basically i'm trying to simulate a file system like in a USB stick or something and want to do this right.
The memory will be simulated by an array of 1024 blocks which can be either file data (bytes), directory data, or FAT data connecting the blocks of a file. However some blocks are special: Block 0 will be data about the whole file system Blocks 1 and 2 will be the FAT Block 3 will be the root directory. The rest of the blocks will be either data or directory. Any tips or pieces of code that'll help me out? Cheers. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
msdn.com is nice for code tips and snippets of code, but I don't think people will want to code this for you.
__________________
The world's first athletic computer geek! The home of PrProgramsStudios How not to post a question: <-- Please don't reply |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
While we're on the FAT topic,
I have this commpressed file that holds a file that's over 4GB. My computer, being FAT32 can't hold a file that's over 4GB. Is converting to NTFS the only solution in this case? Or is there another way around it? |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Navid, no I think it's the only way..
To OP (BungalowBill): Can you not format the drive to a FAT filesystem? Like in an OS. The FAT32 filesystem specification can be downloaded. You might find some information here.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#5 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#6 |
|
Hobbyist Programmer
|
So, I should covert to NTFS and then simply covert back to FAT32? Will I lose anything during the process?
|
|
|
|
|
|
#7 | |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3
![]() |
Quote:
|
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
|
Can't I use DOS though?
I found this command at: http://www.microsoft.com/technet/arc...eploy/fat.mspx CONVERT C: /FS:NTFS EDIT: My OS is WindowsXP Home, which i think is NT5. |
|
|
|
|
|
#9 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8
![]() |
You can't convert back like that, but yes, that'll work.
|
|
|
|
|
|
#10 |
|
Hobbyist Programmer
|
Alright thanks guys. And sorry BungalowBill, I didn't mean to hi-jack your thread.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|