[Pkg-sysvinit-devel] Bug#482273: initscripts: mountall.sh doesn't wait for kernel to scan for USB storage devices

Lennart Jütte debian at lennartjuette.de
Sat Sep 24 19:24:02 UTC 2011


Same problem here…

On my bootleg it looks like the Disk is found (see lines [   24.031380] to [   24.270993]). But the disk is not available when mountall.sh is run. Then it will be detected again. Mounting it at this point works as expected.


initscripts: 2.88dsf-13.1
deban_version: 6.0.2

Uncompressing Linux... done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-30) (ben at decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 Wed Jan 12 15:27:07 UTC 2011
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell eSATA SheevaPlug Reference Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 256MB 256MB = 512MB total
[    0.000000] Memory: 508544KB available (3512K code, 583K data, 124K init, 0K highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.474969] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714924] Security Framework initialized
[   21.714943] SELinux:  Disabled at boot.
[   21.714970] Mount-cache hash table entries: 512
[   21.715271] Initializing cgroup subsys ns
[   21.715287] Initializing cgroup subsys cpuacct
[   21.715297] Initializing cgroup subsys devices
[   21.715306] Initializing cgroup subsys freezer
[   21.715315] Initializing cgroup subsys net_cls
[   21.715372] CPU: Testing write buffer coherency: ok
[   21.716112] devtmpfs: initialized
[   21.717864] regulator: core version 0.5
[   21.718078] NET: Registered protocol family 16
[   21.718589] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.718602] Feroceon L2: Enabling L2
[   21.718635] Feroceon L2: Cache support initialised.
[   21.720587] bio: create slab <bio-0> at 0
[   21.720857] vgaarb: loaded
[   21.721325] Switching to clocksource orion_clocksource
[   21.725141] NET: Registered protocol family 2
[   21.725388] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[   21.726187] TCP established hash table entries: 16384 (order: 5, 131072 bytes:
[   21.726721] TCP: Hash tables configured (established 16384 bind 16384)
[   21.726731] TCP reno registered
[   21.726887] NET: Registered protocol family 1
[   21.727058] Unpacking initramfs...
[   22.158777] Freeing initrd memory: 6576K
[   22.158890] NetWinder Floating Point Emulator V0.97 (double precision)
[   22.159139] audit: initializing netlink socket (disabled)
[   22.159173] type=2000 audit(0.670:1): initialized
[   22.165805] VFS: Disk quotas dquot_6.5.2
[   22.166079] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   22.166175] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   22.166841] msgmni has been set to 1006
[   22.168544] alg: No test for stdrng (krng)
[   22.168669] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[   22.168682] io scheduler noop registered
[   22.168690] io scheduler anticipatory registered
[   22.168698] io scheduler deadline registered
[   22.168887] io scheduler cfq registered (default)
[   22.175023] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   22.175501] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.497083] console [ttyS0] enabled
[   22.501150] NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bit)
[   22.509844] Scanning device for bad blocks
[   22.654865] Bad eraseblock 3799 at 0x00001dae0000
[   22.669231] Bad eraseblock 4059 at 0x00001fb60000
[   22.675304] Creating 3 MTD partitions on "orion_nand":
[   22.680468] 0x000000000000-0x000000100000 : "u-boot"
[   22.686044] 0x000000100000-0x000000500000 : "uImage"
[   22.691524] 0x000000500000-0x000020000000 : "root"
[   22.697803] mice: PS/2 mouse device common for all mice
[   22.703324] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   22.709251] i2c /dev entries driver
[   22.712974] cpuidle: using governor ladder
[   22.717202] cpuidle: using governor menu
[   22.721239] Registered led device: plug:green:health
[   22.726297] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   22.732708] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   22.771391] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   22.811388] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   22.851387] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   22.891388] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   22.898111] TCP cubic registered
[   22.901378] NET: Registered protocol family 17
[   22.906180] registered taskstats version 1
[   22.910960] rtc-mv rtc-mv: setting system clock to 2097-04-13 10:03:08 UTC (4016685788)
[   22.919025] Initalizing network drop monitor service
[   22.924079] Freeing init memory: 124K
Loading, please wait...
[   23.001793] udev[44]: starting version 164
[   23.298017] SCSI subsystem initialized
[   23.333664] MV-643xx 10/100/1000 ethernet driver version 1.4
[   23.339614] mv643xx_eth smi: probed
[   23.413830] net eth0: port 0 with MAC address f0:ad:4e:00:2f:ea
[   23.505137] usbcore: registered new interface driver usbfs
[   23.512053] usbcore: registered new interface driver hub
[   23.518142] usbcore: registered new device driver usb
[   23.547298] mmc0: mvsdio driver initialized, using GPIO 47 for card detection
[   23.572907] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   23.579527] orion-ehci orion-ehci.0: Marvell Orion EHCI
[   23.584873] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   23.621389] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   23.636403] mmc0: new high speed SDHC card at address 0002
[   23.642916] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   23.648918] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   23.655767] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   23.663037] usb usb1: Product: Marvell Orion EHCI
[   23.667760] usb usb1: Manufacturer: Linux 2.6.32-5-kirkwood ehci_hcd
[   23.674152] usb usb1: SerialNumber: orion-ehci.0
[   23.691951] mmcblk0: mmc0:0002 00000 7.49 GiB
[   23.696586]  mmcblk0:
[   23.699326] usb usb1: configuration #1 chosen from 1 choice
[   23.705242]  p1 p2 p3 <
[   23.707944] hub 1-0:1.0: USB hub found
[   23.711981]  p5 >
[   23.714820] hub 1-0:1.0: 1 port detected
[   23.718992] sata_mv sata_mv.0: version 1.28
[   23.726199] sata_mv sata_mv.0: slots 32 ports 2
[   23.748386] scsi0 : sata_mv
[   23.758971] scsi1 : sata_mv
[   23.764317] ata1: SATA max UDMA/133 irq 21
[   23.768444] ata2: SATA max UDMA/133 irq 21
[   24.031380] usb 1-1: new high speed USB device using orion-ehci and address 2
[   24.121372] ata1: SATA link down (SStatus 0 SControl F300)
[   24.182659] usb 1-1: New USB device found, idVendor=13fd, idProduct=1840
[   24.189391] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   24.196577] usb 1-1: Product: USB 2.0 Drive
[   24.201039] usb 1-1: Manufacturer: PI-239
[   24.205256] usb 1-1: SerialNumber: 313031303331504247343030
[   24.212559] usb 1-1: configuration #1 chosen from 1 choice
[   24.252155] Initializing USB Mass Storage driver...
[   24.257302] scsi2 : SCSI emulation for USB Mass Storage devices
[   24.264339] usbcore: registered new interface driver usb-storage
[   24.270993] USB Mass Storage support registered.
[   24.471377] ata2: SATA link down (SStatus 0 SControl F300)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... [   24.588640] device-mapper: uevent: version 1.0.3
[   24.595461] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel at redhat.com
done.
Begin: Running /scripts/local-premount ... done.
[   24.704861] kjournald starting.  Commit interval 5 seconds
[   24.710394] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
Starting the hotplug events dispatcher: udevd[   25.912034] udev[163]: starting 
version 164
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting parameters of disc: (none).
Setting up LVM Volume Groups  File-based locking initialisation failed.
  Reading all physical volumes.  This may take a while...
  No volume groups found
  No volume groups found
  File-based locking initialisation failed.
  No volume groups found
.
y:-1 extents:1 across:385016k SS
done.
Checking root file system...fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/mmcblk0p2: clean, 33908/451584 files, 338351/1805824 blocks
done.
[   27.714262] EXT3-fs warning: checktime reached, running e2fsck is recommended
[   27.731943] EXT3 FS on mmcblk0p2, internal journal
Cleaning up ifupdown....
[   27.922867] loop: module loaded
Setting up networking....
[   28.004402] cryptodev: driver 1.0 loaded.
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
/dev/mmcblk0p1: clean, 21/124496 files, 39520/248832 blocks
e2fsck 1.41.12 (17-May-2010)
fsck.ext3: No such file or directory while trying to open /dev/sda1

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

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!
 resume system boot. ... (warning).
Give root password for maintenance
PI-239   USB 2.0 Drive    1.08 PQ: 0 ANSI: 4
GiB)
[   29.332801] sd 2:0:0:0: [sda] Write Protect is off
[   29.337630] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   29.345053] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   29.351180]  sda: sda1
[   31.861429] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   31.867554] sd 2:0:0:0: [sda] Attached SCSI disk







More information about the Pkg-sysvinit-devel mailing list