EPERM is returned if windows was hibernated
parent
75668af15e
commit
f292546aed
|
|
@ -181,11 +181,14 @@ ntfs_volume * utils_mount_volume (const char *device, unsigned long flags, BOOL
|
||||||
err = errno;
|
err = errno;
|
||||||
Eprintf("Couldn't mount device '%s': %s\n", device,
|
Eprintf("Couldn't mount device '%s': %s\n", device,
|
||||||
strerror(err));
|
strerror(err));
|
||||||
if (err == EOPNOTSUPP)
|
if (err == EPERM)
|
||||||
Eprintf("Windows was either hibernated or did not "
|
Eprintf("Windows was hibernated. Try to mount volume "
|
||||||
"shut down properly. Try to mount "
|
"in windows, shut down and try "
|
||||||
"volume in windows, shut down and try "
|
|
||||||
"again.\n");
|
"again.\n");
|
||||||
|
if (err == EOPNOTSUPP)
|
||||||
|
Eprintf("Windows did not shut down properly. Try to "
|
||||||
|
"mount volume in windows, shut down "
|
||||||
|
"and try again.\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue