diff --git a/plugins/volume_mount/lang/en.hdf b/plugins/volume_mount/lang/en.hdf
index c2805b0..d490880 100644
--- a/plugins/volume_mount/lang/en.hdf
+++ b/plugins/volume_mount/lang/en.hdf
@@ -30,7 +30,7 @@ SuccessMessage {
WarningMessage {
MountFailed {
Title = Activation failed
- Text = The encrypted filesystem could not be activated. Probably the given password was wrong. Please try again.
+ Text = The volume could not be activated for some reason. Sorry!
}
MountCryptoFailed {
@@ -38,9 +38,16 @@ WarningMessage {
Text = Maybe you entered the wrong password?
}
+ InvalidContainerType {
+ Title = Unknown format
+ Text = The type of this volume ist not known. Maybe you want to initialize itfirst?
+ Link.Text = Format volume
+ Link.Rel = format_fs
+ }
+
UmountFailed {
Title = Deactivation failed
- Text = The encrypted filesystem could not be deactivated. Probably some files are still in use. Close all unclean programs (for example that widely used word processor). In case of emergency just shut down the CryptoBox!
+ Text = The volume could not be deactivated. Probably some files are still in use. In case of emergency just shut down the CryptoBox!
}
IsAlreadyMounted {
diff --git a/plugins/volume_mount/volume_mount.py b/plugins/volume_mount/volume_mount.py
index 4fc3922..9d3cbf4 100644
--- a/plugins/volume_mount/volume_mount.py
+++ b/plugins/volume_mount/volume_mount.py
@@ -40,8 +40,9 @@ class volume_mount(CryptoBoxPlugin.CryptoBoxPlugin):
self.cbox.log.info("the device (%s) is already mounted" % self.device)
return "volume_status"
if self.container.getType() != self.container.Types["plain"]:
- ## not a plain container - fail silently
+ ## not a plain container
self.cbox.log.info("plugin 'volume_mount' - invalid container type")
+ self.hdf["Data.Warning"] = "Plugins.volume_mount.InvalidContainerType"
return "volume_status"
try:
self.container.mount()
@@ -94,7 +95,7 @@ class volume_mount(CryptoBoxPlugin.CryptoBoxPlugin):
try:
self.container.umount()
except CBUmountError, errMsg:
- self.hdf["Data.Warning"] = "InvalidType"
+ self.hdf["Data.Warning"] = "UmountFailed"
self.cbox.log.warn("could not umount the volume (%s): %s" % (self.device, errMsg))
return "volume_status"
self.cbox.log.info("successfully unmounted the container: %s" % self.device)
diff --git a/plugins/volume_mount/volume_umount.cs b/plugins/volume_mount/volume_umount.cs
index 6002510..457badf 100644
--- a/plugins/volume_mount/volume_umount.cs
+++ b/plugins/volume_mount/volume_umount.cs
@@ -5,6 +5,6 @@