Click to See Complete Forum and Search --> : Opening ext2 partition


mxp
November 20th, 2005, 11:39 AM
Hello guys,
I have sucessfully open physical disk by using the CreateFile function and passing it the "\\.\\\\PHYSICALDISK1", but this methods opens a whole disk. I want to open an ext2 partion, given me disk number and partition number how can I do that???

Remember I am coding a software so I cannot use an already programmed driver, or software. In short I have to look up partitions in MBR, can some one provide me some document on format of MBR, or a piece of code that can enumrate partitions. (They must be window independent function)

NoHero
November 20th, 2005, 11:56 AM
EXT2 is a Linux partition type and thus not naturally supported by Windows. You need a file system driver to access such partitions.

rxbagain
November 20th, 2005, 11:32 PM
Reading the disk and loading/reading an EXT2 partition would be a task. Take look at Explore2fs (http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm). You cal also find more additional info there.

Hope it will help you