Inconsistent filesystem on boot, possibly because of failed unmount on shutdown

Bug #97645 reported by John Nilsson
2
Affects Status Importance Assigned to Milestone
Ubuntu
Expired
Undecided
Unassigned

Bug Description

When booting grub complains about inconsistent file system and I have to boot in rescue mode to replay journal.

I'm guessing that the problem is related to the fact that some filesystem fails to unmount on shutodown. (Is this logged somewhere?)

Here's my fstab:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hdb1 / reiserfs noatime,notail,user_xattr 0 1
/dev/hdb2 none swap sw 0 0
/dev/hdb3 /home reiserfs noatime,notail,user_xattr 0 2
/dev/hdc1 /home/shared ext3 noatime 0 0
/home/.var /var bind bind 0 0

#/dev/hdd1 /media/windows-c ntfs umask=0222 0 0
#/dev/hdd5 /media/windows-d ntfs umask=0222 0 0

/dev/hda /media/cdrom0 udf,iso9660 user,noauto,unhide,ro,utf8 0 0
#/dev/hdc /media/cdrom1 udf,iso9660 user,noauto,unhide,ro,utf8 0 0
#/dev/fd0 /media/floppy0 vfat rw,user,noauto 0 0

tmp /tmp tmpfs size=512M 0 0

ProblemType: Bug
Architecture: i386
Date: Thu Mar 29 01:44:33 2007
DistroRelease: Ubuntu 7.04
Uname: Linux newkid 2.6.20-13-generic #2 SMP Sun Mar 25 00:21:25 UTC 2007 i686 GNU/Linux

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in recently. We were wondering if this is still and issue for you? Thanks in advance.

Revision history for this message
John Nilsson (john-milsson) wrote :

Oh sorry for not commenting on this.

I think the problem had to do with my configuration of daemontools. It was configured to respawn at all runlevels making it impossible to unmount. So I have sinced fixed the issue by fixing that.

However, there might be reason to investigate a cleaner way of handling such situations for users not capable of taking care of it. For example makeing sure to sync all filesystems before shutdown even if unmount fails.

Revision history for this message
trollord (trollenlord) wrote :

Linux kernel flushes all disk caches before going down. All the halt/poweroff/reboot call sync before proceeding. You can even see a message about it flashing extremely fast right before the reboot/whatever initiates. Only thing that you can add is forcing remount as read-only. That happens with Ubuntu as well. These measures already do pretty much everything that is possible, and at least I can't see anything else that would be doable.

I would instead of that focus on fixing the misbehaving applications. (daemontools?)

Changed in ubuntu:
assignee: Brian Murray (brian-murray) → nobody
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for reporting this bug.

Does this issue occur in Lucid?

Revision history for this message
John Nilsson (john-milsson) wrote :

I'm currently not running an Ubuntu installation, so I can't comment on this issue.

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

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

Changed in ubuntu:
status: Incomplete → Expired
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.