JonMagon / KDiskMark

A simple open-source disk benchmark tool for Linux distros
GNU General Public License v3.0
1.07k stars 43 forks source link

Won't do anything unless run with sudo from cli #57

Closed m147 closed 2 years ago

m147 commented 3 years ago

Starting the program normally won't do anything, running it with sudo from cli will make it work. Is running it with sudo necessary? Am I missing something here?

JonMagon commented 3 years ago

Provide more information about KDiskMark version and your OS

m147 commented 3 years ago

KDiskMark v 2.2.0 OS Arch Linux Kernel Linux 5.10.56-1-lts

I noticed that if I uncheck flush pagecache in settings it will work. But it takes a very long time to test the speed of a USB key.

JonMagon commented 3 years ago

If nothing happens at all, there is something wrong with the installed package. The community repository package is reliably working. Run kdiskmark from the terminal and see if there are any errors when you run the test

m147 commented 3 years ago

I ran it from the terminal no output. What happens is, when I press ALL or any of the other test buttons, it flashes really quickly, for a split second I can see "Stop" on the buttons but that's all.
I installed it from the community repo and tried to reinstall it. Again nothing. It does the tests if I uncheck "flush pagecache" under settings, like I mentioned, but it took like 11 hours to do a test on a 128gb usb key and it didn't even finish, I had to stop it because I had to leave for work and take my laptop with me.

JonMagon commented 3 years ago

There is some kind of error with KAuth, try building the 2.2.1 package or use AppImage

m147 commented 3 years ago

I've gotten it to work by installing mate-polkit. But why does it take so long to do the tests?

JonMagon commented 3 years ago

This depends primarily on the speed of the flash drive and the size of the test file

m147 commented 3 years ago

Is polkit agent similar/same as kauth?

JonMagon commented 2 years ago

Yes