Protect file systems "in use" from mounting

Bug #1198507 reported by UlfZibis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ntfs-3g (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Problematic scenario:
- start Windows from C: (sda1)
- open files on D: (sda2)
- suspend Windows to disk (=hibernate)
- start Ubuntu from sda3
- try to mount sda1
-> warning about hibernation state of sda1 -> OK
- try to mount sda2
-> no warning about open state of sda2 -> BAD
-> if files are written, file system of sda2 becomes damaged -> DATA LOSS

The problem may also affect other file systems, at least FAT.

Suggestions:
1. Before mounting, please try to check if file system is "in use" and display warning.
2. If 1. is not possible, check any other partitions on hibernation state, and if found, display warning about the potential dangerous situation.

See also: https://savannah.gnu.org/bugs/?40530

UlfZibis (ulf-zibis)
description: updated
tags: added: dataloss
tags: added: hibernation
Phillip Sz (phillip-sz)
Changed in ntfs-3g (Ubuntu):
status: New → Confirmed
UlfZibis (ulf-zibis)
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.