I want to use the Windows app "CrystalDiskMark" for testing drives. Before you suggests the alternatives - GNOME Disks, bonnie++ or hdparm - I already know about these. The thing is the output of CrystalDiskMark has kind of become a de facto standard (because Linux desktop share is < 3% and Windows > 61%). I am successfully running CrystalDiskMark under Wine but the difficulty is its menu shows Windows drive letters e.g, C:, D:, E: ... How does Zorin map partitions into Windows drive letters? Confusingly, it shoes more drives than I have mounted. Is it also mapping the tmpfs partitions?
However, CrystalDiskMark does show drive letters and at least some of these drive letters match Linux partitions by size. I was able to run CrystalDiskMark on a particular flash drive because it had a unique partition size. Unfortunately, all the other partitions have the same size and cannot be differentiated by size. It seems to me Wine is mapping Linux partitions into Windows drive letters. The flash drive was formatted as MBR/FAT32. I really only want to use CrystalDiskMark for testing flash drives which I can always format at least temporarily to MBR/FAT32. The other partitions were on my hard disk which was GPT/EXT4 so CrystalDiskMark did see these GPT partitions. I can always create a small NTFS or FAT32 partition on the GPT hard disk if I wanted to test the hard disk.
Wine is a Windows emulator and therefore it is only logical that it will emulate Windows drive letters by mapping into Linux partitions. I have found the mapping - open the menu item - Wine -> Configure Wine -> Drives.
I also created a GPT/EXT4 partition and CrystalDiskMark worked on this partition also. Incidentally, if I was writing a drive test program I would not use the existing file system but I would create a small temporary "standard" file system and test against that. That would remove the performance of the file system as a variable. The idea is to test the performance of the drive independent of the file system.
The problem with using Linux software for drive testing is most of the world will not understand what those numbers mean. But CrystalDiskMark is so popular that it has become a de facto standard for testing drives.
In Zorin OS, and generally in Linux systems, drive letters are not used to map partitions like in Windows. Instead, Linux uses a hierarchical file system where each partition is mounted to a specific directory within the file system.
When running CrystalDiskMark under Wine, the drive letters you see in the application's menu are virtual representations provided by Wine to emulate the Windows environment. These drive letters do not necessarily correspond to the actual drive letters used in your Zorin OS system.
Regarding the extra drives shown in CrystalDiskMark that you haven't mounted, it's possible that Wine is presenting some virtual or virtualized drives that may include temporary or system-related partitions. These may include things like the WINEPREFIX directory or other internal Wine-related elements.
It's important to note that these virtual drives shown in CrystalDiskMark do not necessarily represent the actual mounted partitions in your Zorin OS system. To accurately identify and test your mounted partitions, you should refer to the Linux utilities you mentioned earlier & further suggested in above posts, such as GNOME Disks or command-line tools like bonnie++ or hdparm, as they provide information specific to your Linux system's partitions and devices.
To help further:
Linux, drives and partitions are typically represented as block devices and are accessed through the directory structure. The root of the file system is denoted by a single forward slash (/). Here are some common directories used in Linux for drive identification:
" /dev ":
This directory contains device files that represent hardware devices, including drives and partitions. For example, "/dev/sda" represents the first hard drive, and "/dev/sda1" represents the first partition on that drive.
" /mnt " or " /media ":
These directories are used as mount points for manually mounting external or internal drives. Mounting a drive attaches it to a specific directory in the file system, allowing you to access its contents.
It's important to note that in modern Linux distributions, drives are often automatically mounted under the "/media" directory when connected. Each mounted drive is usually assigned a subdirectory under "/media", which can be named based on the drive's label or other identifiers.
Additionally, Linux allows for more flexible and customizable mounting options, including network shares and virtual file systems. This allows you to mount various types of drives and file systems seamlessly within the directory structure.
Overall, Linux does not rely on drive letters like Windows but instead uses a directory-based approach, providing greater flexibility and control over drive identification and mounting.
Hope this helps.
The work is being done by 3 Windows system calls - CreateDirectory(), CreateFile() and WriteFile() these can very efficiently be emulated by the Linux system calls mkdir(), open() and write(). CrystalDiskMark is file system agnostic - the kernel knows the file system type from the path and will redirect the system call to the appropriate file system driver ext2, ext3, ext4, ntfs, fat32. It should work under Wine.
However, since CrystalDiskMark is using the existing file system the benchmark will have a dependency on the implementation of that file system so to be comparable to a test run on Windows CrystalDiskMark should be run on FAT32 or NTFS whichever was used on Windows.
However. if you open the menu item Wine -> Configure Wine -> Drives you will see some drive letters are for actual physical partitions. CrystalDiskMark will run on these partitions and since it is file system agnostic it doesn't matter if they are ext2, ext3, ext4, ... I have test this and it works.
By who? I'm a technician and engineer, yet I've never heard of this software. I can use disk management as well as dd, gparted or disks to get the info I need. You seem to be a power user, but refuse the tried and true tools of the industry. Confusing.
CrystalDiskMark is well known in the PC world where I came from. In fact I regularly use GNOME Disks but I want to communicate with people from the PC world and they will not understand GNOME Disks without some effort but they can just glance at the output of CrystalDiskMark and have a feel for what those numbers mean. Since, CrystalDiskMark is open source I think Ocka's KDiskMark is a port of it and will provide the same numbers. You are angry with me but I think you should read your original response to my question - it is total nonsense.
If you were to read/view tests of drives you will find most of reviewers use CrystalDiskMark. It is not the best benchmark - better benchmarks were developed later - but because people have become very familiar with CrystalDiskMark numbers reviewers still use it - the more technical reviewers will in addition also use a more recent and better benchmark.
Wine makes it possible for Windows applications to access Linux ext2, ext3, ext4 partitions. The Wine compatibility layer redirects Windows ReadFile(), WriteFile() system calls to Linux read(), write() system calls. The application itself is usually ignorant of the underlying file system. The same Linux application will run on an ext2, ext3 or ext4 file partition. It is ignorant of the actual file system type being used. The kernel using the file handle can determine the file system type and redirect the call to the appropriate file system driver. In the same way a Wine application can read/write from/to ext2, ext3, ext4 file partitions.
Wine replaces Windows API calls with "equivalent" Linux calls. This "equivalent" is not perfect and sometimes the imperfections will be significant enough so the Windows application will not run correctly. Other times the application will run perfectly.
The critical point is under Wine Wine reads the partitions not Windows. There will be Windows application e.g., diskpart that are aware of the actual file system being used and will use API calls that have no Linux equivalent and of course there is no way Wine can implement these calls and the application absolutely will not work. More generic applications e.g, wordproccessers, spreadsheets, ... that are not intimately dependent on the filesystem should run just fine.
My logic is sound. Not knowing the limitations or abilities of the software, I provided a response. Not all windows software works in wine, and not all windows software that does work in wine should be used in wine.
You are not being honest here. Your original response stated something very different - CrystalDiskMark cannot run at all - it doesn't produce valid numbers but it does run. It is clear to me that you fundamentally don't understand how Wine works - I think you should do more research before you comment on things you don't understand.
WINE serves the purpose of running some Windows applications on Linux. It is not intended to run System Applications.
To perform what you are seeking, using a Linux application would be the best route:
It does not matter which specialty a person focuses on in tech: Every part of tech requires the person to be adaptable and willing to learn. If you are using Windows, then using a Windows Tool is logical.
If it has certain conventions, you learn those conventions.
If you are using Linux, then using a Linux Tool is the logical approach and in just the same way, you must be willing to learn the conventions.
In your initial response you stated that CrystalDiskMark cannot work because it needed drive letters and it cannot read ext* partitions. This is not true and shows a that at least initially you did not understand how Wine works. Wine supports drive letters and supports accessing ext* partitions.
d3342ee215