[Pkg-sysvinit-devel] Bug#623003: Bug#623003: initscripts: checkfs fails with already mounted error after lenny to squeeze upgrade
tj.trevelyan at gmail.com
Sun Apr 17 09:59:52 UTC 2011
I have been looking further into this and I now see what's going on.
In short, I have to apologise for the false bug report.
The long version of what happened follows:
For context, fstab:
"proc /proc proc defaults 0 0
UUID=8cc10acc-3233-4ed3-ae07-a16c7feaf4e4 / ext2
defaults,noatime,errors=remount-ro 0 1
UUID=4b494be4-8d11-4024-9266-d5a972d4786a /usr ext3 defaults 0 1
UUID=1c088681-9628-4240-8e2c-6cf08a6a3570 /var ext3 defaults 0 2
UUID=ae27781c-0d8c-4b1d-8107-00b048984656 none swap sw 0 0
UUID=834624fb-c582-49e9-ad7f-4d01d1dce83f /keep ext3 defaults 0 2
UUID=2000c67a-06d3-43a3-a445-fd74a7b1f33c /keep/pele ext3 defaults 0 3
UUID=2f0ba551-f483-4478-861a-e2c63bcbb52f /home ext3 defaults 0 3
/keep /srv/keep none rw,bind 0 0
/keep/pele /srv/keep/pele none rw,bind 0 0
The other thing to know is that on this system has some disks are
connected via the USB bus. (It's an ALIX.2)
The boot disk is a small CF card. The rest of the system is on other
When I first setup the system some time ago, I had the problem of not
all disks being discovered before the boot process got to checkfs.
My solution back then was a "S09pause" in rcS with just "sleep 10s" in
it and to have usb_storage and friends in initrd. All disks would be
discovered before boot proceeded.
This weekend I upgrade to squeeze and the init process was changed to
a dependancy based one. The system no longer booted. checkfs
complained that it could not find any disks with the given UUID.
I found out that my S09pause would no longer be called, or at least
not in the right place.
I google for solutions, as you do...
I found one that did something with udev (a system I'm still not 100%
familiar with). So I deleted my S09pause and it seemed to work, but
boot broke again.
More googling and asking of questions in #debian on freenode, but no progress.
In the end I filed this report. (with hindsight erroneously)
Now we come to the present.
Based on your email, it became obvious to me that the udev solution
was not only mounting the USB partitions, but also those of the CF
disk. Giving the problem reported.
My new solution, which seems to work now:
I removed all the stuff installed into udev and put fstab back as given above
I have stuck a "sleep 10s" in /etc/init.d/rcS before the exec rc S call.
Since all USB modules were loaded in the initrd, and with rc-init
waiting 10 secs, all disks are discovered before boot proceeds.
It might not be the most elegant solution, but this system only ever
reboots on power failures and upgrades...
Thank you for your time.
On 16 April 2011 23:19, Kel Modderman <kel at otaku42.de> wrote:
> On Sun, 17 Apr 2011 01:12:35 AM Thorben Jändling wrote:
>> Package: initscripts
>> Version: 2.88dsf-13.1
>> Severity: critical
>> Tags: squeeze
>> Justification: breaks unrelated software
>> After upgrade from lenny to squeeze my system no longer boots.
>> Here is the boot up text:
>> Synthesizing the initial hotplug events...done.
>> Waiting for /dev to be fully populated...[ 6.221138] input: PC Speaker as /devices/platform/pcspkr/input/input0
>> [ 6.291937] AMD Geode RNG detected
>> [ 7.053147] padlock: VIA PadLock not detected.
>> [ 7.213202] geode-aes: GEODE AES engine enabled.
>> [ 7.299985] Error: Driver 'pcspkr' is already registered, aborting...
>> [ 7.554242] kjournald starting. Commit interval 5 seconds
>> [ 7.603203] kjournald starting. Commit interval 5 seconds
>> [ 7.686370] kjournald starting. Commit interval 5 seconds
>> [ 7.692588] EXT3 FS on sdb3, internal journal
>> [ 7.697022] EXT3 FS on sdb2, internal journal
>> [ 7.701965] EXT3-fs: mounted filesystem with ordered data mode.
>> [ 7.707988] EXT3 FS on sdb5, internal journal
>> [ 7.712420] EXT3-fs: mounted filesystem with ordered data mode.
>> [ 7.718384] EXT3-fs: mounted filesystem with ordered data mode.
> Why are volumes being mounted at this point? What is the output of
> "ls -1 /etc/rcS.d/", and content of /etc/fstab?
> Is there a custom udev rule in there auto-mounting volumes?
> Thanks, Kel.
>> Activating swap...[ 8.216609] Adding 497972k swap on /dev/sdb1. Priority:-1 extents:1 across:497972k
>> Checking root file system...fsck from util-linux-ng 2.17.2
>> /: clean, 57717/137360 files, 316504/549360 blocks
>> [ 8.995602] leds_alix2: system is recognized as "PC Engines ALIX.2"
>> [ 9.027061] Registered led device: alix:1
>> [ 9.065850] Registered led device: alix:2
>> Cleaning up ifupdown....
>> [ 9.095594] Registered led device: alix:3
>> Loading kernel modules...done.
>> Setting up networking....
>> Activating lvm and md swap...done.
>> Checking file systems...fsck from util-linux-ng 2.17.2
>> /dev/sdb2 is mounted. e2fsck: Cannot continue, aborting.
>> /dev/sdb3 is mounted. e2fsck: Cannot continue, aborting.
>> /dev/sdb5 is mounted. e2fsck: Cannot continue, aborting.
>> fsck died with exit status 8
>> failed (code 8).
>> File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Please repair the file system manually. ... failed!
>> A maintenance shell will now be started. CONTROL-D will terminate this shell and resume system boot. ... (warning).
>> Give root password for maintenance
>> (or type Control-D to continue): [ 14.297635] usb 1-2: new high speed USB device using ehci_hcd and address 2
>> [ 14.435250] usb 1-2: New USB device found, idVendor=1058, idProduct=1003
>> [ 14.441984] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
>> [ 14.449147] usb 1-2: Product: External HDD
>> [ 14.453634] usb 1-2: Manufacturer: Western Digital
>> The /var/log/fsck/checkfs files does not say anything more then the error given here.
>> With ctrl+d the system boots normally, however this is a headless system, and I rather not have to keep attaching a serial cable..
>> Thank you
>> -- System Information:
>> Debian Release: 6.0.1
>> APT prefers stable
>> APT policy: (990, 'stable')
>> Architecture: i386 (i586)
>> Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
>> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
>> Shell: /bin/sh linked to /bin/bash
>> Versions of packages initscripts depends on:
>> ii coreutils 8.5-1 GNU core utilities
>> ii debianutils 3.4 Miscellaneous utilities specific t
>> ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
>> ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
>> ii mount 2.17.2-9 Tools for mounting and manipulatin
>> ii sysv-rc 2.88dsf-13.1 System-V-like runlevel change mech
>> ii sysvinit-utils 2.88dsf-13.1 System-V-like utilities
>> Versions of packages initscripts recommends:
>> ii e2fsprogs 1.41.12-2 ext2/ext3/ext4 file system utiliti
>> ii psmisc 22.11-1 utilities that use the proc file s
>> initscripts suggests no packages.
>> -- no debconf information
>> Pkg-sysvinit-devel mailing list
>> Pkg-sysvinit-devel at lists.alioth.debian.org
More information about the Pkg-sysvinit-devel