2009-09-23 11:19:21 |
Tero miettinen |
bug |
|
|
added bug |
2010-08-20 11:40:30 |
Fabio Marconi |
ubuntu: status |
New |
Incomplete |
|
2010-08-20 11:40:33 |
Fabio Marconi |
bug |
|
|
added subscriber Fabio Marconi |
2010-08-20 11:40:37 |
Fabio Marconi |
ubuntu: status |
Incomplete |
Invalid |
|
2010-08-20 11:40:45 |
Fabio Marconi |
ubuntu: status |
Invalid |
Incomplete |
|
2010-08-20 12:56:51 |
Fabio Marconi |
affects |
ubuntu |
mountall (Ubuntu) |
|
2010-08-20 13:14:26 |
Tero miettinen |
tags |
|
apport-collected |
|
2010-08-20 13:14:29 |
Tero miettinen |
description |
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected. |
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video
|
|
2010-08-20 13:14:32 |
Tero miettinen |
attachment added |
|
Dependencies.txt https://bugs.edge.launchpad.net/bugs/435192/+attachment/1503964/+files/Dependencies.txt |
|
2010-08-20 13:29:14 |
Fabio Marconi |
mountall (Ubuntu): status |
Incomplete |
Confirmed |
|
2010-08-20 13:29:56 |
Fabio Marconi |
tags |
apport-collected |
apport-collected lucid |
|
2012-08-01 12:42:38 |
Anthony Wong |
bug |
|
|
added subscriber Canonical Hardware Enablement Team |
2012-08-01 12:42:40 |
Anthony Wong |
tags |
apport-collected lucid |
apport-collected blocks-hwcert-enablement lucid |
|
2012-08-01 12:42:48 |
Anthony Wong |
nominated for series |
|
Ubuntu Precise |
|
2012-08-01 12:42:51 |
Anthony Wong |
nominated for series |
|
Ubuntu Quantal |
|
2012-08-01 15:46:08 |
Steve Langasek |
affects |
mountall (Ubuntu) |
udisks2 (Ubuntu) |
|
2012-08-03 01:27:21 |
Kent Lin |
bug task added |
|
oem-priority |
|
2012-08-03 01:27:51 |
Kent Lin |
nominated for series |
|
oem-priority/precise |
|
2012-08-03 01:27:51 |
Kent Lin |
bug task added |
|
oem-priority/precise |
|
2012-08-03 01:29:12 |
Kent Lin |
bug |
|
|
added subscriber OEM Priority Team |
2012-08-03 01:30:11 |
Kent Lin |
oem-priority/precise: importance |
Undecided |
Medium |
|
2012-08-03 01:30:14 |
Kent Lin |
oem-priority: importance |
Undecided |
Medium |
|
2012-08-03 01:35:05 |
Kent Lin |
bug |
|
|
added subscriber Kent Lin |
2012-08-03 04:13:42 |
Anthony Wong |
bug |
|
|
added subscriber Ming Lei |
2012-08-05 10:10:13 |
Ming Lei |
udisks2 (Ubuntu): assignee |
|
Ming Lei (tom-leiming) |
|
2012-08-06 19:29:01 |
James M. Leddy |
tags |
apport-collected blocks-hwcert-enablement lucid |
apport-collected blocks-hwcert-enablement lucid patch |
|
2012-08-06 19:29:05 |
James M. Leddy |
oem-priority: status |
New |
In Progress |
|
2012-08-06 19:29:08 |
James M. Leddy |
oem-priority/precise: status |
New |
In Progress |
|
2012-08-07 03:16:49 |
Ming Lei |
oem-priority/precise: assignee |
|
Ming Lei (tom-leiming) |
|
2012-08-07 03:23:09 |
Launchpad Janitor |
branch linked |
|
lp:~tom-leiming/udisks/bug435192 |
|
2012-08-07 05:15:09 |
Gary M |
bug |
|
|
added subscriber Gary M |
2012-08-08 08:50:57 |
Launchpad Janitor |
branch linked |
|
lp:~anthonywong/udisks/lp435192 |
|
2012-08-08 09:16:58 |
Anthony Wong |
branch unlinked |
lp:~tom-leiming/udisks/bug435192 |
|
|
2012-08-08 10:10:49 |
Anthony Wong |
branch linked |
|
lp:~tom-leiming/udisks/bug435192 |
|
2012-08-08 10:14:27 |
Anthony Wong |
bug task added |
|
udisks (Ubuntu) |
|
2012-08-08 10:14:50 |
Anthony Wong |
udisks (Ubuntu): assignee |
|
Ming Lei (tom-leiming) |
|
2012-08-08 10:14:53 |
Anthony Wong |
udisks2 (Ubuntu): assignee |
Ming Lei (tom-leiming) |
|
|
2012-08-08 10:14:58 |
Anthony Wong |
udisks (Ubuntu): importance |
Undecided |
Medium |
|
2012-08-08 10:17:23 |
Launchpad Janitor |
udisks (Ubuntu): status |
New |
Confirmed |
|
2012-08-08 10:30:36 |
Anthony Wong |
bug watch added |
|
https://bugs.freedesktop.org/show_bug.cgi?id=53237 |
|
2012-08-08 10:30:36 |
Anthony Wong |
bug task added |
|
udisks |
|
2012-08-08 11:53:50 |
Bug Watch Updater |
udisks: status |
Unknown |
Confirmed |
|
2012-08-08 11:53:50 |
Bug Watch Updater |
udisks: importance |
Unknown |
Medium |
|
2012-08-16 19:32:05 |
Bryce Harrington |
bug task added |
|
udisks (Ubuntu Precise) |
|
2012-08-16 19:32:05 |
Bryce Harrington |
bug task added |
|
udisks2 (Ubuntu Precise) |
|
2012-08-16 19:32:14 |
Bryce Harrington |
bug task added |
|
udisks (Ubuntu Quantal) |
|
2012-08-16 19:32:14 |
Bryce Harrington |
bug task added |
|
udisks2 (Ubuntu Quantal) |
|
2012-08-16 19:32:25 |
Bryce Harrington |
udisks (Ubuntu Precise): status |
New |
Confirmed |
|
2012-08-16 19:32:28 |
Bryce Harrington |
udisks (Ubuntu Precise): importance |
Undecided |
Medium |
|
2012-08-16 19:32:34 |
Bryce Harrington |
udisks2 (Ubuntu Precise): status |
New |
Confirmed |
|
2012-08-16 19:32:52 |
Bryce Harrington |
description |
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video
|
[Impact]
[Fix]
[Test Case]
[Regression Potential]
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
|
2012-08-20 19:36:07 |
James M. Leddy |
tags |
apport-collected blocks-hwcert-enablement lucid patch |
apport-collected blocks-hwcert-enablement lucid patch rls-q-incoming |
|
2012-09-04 13:16:14 |
Martin Pitt |
bug task deleted |
udisks2 (Ubuntu Precise) |
|
|
2012-09-04 13:16:24 |
Martin Pitt |
udisks (Ubuntu Quantal): status |
Confirmed |
Invalid |
|
2012-09-06 03:49:43 |
Anthony Wong |
description |
[Impact]
[Fix]
[Test Case]
[Regression Potential]
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
|
2012-09-06 06:06:26 |
Ming Lei |
description |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
fixed by below patch:
diff --git a/precise/src/device.c b/precise/src/device.c
index a7f8880..8b48612 100644
--- a/precise/src/device.c
+++ b/precise/src/device.c
@@ -6407,6 +6407,7 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
const FSMountOptions *fsmo;
char **options;
char uid_buf[32];
+ int access_changed;
fstype = NULL;
options = NULL;
@@ -6414,6 +6415,7 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
mount_point = NULL;
remove_dir_on_unmount = FALSE;
error = NULL;
+ access_changed = 0;
/* If the user requests the filesystem type, error out unless the
* filesystem type is
@@ -6516,6 +6518,7 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
for (n = 0; options[n] != NULL; n++)
{
const char *option = options[n];
+ char *start;
/* avoid attacks like passing "shortname=lower,uid=0" as a single mount option */
if (strstr (option, ",") != NULL)
@@ -6533,9 +6536,23 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
goto out;
}
+ if (start = strstr(option, "rw")) {
+ if (device->priv->device_is_read_only) {
+ start[1] = 'o';
+ access_changed = 1;
+ }
+ }
+
g_string_append_c (s, ',');
g_string_append (s, option);
}
+
+ if (!access_changed && device->priv->device_is_read_only)
+ {
+ g_string_append_c (s, ',');
+ g_string_append (s, "ro");
+ }
+
mount_options = g_string_free (s, FALSE);
g_print ("**** USING MOUNT OPTIONS '%s' FOR DEVICE %s\n", mount_options, device->priv->device_file);
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
The fix posted looks shouldn't cause regression.
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
|
2012-09-06 10:25:59 |
Martin Pitt |
bug task added |
|
ntfs-3g (Ubuntu) |
|
2012-09-06 10:28:14 |
Martin Pitt |
ntfs-3g (Ubuntu Quantal): importance |
Undecided |
Medium |
|
2012-09-06 10:28:14 |
Martin Pitt |
ntfs-3g (Ubuntu Quantal): status |
New |
Triaged |
|
2012-09-06 10:28:25 |
Martin Pitt |
ntfs-3g (Ubuntu Precise): status |
New |
Triaged |
|
2012-09-06 11:41:07 |
Martin Pitt |
bug |
|
|
added subscriber Martin Pitt |
2012-09-07 06:31:26 |
Martin Pitt |
bug watch added |
|
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686914 |
|
2012-09-07 06:31:26 |
Martin Pitt |
bug task added |
|
ntfs-3g (Debian) |
|
2012-09-07 06:32:25 |
Martin Pitt |
udisks2 (Ubuntu Quantal): status |
Confirmed |
In Progress |
|
2012-09-07 06:32:25 |
Martin Pitt |
udisks2 (Ubuntu Quantal): assignee |
|
Martin Pitt (pitti) |
|
2012-09-07 08:01:44 |
Jean-Pierre |
attachment added |
|
Patch for mounting a read-only device https://bugs.launchpad.net/ubuntu/+source/ntfs-3g/+bug/435192/+attachment/3297662/+files/readonly.patch |
|
2012-09-07 08:20:19 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2012-09-07 09:23:05 |
Bug Watch Updater |
ntfs-3g (Debian): status |
Unknown |
New |
|
2012-09-07 13:46:45 |
Martin Pitt |
ntfs-3g (Ubuntu Quantal): status |
Triaged |
In Progress |
|
2012-09-07 13:47:08 |
Martin Pitt |
udisks (Ubuntu Precise): status |
Confirmed |
Won't Fix |
|
2012-09-07 13:47:23 |
Martin Pitt |
udisks2 (Ubuntu Quantal): status |
In Progress |
Won't Fix |
|
2012-09-07 13:47:23 |
Martin Pitt |
udisks2 (Ubuntu Quantal): assignee |
Martin Pitt (pitti) |
|
|
2012-09-07 13:48:16 |
Martin Pitt |
udisks2 (Ubuntu): status |
In Progress |
Won't Fix |
|
2012-09-07 13:48:28 |
Martin Pitt |
ntfs-3g (Ubuntu Quantal): assignee |
|
Martin Pitt (pitti) |
|
2012-09-07 13:48:35 |
Martin Pitt |
udisks2 (Ubuntu): assignee |
Martin Pitt (pitti) |
|
|
2012-09-10 05:25:35 |
Martin Pitt |
description |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
fixed by below patch:
diff --git a/precise/src/device.c b/precise/src/device.c
index a7f8880..8b48612 100644
--- a/precise/src/device.c
+++ b/precise/src/device.c
@@ -6407,6 +6407,7 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
const FSMountOptions *fsmo;
char **options;
char uid_buf[32];
+ int access_changed;
fstype = NULL;
options = NULL;
@@ -6414,6 +6415,7 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
mount_point = NULL;
remove_dir_on_unmount = FALSE;
error = NULL;
+ access_changed = 0;
/* If the user requests the filesystem type, error out unless the
* filesystem type is
@@ -6516,6 +6518,7 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
for (n = 0; options[n] != NULL; n++)
{
const char *option = options[n];
+ char *start;
/* avoid attacks like passing "shortname=lower,uid=0" as a single mount option */
if (strstr (option, ",") != NULL)
@@ -6533,9 +6536,23 @@ device_filesystem_mount_authorized_cb (Daemon *daemon,
goto out;
}
+ if (start = strstr(option, "rw")) {
+ if (device->priv->device_is_read_only) {
+ start[1] = 'o';
+ access_changed = 1;
+ }
+ }
+
g_string_append_c (s, ',');
g_string_append (s, option);
}
+
+ if (!access_changed && device->priv->device_is_read_only)
+ {
+ g_string_append_c (s, ',');
+ g_string_append (s, "ro");
+ }
+
mount_options = g_string_free (s, FALSE);
g_print ("**** USING MOUNT OPTIONS '%s' FOR DEVICE %s\n", mount_options, device->priv->device_file);
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
The fix posted looks shouldn't cause regression.
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
See attachment and merge proposals.
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
The fix posted looks shouldn't cause regression.
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
|
2012-09-10 05:44:32 |
Martin Pitt |
description |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
See attachment and merge proposals.
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
The fix posted looks shouldn't cause regression.
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
[Impact]
OEM customers raise this issue, thinking that the error message can be misleading to inexperienced users.
[Fix]
See attachment and merge proposals.
[Test Case]
Format a SD card with NTFS, lock the SD card as write-protected, insert the card into the SD card slot. If the card is mounted as read-only, the bug is fixed.
[Regression Potential]
To ensure the patch does not cause mounting to fail completely or mounting of writable devices as readonly, verification should include both writable and readonly NTFS partitions.
[Regression testing]
The udisks2 test suite covers both read-only and writable NTFS partitions:
http://cgit.freedesktop.org/udisks/tree/src/tests/integration-test
You can download it and run it against the installed system binaries; it will use scsi-debug for a virtual hard disk/CD-ROM, and not touch any of your real partitions.
With the current versions in the archive, you get:
======================================================================
ERROR: test_ntfs (__main__.FS)
fs: NTFS
----------------------------------------------------------------------
Traceback (most recent call last):
File "src/tests/integration-test", line 636, in test_ntfs
self._do_fs_check('ntfs')
File "src/tests/integration-test", line 758, in _do_fs_check
self._do_udisks_check(type)
File "src/tests/integration-test", line 931, in _do_udisks_check
mount_path = cd_fs.call_mount_sync(no_options, None)
File "/usr/lib/python3/dist-packages/gi/types.py", line 47, in function
return info.invoke(*args, **kwargs)
gi._glib.GError: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error
mounting /dev/sr1 at /media/root/2FB591B374B26011: Command-line `mount -t
"ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=0,gid=0,dmask=0077,fmask=0177"
"/dev/sr1" "/media/root/2FB591B374B26011"' exited with non-zero exit status 18:
Error opening '/dev/sr1': Read-only file system
Failed to mount '/dev/sr1': Read-only file system
With the proposed version, the test succeeds.
If you prefer, you can also run the steps manually; described in http://bugs.debian.org/686914
[Original Report]
Mounting of read only NTFS filesystem gives a following error popup:
Cannot mount volume.
Unable to mount the volume '<Volume name>'.
Details:
Error opening '/dev/sdb2': Read-only file system
Failed to mount '/dev/sdb2': Read-only file system
I believe this should be mounted as read-only instead of an error message.
Mounting by hand with the "-o ro" argument works as expected.
---
Architecture: i386
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: fglrx
Package: mountall 2.15
PackageArchitecture: i386
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-24-generic i686
UserGroups: adm admin audio cdrom dialout dip fax fuse lpadmin netdev plugdev sambashare tape video |
|
2012-09-10 05:48:35 |
Martin Pitt |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2012-09-10 05:50:14 |
Launchpad Janitor |
ntfs-3g (Ubuntu Quantal): status |
In Progress |
Fix Released |
|
2012-09-10 05:55:12 |
Martin Pitt |
ntfs-3g (Ubuntu Precise): status |
Triaged |
In Progress |
|
2012-09-10 06:18:51 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/ntfs-3g |
|
2012-09-11 04:10:24 |
Adam Conrad |
ntfs-3g (Ubuntu Precise): status |
In Progress |
Fix Committed |
|
2012-09-11 04:10:33 |
Adam Conrad |
bug |
|
|
added subscriber SRU Verification |
2012-09-11 04:10:35 |
Adam Conrad |
tags |
apport-collected blocks-hwcert-enablement lucid patch rls-q-incoming |
apport-collected blocks-hwcert-enablement lucid patch rls-q-incoming verification-needed |
|
2012-09-17 09:40:08 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/ntfs-3g |
|
2012-09-17 21:36:52 |
James M. Leddy |
oem-priority: status |
In Progress |
Fix Committed |
|
2012-09-17 21:37:27 |
James M. Leddy |
oem-priority/precise: status |
In Progress |
Fix Committed |
|
2012-09-27 22:01:17 |
James M. Leddy |
oem-priority: status |
Fix Committed |
Incomplete |
|
2012-09-27 22:03:30 |
James M. Leddy |
oem-priority/precise: status |
Fix Committed |
Incomplete |
|
2012-10-03 10:20:34 |
Nara Huang |
tags |
apport-collected blocks-hwcert-enablement lucid patch rls-q-incoming verification-needed |
apport-collected blocks-hwcert-enablement lucid patch rls-q-incoming verification-done verification-needed |
|
2012-10-03 11:22:51 |
Colin Watson |
tags |
apport-collected blocks-hwcert-enablement lucid patch rls-q-incoming verification-done verification-needed |
apport-collected blocks-hwcert-enablement lucid patch verification-done |
|
2012-10-03 12:01:25 |
Colin Watson |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2012-10-03 12:02:12 |
Launchpad Janitor |
ntfs-3g (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2012-10-04 16:29:07 |
Bug Watch Updater |
ntfs-3g (Debian): status |
New |
Fix Released |
|
2012-10-10 14:32:33 |
Anthony Wong |
oem-priority: status |
Incomplete |
Fix Released |
|
2012-10-10 14:33:04 |
Anthony Wong |
oem-priority/precise: status |
Incomplete |
Fix Released |
|