Failure to umount root file system at shutdown

Bug #1044640 reported by Christiaan van de Woestijne
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

When shutting down, at the point where the /etc/init.d/umountroot script is to remount / as read only, the operation fails saying "Mount: / is busy". This leaves the file system of course unclean for the next boot.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-30-generic-pae 3.2.0-30.48
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic-pae 3.2.27
Uname: Linux 3.2.0-30-generic-pae i686
NonfreeKernelModules: nvidia wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu12
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: christiaan 1965 F.... pulseaudio
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0x93380000 irq 16'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,106b3f00,00100103'
   Controls : 36
   Simple ctrls : 20
Date: Sat Sep 1 08:42:22 2012
HibernationDevice: RESUME=UUID=35b37c6d-d549-43f8-aa59-0bace730274e
MachineType: Apple Inc. MacBook5,1
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=nl_NL.UTF-8
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-30-generic-pae root=UUID=756f50c6-8f5d-4a1e-9ea9-4a5fb3cd4cfa ro quiet splash vt.handoff=7
PulseList:
 Error: command ['pacmd', 'list'] failed with exit code 1: Home directory /home/christiaan not ours.
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-30-generic-pae N/A
 linux-backports-modules-3.2.0-30-generic-pae N/A
 linux-firmware 1.79
SourcePackage: linux
UpgradeStatus: Upgraded to precise on 2012-08-14 (17 days ago)
WpaSupplicantLog:

dmi.bios.date: 04/27/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MB51.88Z.007D.B03.0904271443
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-F42D89C8
dmi.board.vendor: Apple Inc.
dmi.board.version: Proto
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F42D89C8
dmi.modalias: dmi:bvnAppleInc.:bvrMB51.88Z.007D.B03.0904271443:bd04/27/09:svnAppleInc.:pnMacBook5,1:pvr1.0:rvnAppleInc.:rnMac-F42D89C8:rvrProto:cvnAppleInc.:ct10:cvrMac-F42D89C8:
dmi.product.name: MacBook5,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Christiaan van de Woestijne (christiaan2) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Christiaan van de Woestijne (christiaan2) wrote :
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.6 kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.

Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. Please only remove that one tag and leave the other tags. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6-rc4-quantal/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: needs-upstream-testing
Revision history for this message
Max (m-gorodok) wrote :

Quantal beta1 suffers from this bug as well.
I do not think, it is caused by kernel, it is rather upstart shutdown scripts.
Some daemons are not properly stopped before the call of
/etc/init.d/umountroot. E.g. dhclient has a file open for writing in /var.

 I tested fresh quantal beta1 with the following kernel
3.6.0-030600rc5-generic #201209082035 SMP Sun Sep 9 00:42:37 UTC 2012 i686 i686 i686 GNU/Linux
The only peculiarity is root on LVM.

Revision history for this message
Christian Niemeyer (christian-niemeyer) wrote :

Tested the final images just minutes ago. Remains. Unclean shutdown *always*.

Free block count becomes wrong and free inode count becomes wrong.

I'm 100% it is related to: https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1061639 "Upstartification of /etc/init.d/networking has lost deconfiguring-networking event causing bad side-effects"

See also: "In Quantal, the root filesystem is not cleanly unmounted at shutdown or reboot" https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1058987 (depreacated, duplicate)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Alexandre Nogueira D Amato Gomes (rocko83a) wrote :

I have the same issue with ubuntu 13.04 AMD64.
I´m using a server edition with package ubuntu-desktop.
At first I installed the lv_root with reiserfs and than re-installed it with ext4. The root_lv still busy whem booting or rebooting.
Today I´m unable to backup the OS with clonezilla cause the root never is clean after shutdown.
The problem did not solve killing playmouth and dhclient. And the OS is 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.