allow verbose fsck via friendly-recovery

Bug #941813 reported by James Hunt
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
friendly-recovery (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

One of the options in the friendly-recovery menu is "Check all file systems" (aka fsck). However, selecting this option runs fsck via mountall which produces no output. This could give users the impression that their system has actually frozen (this feeling is compounded by the fact that when fsck runs, you cannot for example toggle the caps-lock light).

Either friendly-recovery or mountall need to be modified to pass '-VC' to fsck such that the user is provided with feedback on progress.

I have made a change to mountall to allow for verbose fsck:

lp:~jamesodhunt/ubuntu/precise/mountall/add-verbose-fsck-option

This tests fine on ext3/ext4, but since mountall is passing '-C' to /sbin/fsck and /sbin/fsck then invokes the relevant FS-specific fsck (such as /sbin/fsck.ext4), care should be taken in testing this as the fsck(8) states...

       -C [ fd ]
              Display completion/progress bars for those filesystem checkers (currently only for ext2 and ext3) which support them.

What is *not* clear is what happens if you pass '-C' to an FS-specific fsck that does not support '-C'. So, we need to test all fscks:

$ apt-file search /sbin/fsck\.
btrfs-tools: /sbin/fsck.btrfs
dosfstools: /sbin/fsck.msdos
dosfstools: /sbin/fsck.vfat
e2fsprogs: /sbin/fsck.ext2
e2fsprogs: /sbin/fsck.ext3
e2fsprogs: /sbin/fsck.ext4
e2fsprogs: /sbin/fsck.ext4dev
gfs2-utils: /sbin/fsck.gfs2
hfsprogs: /sbin/fsck.hfs
hfsprogs: /sbin/fsck.hfsplus
initscripts: /sbin/fsck.nfs
jfsutils: /sbin/fsck.jfs
ocfs2-tools: /sbin/fsck.ocfs2
reiser4progs: /sbin/fsck.reiser4
reiserfsprogs: /sbin/fsck.reiserfs
ufsutils: /sbin/fsck.ufs
util-linux: /sbin/fsck.cramfs
util-linux: /sbin/fsck.minix
vmfs-tools: /usr/sbin/fsck.vmfs
xfsprogs: /sbin/fsck.xfs

Easiest way to do this would be to install all the packages above, dd a file, format it for each FS in turn, then run 'fsck.<FS> -VC" on each file/disk.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: friendly-recovery 0.2.24
ProcVersionSignature: Ubuntu 3.2.0-16.25-generic-pae 3.2.6
Uname: Linux 3.2.0-16-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.93-0ubuntu2
Architecture: i386
Date: Mon Feb 27 08:51:45 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: friendly-recovery
UpgradeStatus: Upgraded to precise on 2012-01-12 (45 days ago)

Revision history for this message
James Hunt (jamesodhunt) wrote :
Changed in friendly-recovery (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in friendly-recovery (Ubuntu):
importance: Medium → Wishlist
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.