- hint to the user what to do if the partition is hibernated
parent
fbbefe0c70
commit
1cefeefd61
|
|
@ -79,6 +79,10 @@ static const char *corrupt_volume_msg =
|
||||||
"it's important! You probably also need to reboot Windows to take effect.\n"
|
"it's important! You probably also need to reboot Windows to take effect.\n"
|
||||||
"Then you can try ntfsresize again. No modification was made to your NTFS.\n";
|
"Then you can try ntfsresize again. No modification was made to your NTFS.\n";
|
||||||
|
|
||||||
|
static const char *hibernated_volume_msg =
|
||||||
|
"Apparently the NTFS partition is hibernated. Windows must be resumed and\n"
|
||||||
|
"turned off properly, thus resizing will be possible later on.\n";
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
int verbose;
|
int verbose;
|
||||||
int debug;
|
int debug;
|
||||||
|
|
@ -2064,6 +2068,8 @@ static ntfs_volume *mount_volume(void)
|
||||||
printf(invalid_ntfs_msg, opt.volume);
|
printf(invalid_ntfs_msg, opt.volume);
|
||||||
else if (err == EIO)
|
else if (err == EIO)
|
||||||
printf(corrupt_volume_msg);
|
printf(corrupt_volume_msg);
|
||||||
|
else if (err == EPERM)
|
||||||
|
printf(hibernated_volume_msg);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue