Am 26.05.2010 schrieb Paul Slootman:
Yes, of course it should be checked beforehand if the file system is already
mounted. For some reason this does not occur on my system so I did not notice
that insufficiency.
So, now I am doing a mount which lists all mount points. With grep, I am
looking, if the desired mount point exists already. If not, I try to mount
that device.
As http://git.debian.org/?p=users/lamont/util-
linux.git;a=blob;f=mount/mount.c;hb=HEAD#l261 indicates (packet util-linux,
file mount/mount.c, line 266), the output of mount is not localised so that it
should be safe parsing the output with the regular expression given to grep.
Best regards,
Jens