mount -o remount always appends options to /etc/mtab even if they already exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pm-utils (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
I have an external usb HDD attached to my system to store parts of /home. Every time I suspend and resume the laptop, mount appends a subset of the mount options to the already existing list.
I currently have this in the output of mount:
/dev/sdc1 on /media/LaCie type ext4 (rw,nosuid,
/etc/fstab doesn't have a line for this disk.
---------
Reproducer:
$ sudo modprobe scsi_debug
# ATTENTION! MAKE TRIPLE-SURE ABOUT THE DEVICE NAME HERE!
$ sudo mkfs.ext4 /dev/sdb
$ sudo mount /dev/sdb /mnt
$ grep sdb /etc/mtab
/dev/sdb /mnt ext4 rw 0 0
$ sudo mount -o remount,commit=600 /dev/sdb
$ grep sdb /etc/mtab
/dev/sdb /mnt ext4 rw,commit=600 0 0
$ sudo mount -o remount,commit=600 /dev/sdb
$ grep sdb /etc/mtab
/dev/sdb /mnt ext4 rw,commit=
----------
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: mount 2.19.1-2ubuntu3
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: ebb646ad5c6c4ca
CheckboxSystem: 7e42599bda39ea7
Date: Thu Nov 17 21:29:08 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64+mac (20110127)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
LC_PAPER=a4
SourcePackage: util-linux
UpgradeStatus: Upgraded to oneiric on 2011-10-15 (33 days ago)
Related branches
Changed in udisks (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Canonical Desktop Team (canonical-desktop-team) |
summary: |
- Constantly attached usb disk 's mount options keep growing each suspend - resume cycle + Suspend/Resume adds "commit=600,commit=0" options to mounted USB drives |
no longer affects: | udisks (Ubuntu) |
description: | updated |
Changed in pm-utils (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | Triaged → Fix Committed |
Adding udisk since that is more likely to be where this is happening.