nickdu088 / SharpExt4

A .Net library to provide full access (read/write) to Linux ext2/ext3/ext4 filesystem
https://www.nickdu.com/?p=890
42 stars 9 forks source link

Update Docs and cannot mount ext4 partition #19

Closed john-nv closed 5 months ago

john-nv commented 5 months ago

This library is great, but can you update the docs, it's very difficult to learn and use, Thank u

nickdu088 commented 5 months ago

This is the sample how to use the library step by step: https://www.nickdu.com/?p=890

john-nv commented 5 months ago

z5361154663706_b8d69ba2fdf0bbe41782d97f83b474a9

I downloaded your library and added the SharpExt4.dll file from the debug folder to the reference to use. I was able to read the disk, but couldn't access the fartition, but checked the log and it existed I use ExtFileSystem.Open(disk, partition); but it has a new update from you, but I can't use it

john-nv commented 5 months ago

I just need to build SharpExt4 x86 and use 1 SharpExt4.dll file for reference, right? I use C#, I'm not an expert in C, please help me, running C# project x86 Thank you

john-nv commented 5 months ago

I ran VSstudio as administrator according to the instructions but still cannot access the partition Below are some of my parameters It is form USB MBR ext4 linux 2

nickdu088 commented 5 months ago

This is the sample code you can follow. https://github.com/nickdu088/SharpExt4/blob/main/Sample/Program.cs

nickdu088 commented 5 months ago

I ran VSstudio as administrator according to the instructions but still cannot access the partition Below are some of my parameters It is form USB MBR ext4 linux 2

In disk 3, which partition is ext4 partition? This library can only process Linux EXT2, EXT3, EXT4 partition.

john-nv commented 5 months ago

Yes, That disk is etx4

nickdu088 commented 5 months ago

Yes, That disk is etx4

how many partitions in that disk, what are those partitions. This library can only process Linux EXT2, EXT3, EXT4 partition.

john-nv commented 5 months ago

I just checked again, it's silly because I selected the wrong drive...., Let me ask more, do you have a method to display all available drives, or a method to display the capacity of that disk?

nickdu088 commented 5 months ago

I just checked again, it's silly because I selected the wrong drive...., Let me ask more, do you have a method to display all available drives, or a method to display the capacity of that disk?

.Net has library to support what you ask.

john-nv commented 5 months ago

I will learn more, thank you, have a good day