Loading ...
Sorry, an error occurred while loading the content.

rootfs not mounted on external disk

Expand Messages
  • Kamin Whitehouse
    After unslinging a new unit, everything works fine except that rootfs is not being remounted on the external disk. After some digging, I piped the output of
    Message 1 of 2 , Oct 17, 2005
    • 0 Attachment
      After unslinging a new unit, everything works fine
      except that rootfs is not being remounted on the
      external disk. After some digging, I piped the output
      of the /linuxrc script to a file, and this is the
      error I get during the initial boot:

      # cat linuxrc.log
      Preferred root device is /dev/sda1 (disk 1)
      Sleeping while waiting for disk...
      20
      mount: Mounting /dev/sda1 on /mnt failed: No such
      device or address
      Can't find valid rootfs on /dev/sda1, using jffs2 ...
      Root filesystem will be mounted from /dev/mtdblock4
      ...

      However, when it finishes booting and I telnet in, I
      find that /dev/sda1 is successfully mounted as
      /shared/hdd/data, so the device must exist. It seems
      like the device is not being created until after the
      nslu2 is fully booted up and wants to mount everything
      in fstab. When is /linuxrc run, and are the /dev
      devices created by then?

      This general problem (rootfs being jffs2 mounted on
      the nslu2 instead of ext3 mounted on the external
      drive) has shown up with unslung 5.5 a few times on
      this mailing list, although no answer has ever been
      posted.

      I'm using unslung 5.5 with a 300GB seagate drive. On
      normal boot, dmesg shows two errors that look
      important, but I don't know how to fix them

      a. [error] ixEthMiiPhyScan : unexpected Mii PHY ID
      b. warning: maximal mount count reached

      I've attached the full dmsg output, as well as the
      "mount" and "df" output for good measure:


      >> mount
      /dev/mtdblock4 on / type jffs2 (rw)
      /proc on /proc type proc (rw)
      usbdevfs on /proc/bus/usb type usbdevfs (rw)
      /dev/sda1 on /share/hdd/data type ext3 (rw)
      /dev/sda2 on /share/hdd/conf type ext3 (rw,sync)

      >> df
      Filesystem 1k-blocks Used Available
      Use% Mounted on
      rootfs 6528 5328 1200
      82% /
      /dev/mtdblock4 6528 5328 1200
      82% /
      /dev/sda1 288260508 32568164 252763776
      11% /share/hdd/data
      /dev/sda2 116661 4166 111291
      4% /share/hdd/conf


      >> dmsg
      Linux version 2.4.22-xfs (unslung@...) (gcc
      version 3.4.4) #1 Sun Jun 12
      CPU: XScale-IXP425/IXC1100 revision 1 Machine: Intel
      IXDP425 Development Platform Warning: bad
      configuration page, trying to continue Security risk:
      creating user accessible mapping for 0x60000000 at
      0xff00f000 Security risk: creating user accessible
      mapping for 0x51000000 at 0xf1000000 On node 0
      totalpages: 8192
      zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0
      pages. Kernel command line: console=ttyS0,115200n8
      root=/dev/mtdblock4 rootfstype=jffs2 Relocating
      machine vectors to 0xffff0000 Calibrating delay
      loop... 131.48 BogoMIPS Memory: 32MB = 32MB total
      Memory: 30276KB available (1582K code, 274K data, 244K
      init)
      Dentry cache hash table entries: 4096 (order: 3, 32768
      bytes) Inode cache hash table entries: 2048 (order: 2,
      16384 bytes) Mount cache hash table entries: 512
      (order: 0, 4096 bytes) Buffer cache hash table
      entries: 1024 (order: 0, 4096 bytes)
      Page-cache hash table entries: 8192 (order: 3, 32768
      bytes)
      POSIX conformance testing by UNIFIX
      PCI Autoconfig: Found Bus 0, Device 1, Function 0
      PCI Autoconfig: BAR 0, Mem, size=0x1000,
      address=0x4bfff000
      PCI Autoconfig: Found Bus 0, Device 1, Function 1 PCI
      Autoconfig: BAR 0, Mem, size=0x1000,
      address=0x4bffe000 PCI Autoconfig: Found Bus 0, Device
      1, Function 2 PCI Autoconfig: BAR 0, Mem, size=0x100,
      address=0x4bffdf00 PCI: bus0: Fast back to back
      transfers disabled Linux NET4.0 for Linux 2.4
      Based upon Swansea University Computer Society
      NET3.039 Initializing RT netlink socket Starting
      kswapd VFS: Disk quotas vdquot_6.5.1 Journalled Block
      Device driver loaded devfs: v1.12c (20020818) Richard
      Gooch (rgooch@...) devfs: boot_options: 0x0
      Installing knfsd (copyright (C) 1996
      okir@...).
      JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by
      Axis Communications AB. i2c-core.o: i2c core module
      i2c-dev.o: i2c /dev entries driver module i2c-core.o:
      driver i2c-dev dummy driver registered.
      i2c-algo-bit.o: i2c bit algorithm module version 2.6.1
      (20010830)
      pty: 256 Unix98 ptys configured
      Serial driver version 5.05c (2001-07-08) with
      MANY_PORTS SHARE_IRQ SERIAL_PCI en
      ttyS00 at 0xff000003 (irq = 15) is a XScale UART
      ttyS01 at 0xff001003 (irq = 13) is a XScale UART
      RAMDISK driver initialized: 16 RAM disks of 16384K
      size 1024 blocksize loop: loaded (max 8 devices) SCSI
      subsystem driver Revision: 1.00 * host:<NULL> IXP425
      Flash: Found an alias at 0x800000 for the chip at 0x0
      cfi_cmdset_0001: Erase suspend on write enabled 0:
      offset=0x0,size=0x20000,blocks=64 Using buffer write
      method Creating 6 MTD partitions on "IXP425 Flash":
      0x00000000-0x00040000 : "RedBoot"
      0x00040000-0x00060000 : "SysConf"
      0x00060000-0x00160000 : "Kernel"
      0x00160000-0x00180000 : "Ramdisk"
      0x00180000-0x007e0000 : "Flashdisk"
      0x007e0000-0x00800000 : "FIS directory" usb.c:
      registered new driver usbdevfs usb.c: registered new
      driver hub
      pci probe begin
      ehci_hcd 00:01.2: NEC Corporation USB 2.0
      ehci_hcd 00:01.2: irq 26, pci mem c3872f00
      usb.c: new USB bus registered, assigned bus number 1
      PCI: 00:01.2 PCI cache line size set incorrectly (0
      bytes) by BIOS/FW.
      PCI: 00:01.2 PCI cache line size corrected to 32.
      ehci_hcd 00:01.2: USB 2.0 enabled, EHCI 1.00, driver
      2003-Jun-19/2.4 hub.c: USB hub found hub.c: 5 ports
      detected pci probe ok host/usb-uhci.c: $Revision: 1.1
      $ time 21:18:46 Jun 12 2005
      host/usb-uhci.c: High bandwidth mode enabled
      host/usb-uhci.c: v1.275:USB Universal Host Controller
      Interface driver host/usb-ohci.c: USB OHCI at membase
      0xc387a000, IRQ 28 host/usb-ohci.c: usb-00:01.0, NEC
      Corporation USB usb.c: new USB bus registered,
      assigned bus number 2 hub.c: USB hub found hub.c: 3
      ports detected
      host/usb-ohci.c: USB OHCI at membase 0xc3880000, IRQ
      27
      host/usb-ohci.c: usb-00:01.1, NEC Corporation USB (#2)
      usb.c: new USB bus registered, assigned bus number 3
      hub.c: USB hub found hub.c: 2 ports detected
      Initializing USB Mass Storage driver...
      usb.c: registered new driver usb-storage
      USB Mass Storage support registered.
      i2c-dev.o: Registered 'IXP425 I2C Adapter' as minor 0
      i2c-core.o: adapter IXP425 I2C Adapter registered as
      adapter 0.
      NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP,
      UDP, TCP, IGMP IP: routing cache hash table of 512
      buckets, 4Kbytes TCP: Hash tables configured
      (established 2048 bind 4096) IP-Config: No network
      devices available. NET4: Unix domain sockets 1.0/SMP
      for Linux NET4.0.
      NetWinder Floating Point Emulator V0.97 (double
      precision) VFS: Mounted root (jffs2 filesystem).
      Freeing init memory: 244K hub.c: new USB device
      00:01.2-1, assigned address 2 Protocol: Transparent
      SCSI before kernel thread
      *** detect:usb-storage
      * scsi_register: usb-storage-1,
      * scsi_reg, hostno:1 prot is 49
      * scsi_reg, retval->host_no:1
      scsi1 : SCSI emulation for USB Mass Storage devices
      ! scan_scsis
      do read capacity!!!
      read capacity ok!!!
      The capacity is 586072368
      *** 49
      31 port connect!!!!!
      Vendor: ST330083 Model: 1A Rev: 0 0
      Type: Direct-Access ANSI SCSI
      revision: 02
      the host no is 1
      * sd_attach:0 Attached scsi disk sda at scsi1, channel
      0, id 0, lun 0 SCSI device sda: 586072368 512-byte
      hdwr sectors (300069 MB) Partition check:
      /dev/scsi/host1/bus0/target0/lun0: p1 p2 p3 WARNING:
      USB Mass Storage data integrity not assured
      USB Mass Storage device found at 2 Module init.
      ixp425_eth:
      Initializing IXP425 NPE Ethernet driver software v.
      1.1
      ixp425_eth: CPU clock speed (approx) = 0 MHz
      [error] ixEthMiiPhyScan : unexpected Mii PHY ID
      00008201
      ixp425_eth: ixp0 is using the PHY at address 1
      ixp425_eth: ixp1 is using the PHY at address 0
      ixp425_eth: ixEthMiiLinkStatus failed on PHY0.
      Can't determine
      the auto negotiated parameters. Using default values.
      enable_irq(22) unbalanced from c39451bc
      X1226: I2C based RTC driver.
      i2c-core.o: driver X1226 registered.
      X1226: found X1226 on IXP425 I2C Adapter
      i2c-core.o: client [X1226] registered to adapter
      [IXP425 I2C Adapter](pos. 0).
      atr is 20
      kjournald starting. Commit interval 5 seconds EXT3-fs
      warning: maximal mount count reached, running e2fsck
      is recommended EXT3 FS 2.4-0.9.19, 19 August 2002 on
      sd(8,1), internal journal EXT3-fs: mounted filesystem
      with ordered data mode. kjournald starting. Commit
      interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002
      on sd(8,2), internal journal
      EXT3-fs: mounted filesystem with ordered data mode.
      kjournald starting. Commit interval 5 seconds EXT3 FS
      2.4-0.9.19, 19 August 2002 on sd(8,2), internal
      journal
      EXT3-fs: mounted filesystem with ordered data mode.
      Adding Swap: 56220k swap-space (priority -1) EXT3-fs
      warning: maximal mount count reached, running e2fsck
      is recommended EXT3 FS 2.4-0.9.19, 19 August 2002 on
      sd(8,1), internal journal




      __________________________________
      Yahoo! Mail - PC Magazine Editors' Choice 2005
      http://mail.yahoo.com
    • cnczane
      My read of linuxrc suggests to me that it could fail for two reasons: 1. the mount command fails 2. neither /bin/init nor /sbin/init exist on the mounted
      Message 2 of 2 , Jan 3, 2006
      • 0 Attachment
        My read of linuxrc suggests to me that it could fail for two reasons:
        1. the 'mount' command fails
        2. neither /bin/init nor /sbin/init exist on the mounted device are found

        If fails, then unmounts the device and continues to look for something
        bootable.

        "If it were me" I'd try to arrange an 'pipe' of stderror into your
        /root/linuxrc.log (famous from another post). I'm not sure how to do
        it (or even if it can be done in linuxrc), but I'd be looking for
        something akin to csh shell's '>&' pipe.

        Also, elsewhere I read of someone changing the 'wait' loop in linuxrc
        to 'try longer' on his drive.
        --
        CZ
      Your message has been successfully submitted and would be delivered to recipients shortly.