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

Re: [nslu2-linux] unsling to a USB flash drive - slug not starting

Expand Messages
  • Mike Westerhof
    Did you reflash the slug before you unslung to the flash drive? Check to see if the /dev directory on the flash drive is empty (or has nothing but an ordinary
    Message 1 of 4 , Jan 14, 2006
    • 0 Attachment
      Did you reflash the slug before you unslung to the flash drive?
       
      Check to see if the /dev directory on the flash drive is empty (or has nothing but an ordinary file named "console" in it).  If so, you'll need to redo the "unsling" operation, but you have to set up the slug so that it boots up in a manner suitable for doing so.
      If this is the problem, then:
        reboot the slug with no drives
        telnet in and remove the "/.unslung" and "/.sd??root" files on the internal flash
        reboot once again
        telnet in again, attach the external flash drive, and "unsling" it again.
        reboot with the flash drive attached; all should be well this time.
       
      (Shameless plug for unslung 6.5-alpha: the "unslung" script in unslung 6.x-alpha detects this situation and will not perform the "broken" unsling, BTW)
       
      Mike (mwester)
      ----- Original Message -----
      Sent: Sunday, January 15, 2006 1:03 AM
      Subject: [nslu2-linux] unsling to a USB flash drive - slug not starting

      Hi All,
       
      I just wanted to make a quick presentation of asterisk running on the slug and I decided that it will be easier to have it running from a USB flash drive (and not have to carry my USB HD with me).
       
      So, I restarted without drive attached, enabled telnet, logged in as root and plugged the flash drive as drive1. (The drive was previously used with unslung 3.18, but I cleared the content of the the 2 ext3 partitions previously.)
       
      As the drive was not recognized from the admin page, I decided to try to format on the slug (now that I'm running 5.5beta). The format ended successfully  (it was failing on 3.18 and I had to format it manually back then).
       
      Unsling went fine
      Restarted the slug...
       
      PROBLEM:
      The slug apparently hangs:
      - while booting there is activity on the flash disk
      - the slug LEDs ends up (ready-green, ethernet-green, disk1-green)
      but there is no beep and I cannot see the admin pages.
      It does not respond to it's previous configured static IP address  and my router does not list any new DHCP client.
      Does not respond to ping either.
       
       
      Plugging in the flash drive to a Linux system (or even to the slug after booting without drive attached) shows that all the files are where is supposed to be.
       
      Do you guys have any idea what I am missing ?
       
      Thank you
      Corneliu
       
      # fdisk -l /dev/sda
      Disk /dev/sda: 512 MB, 512483328 bytes
      16 heads, 62 sectors/track, 1009 cylinders
      Units = cylinders of 992 * 512 = 507904 bytes
         Device Boot      Start         End      Blocks   Id  System
      /dev/sda1               1         622      308481   83  Linux
      /dev/sda2             623         880      127968   83  Linux
      /dev/sda3             881        1009       63984   82  Linux swap
      #ls -l sda1
      total 54
      drwxrwxr-x  2 root root      1024 Jan 14 22:03 bin
      drwxr-xr-x  2 root root      1024 Dec 31  1969 dev
      drwxr-xr-x  6 root root      1024 Jan 14 22:03 etc
      drwxrwxr-x  3 root root      1024 Dec 31  1969 home
      drwxr-xr-x  2 root root      1024 Dec 31  1969 initrd
      drwxrwxr-x  3 root root      2048 Jan 14 22:03 lib
      -rwxr-xr-x  1 root root      3685 Dec 31  1969 linuxrc
      drwxr-xr-x  2 root root     12288 Dec 31  1969 lost+found
      drwxrwxr-x  5 root root      1024 Dec 31  1969 mnt
      drwxrwxr-x  3 root root      1024 Dec 31  1969 opt
      dr-xr-xr-x  2 root root      1024 Dec 31  1969 proc
      drwxrwxr-x  2 slug asterisk  1024 Jan 14 20:53 public
      -rw-------  1 root root     16096 Jan 14 22:05 quota.user
      -rw-------  1 root root     16096 Jan 14 21:59 quota.user~
      drwxrwxr-x  2 root root      1024 Jan 14 22:04 sbin
      drwxrwxr-x  4 slug asterisk  1024 Dec 31  1969 share
      drwxrwxrwt  2 root root      1024 Jan 14 22:03 tmp
      drwxr-xr-x  2 root root      1024 Dec 31  1969 unslung
      drwxr-xr-x  2 root root      1024 Dec 31  1969 upload
      drwxrwxr-x  8 root root      1024 Dec 31  1969 usr
      drwxr-xr-x  2 root root      1024 Dec 31  1969 var
      [root@doban ~]# ls -l sda2
      total 23
      -rw-r--r--  1 root root     0 Jan 14 20:53 backup_sh.conf
      drwxrwxr-x  2 root root  1024 Jan 14 20:53 config
      -rw-r--r--  1 root root   134 Jan 14 20:53 group
      drwx------  2 root root 12288 Jan 14 20:52 lost+found
      -rw-r--r--  1 root root   346 Jan 14 20:53 passwd
      -rw-r--r--  1 root root   205 Jan 14 22:00 server.log
      drwxrwxr-x  2 root root  1024 Jan 14 20:53 share
      -rw-r--r--  1 root root    81 Jan 14 20:53 share.info
      -rw-r--r--  1 root root   798 Jan 14 20:53 smb.conf
      -rw-r--r--  1 root root   209 Jan 14 20:53 smbpasswd
      drwxrwxr-x  2 root root  1024 Jan 14 22:01 tmp
      drwxrwxr-x  2 root root  1024 Jan 14 20:53 upgrade
      -rw-r--r--  1 root root    48 Jan 14 20:53 usrgrp.info
       


      Yahoo! Photos
      Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.

    • CORNELIU DOBAN
      Thanks Mike! That was the problem. Regards, Corneliu Mike Westerhof wrote: Did you reflash the slug before you unslung to the flash drive?
      Message 2 of 4 , Jan 15, 2006
      • 0 Attachment
        Thanks Mike!
        That was the problem.
         
        Regards,
        Corneliu
         

        Mike Westerhof <mwester@...> wrote:
        Did you reflash the slug before you unslung to the flash drive?
         
        Check to see if the /dev directory on the flash drive is empty (or has nothing but an ordinary file named "console" in it).  If so, you'll need to redo the "unsling" operation, but you have to set up the slug so that it boots up in a manner suitable for doing so.
        If this is the problem, then:
          reboot the slug with no drives
          telnet in and remove the "/.unslung" and "/.sd??root" files on the internal flash
          reboot once again
          telnet in again, attach the external flash drive, and "unsling" it again.
          reboot with the flash drive attached; all should be well this time.
         
        (Shameless plug for unslung 6.5-alpha: the "unslung" script in unslung 6.x-alpha detects this situation and will not perform the "broken" unsling, BTW)
         
        Mike (mwester)
        ----- Original Message -----
        Sent: Sunday, January 15, 2006 1:03 AM
        Subject: [nslu2-linux] unsling to a USB flash drive - slug not starting

        Hi All,
         
        I just wanted to make a quick presentation of asterisk running on the slug and I decided that it will be easier to have it running from a USB flash drive (and not have to carry my USB HD with me).
         
        So, I restarted without drive attached, enabled telnet, logged in as root and plugged the flash drive as drive1. (The drive was previously used with unslung 3.18, but I cleared the content of the the 2 ext3 partitions previously.)
         
        As the drive was not recognized from the admin page, I decided to try to format on the slug (now that I'm running 5.5beta). The format ended successfully  (it was failing on 3.18 and I had to format it manually back then).
         
        Unsling went fine
        Restarted the slug...
         
        PROBLEM:
        The slug apparently hangs:
        - while booting there is activity on the flash disk
        - the slug LEDs ends up (ready-green, ethernet-green, disk1-green)
        but there is no beep and I cannot see the admin pages.
        It does not respond to it's previous configured static IP address  and my router does not list any new DHCP client.
        Does not respond to ping either.
         
         
        Plugging in the flash drive to a Linux system (or even to the slug after booting without drive attached) shows that all the files are where is supposed to be.
         
        Do you guys have any idea what I am missing ?
         
        Thank you
        Corneliu
         
        # fdisk -l /dev/sda
        Disk /dev/sda: 512 MB, 512483328 bytes
        16 heads, 62 sectors/track, 1009 cylinders
        Units = cylinders of 992 * 512 = 507904 bytes
           Device Boot      Start         End      Blocks   Id  System
        /dev/sda1               1         622      308481   83  Linux
        /dev/sda2             623         880      127968   83  Linux
        /dev/sda3             881        1009       63984   82  Linux swap
        #ls -l sda1
        total 54
        drwxrwxr-x  2 root root      1024 Jan 14 22:03 bin
        drwxr-xr-x  2 root root      1024 Dec 31  1969 dev
        drwxr-xr-x  6 root root      1024 Jan 14 22:03 etc
        drwxrwxr-x  3 root root      1024 Dec 31  1969 home
        drwxr-xr-x  2 root root      1024 Dec 31  1969 initrd
        drwxrwxr-x  3 root root      2048 Jan 14 22:03 lib
        -rwxr-xr-x  1 root root      3685 Dec 31  1969 linuxrc
        drwxr-xr-x  2 root root     12288 Dec 31  1969 lost+found
        drwxrwxr-x  5 root root      1024 Dec 31  1969 mnt
        drwxrwxr-x  3 root root      1024 Dec 31  1969 opt
        dr-xr-xr-x  2 root root      1024 Dec 31  1969 proc
        drwxrwxr-x  2 slug asterisk  1024 Jan 14 20:53 public
        -rw-------  1 root root     16096 Jan 14 22:05 quota.user
        -rw-------  1 root root     16096 Jan 14 21:59 quota.user~
        drwxrwxr-x  2 root root      1024 Jan 14 22:04 sbin
        drwxrwxr-x  4 slug asterisk  1024 Dec 31  1969 share
        drwxrwxrwt  2 root root      1024 Jan 14 22:03 tmp
        drwxr-xr-x  2 root root      1024 Dec 31  1969 unslung
        drwxr-xr-x  2 root root      1024 Dec 31  1969 upload
        drwxrwxr-x  8 root root      1024 Dec 31  1969 usr
        drwxr-xr-x  2 root root      1024 Dec 31  1969 var
        [root@doban ~]# ls -l sda2
        total 23
        -rw-r--r--  1 root root     0 Jan 14 20:53 backup_sh.conf
        drwxrwxr-x  2 root root  1024 Jan 14 20:53 config
        -rw-r--r--  1 root root   134 Jan 14 20:53 group
        drwx------  2 root root 12288 Jan 14 20:52 lost+found
        -rw-r--r--  1 root root   346 Jan 14 20:53 passwd
        -rw-r--r--  1 root root   205 Jan 14 22:00 server.log
        drwxrwxr-x  2 root root  1024 Jan 14 20:53 share
        -rw-r--r--  1 root root    81 Jan 14 20:53 share.info
        -rw-r--r--  1 root root   798 Jan 14 20:53 smb.conf
        -rw-r--r--  1 root root   209 Jan 14 20:53 smbpasswd
        drwxrwxr-x  2 root root  1024 Jan 14 22:01 tmp
        drwxrwxr-x  2 root root  1024 Jan 14 20:53 upgrade
        -rw-r--r--  1 root root    48 Jan 14 20:53 usrgrp.info
         

        Yahoo! Photos
        Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.


        Yahoo! Photos
        Got holiday prints? See all the ways to get quality prints in your hands ASAP.

      • Alex Kristensen
        Thanks Mike I spent 5-6 hours working on this - maybe I should just have spent my time making at accurate search in the Yahoo Group instead :-) Alex ...
        Message 3 of 4 , Jan 21, 2006
        • 0 Attachment
          Thanks Mike

          I spent 5-6 hours working on this - maybe I should just have spent my
          time making at accurate search in the Yahoo Group instead :-)

          Alex

          --- In nslu2-linux@yahoogroups.com, CORNELIU DOBAN
          <corneliu_doban@y...> wrote:
          >
          > Thanks Mike!
          > That was the problem.
          >
          > Regards,
          > Corneliu
          >
          >
          > Mike Westerhof <mwester@d...> wrote:
          > Did you reflash the slug before you unslung to the flash
          drive?
          >
          > Check to see if the /dev directory on the flash drive is empty (or
          has nothing but an ordinary file named "console" in it). If so,
          you'll need to redo the "unsling" operation, but you have to set up
          the slug so that it boots up in a manner suitable for doing so.
          > If this is the problem, then:
          > reboot the slug with no drives
          > telnet in and remove the "/.unslung" and "/.sd??root" files on
          the internal flash
          > reboot once again
          > telnet in again, attach the external flash drive, and "unsling"
          it again.
          > reboot with the flash drive attached; all should be well this time.
          >
          > (Shameless plug for unslung 6.5-alpha: the "unslung" script in
          unslung 6.x-alpha detects this situation and will not perform the
          "broken" unsling, BTW)
          >
          > Mike (mwester)
          > ----- Original Message -----
          > From: CORNELIU DOBAN
          > To: nslu2-linux@yahoogroups.com
          > Sent: Sunday, January 15, 2006 1:03 AM
          > Subject: [nslu2-linux] unsling to a USB flash drive - slug not
          starting
          >
          >
          > Hi All,
          >
          > I just wanted to make a quick presentation of asterisk running on
          the slug and I decided that it will be easier to have it running from
          a USB flash drive (and not have to carry my USB HD with me).
          >
          > So, I restarted without drive attached, enabled telnet, logged in
          as root and plugged the flash drive as drive1. (The drive was
          previously used with unslung 3.18, but I cleared the content of the
          the 2 ext3 partitions previously.)
          >
          > As the drive was not recognized from the admin page, I decided to
          try to format on the slug (now that I'm running 5.5beta). The format
          ended successfully (it was failing on 3.18 and I had to format it
          manually back then).
          >
          > Unsling went fine
          > Restarted the slug...
          >
          > PROBLEM:
          > The slug apparently hangs:
          > - while booting there is activity on the flash disk
          > - the slug LEDs ends up (ready-green, ethernet-green, disk1-green)
          > but there is no beep and I cannot see the admin pages.
          > It does not respond to it's previous configured static IP address
          and my router does not list any new DHCP client.
          > Does not respond to ping either.
          >
          >
          > Plugging in the flash drive to a Linux system (or even to the slug
          after booting without drive attached) shows that all the files are
          where is supposed to be.
          >
          > Do you guys have any idea what I am missing ?
          >
          > Thank you
          > Corneliu
          >
          > # fdisk -l /dev/sda
          > Disk /dev/sda: 512 MB, 512483328 bytes
          > 16 heads, 62 sectors/track, 1009 cylinders
          > Units = cylinders of 992 * 512 = 507904 bytes
          > Device Boot Start End Blocks Id System
          > /dev/sda1 1 622 308481 83 Linux
          > /dev/sda2 623 880 127968 83 Linux
          > /dev/sda3 881 1009 63984 82 Linux swap
          >
          > #ls -l sda1
          > total 54
          > drwxrwxr-x 2 root root 1024 Jan 14 22:03 bin
          > drwxr-xr-x 2 root root 1024 Dec 31 1969 dev
          > drwxr-xr-x 6 root root 1024 Jan 14 22:03 etc
          > drwxrwxr-x 3 root root 1024 Dec 31 1969 home
          > drwxr-xr-x 2 root root 1024 Dec 31 1969 initrd
          > drwxrwxr-x 3 root root 2048 Jan 14 22:03 lib
          > -rwxr-xr-x 1 root root 3685 Dec 31 1969 linuxrc
          > drwxr-xr-x 2 root root 12288 Dec 31 1969 lost+found
          > drwxrwxr-x 5 root root 1024 Dec 31 1969 mnt
          > drwxrwxr-x 3 root root 1024 Dec 31 1969 opt
          > dr-xr-xr-x 2 root root 1024 Dec 31 1969 proc
          > drwxrwxr-x 2 slug asterisk 1024 Jan 14 20:53 public
          > -rw------- 1 root root 16096 Jan 14 22:05 quota.user
          > -rw------- 1 root root 16096 Jan 14 21:59 quota.user~
          > drwxrwxr-x 2 root root 1024 Jan 14 22:04 sbin
          > drwxrwxr-x 4 slug asterisk 1024 Dec 31 1969 share
          > drwxrwxrwt 2 root root 1024 Jan 14 22:03 tmp
          > drwxr-xr-x 2 root root 1024 Dec 31 1969 unslung
          > drwxr-xr-x 2 root root 1024 Dec 31 1969 upload
          > drwxrwxr-x 8 root root 1024 Dec 31 1969 usr
          > drwxr-xr-x 2 root root 1024 Dec 31 1969 var
          >
          > [root@doban ~]# ls -l sda2
          > total 23
          > -rw-r--r-- 1 root root 0 Jan 14 20:53 backup_sh.conf
          > drwxrwxr-x 2 root root 1024 Jan 14 20:53 config
          > -rw-r--r-- 1 root root 134 Jan 14 20:53 group
          > drwx------ 2 root root 12288 Jan 14 20:52 lost+found
          > -rw-r--r-- 1 root root 346 Jan 14 20:53 passwd
          > -rw-r--r-- 1 root root 205 Jan 14 22:00 server.log
          > drwxrwxr-x 2 root root 1024 Jan 14 20:53 share
          > -rw-r--r-- 1 root root 81 Jan 14 20:53 share.info
          > -rw-r--r-- 1 root root 798 Jan 14 20:53 smb.conf
          > -rw-r--r-- 1 root root 209 Jan 14 20:53 smbpasswd
          > drwxrwxr-x 2 root root 1024 Jan 14 22:01 tmp
          > drwxrwxr-x 2 root root 1024 Jan 14 20:53 upgrade
          > -rw-r--r-- 1 root root 48 Jan 14 20:53 usrgrp.info
          >
          >
          >
          > ---------------------------------
          > Yahoo! Photos
          > Ring in the New Year with Photo Calendars. Add photos, events,
          holidays, whatever.
          >
          > ---------------------------------
          > YAHOO! GROUPS LINKS
          >
          >
          > Visit your group "nslu2-linux" on the web.
          >
          > To unsubscribe from this group, send an email to:
          > nslu2-linux-unsubscribe@yahoogroups.com
          >
          > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
          Service.
          >
          >
          > ---------------------------------
          >
          >
          >
          >
          >
          > ---------------------------------
          > Yahoo! Photos
          > Got holiday prints? See all the ways to get quality prints in your
          hands ASAP.
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.