Forum > Linux

How to eject/safetly remove an USB Drive ?

<< < (2/4) > >>

TurboRascal:
It should be there, this is a kernel syscall...

nhatdung:
there is no mount/umount command in freepascal. i use tprocess and it work fine  8-)
thanks!

ik:
I think that you can use syscall for that, something like:


--- Code: ---fpsyscall(syscall_nr_umount, '/mnt/dok');
--- End code ---

Or something like that (I have not tried it myself).

nhatdung:
i haven't try my self but use tprocess call umount work very good :D
btw : where is "fpsyscall" function ?

TurboRascal:

--- Quote from: nhatdung on April 02, 2011, 03:55:23 pm ---there is no mount/umount command in freepascal. i use tprocess and it work fine  8-)
thanks!

--- End quote ---

So you called the umount binary file from your program? Not too bad a solution since every linux system must have that...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version