Bug 641324

Summary: Improve Error messaging with ntfs mount
Product: [openSUSE] openSUSE 11.3 Reporter: Forgotten User 6Bw0Ifx-X6 <forgotten_6Bw0Ifx-X6>
Component: BasesystemAssignee: E-mail List <gnome-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i386   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 6Bw0Ifx-X6 2010-09-23 10:28:41 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux; en-GB) AppleWebKit/532.4 (KHTML, like Gecko) konqueror/4.5.1 Safari/532.4

When opening my ntfs partition with dolphin, I got the following message:
Error opening '/dev/sda1': Permission denied
Failed to mount '/dev/sda1': Permission denied
Please check '/dev/sda1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged

Wondering what had happened to my ntfs partition, I tried to mount it as root. Here is the error message that I got then:
Windows is hibernated, refused to mount.
Failed to mount '/dev/sda1': Operation not permitted
The NTFS partition is hibernated. Please resume and shutdown Windows
properly, or mount the volume read-only with the 'ro' mount option, or
mount the volume read-write with the 'remove_hiberfile' mount option.
For example type on the command line:

            mount -t ntfs-3g -o remove_hiberfile /dev/sda1 /windows

I am surprised to see 2 different error messages especially because the first one is almost useless while the second one gives a good hint for resolving the problem. 
Can't the 2nd error message be used for all users?

Reproducible: Didn't try

Steps to Reproduce:
1.
2.
3.
Comment 1 Tomáš Chvátal 2017-08-11 13:03:59 UTC
Seems to behave differently on Tumbleweed. Please open a new bug if the issue still persist on supported codestream.