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

Problem with drive not spinning down

Expand Messages
  • jinnan_tonnix
    Hi all, Yes, another spin-down problem. If any UberSlugger out there can help with this I d be really grateful. I ve read everything I can find in the groups
    Message 1 of 1 , Nov 1, 2006
    • 0 Attachment

      Hi all,

      Yes, another spin-down problem. If any UberSlugger out there can help with this I'd be really grateful. I've read everything I can find in the groups and wikis; I think I've done everything right, but I just can't get it to work.

      First, the hardware:

      • NSLU2, runing Unslung V2.3R63-uNSLUng-6.8-beta
      • Buffalo Drivestation 300GB, with sleep timer set to 10 mins. I know this works as it shuts down/wakes up upon connection, and sleeps when connected to a Windows machine.

      The problem - the hard disk is accessed every 5 seconds. The drive's LED shows a very brief flash , so clearly 'something'  is happening every 5 seconds. Running dmesg shows this line:

      kjournald starting.  Commit interval 5 seconds

      so this looks like the journalling writes every 5 seconds. If so, why doesn't everybody else get this problem?

      I've installed the recommended scripts, shown below. Note the scripts are adjusted for drive 1 (sdb)


      #
      # cd /unslung
      # ls -al
      drwxr-xr-x    2 root     root         4096 Oct 31 01:00 .
      drwxrwxr-x   29 admin    everyone     4096 Nov  1 18:45 ..
      -rwxr-xr-x    1 root     root          705 Oct 29 22:25 rc.bootbin
      -rwxr-xr-x    1 root     root          491 Oct 31 00:59 rc.local
      # cat *
      #!/bin/sh
      # /unslung/rc.bootbin
      # Tested with unslung firmware 5.5
      # create ramdisk for /var and /dev

      /bin/echo "Creating ramfs for /dev:"
      /bin/mount -t ramfs ramfs /mnt/tmpmnt
      /bin/cp -rp /dev/* /mnt/tmpmnt/
      /bin/mkdir -p /dev.state
      /bin/mount -o bind /dev /dev.state
      /bin/mount -o bind /mnt/tmpmnt /dev
      /bin/umount /mnt/tmpmnt
      /bin/echo "Creating ramfs for /var:"
      /bin/mount -t ramfs ramfs /mnt/tmpmnt -o maxsize=256
      /bin/cp -rp /var/* /mnt/tmpmnt/
      /bin/mkdir -p /var.state
      /bin/mount -o bind /var /var.state
      /bin/mount -o bind /mnt/tmpmnt /var
      /bin/umount /mnt/tmpmnt

      # restart logging daemons
      /bin/killall syslogd
      /bin/killall klogd

      # Return and continue execution of system rc.
      return 1
      # [EOF]

       

      #!/bin/sh
      # /unslung/rc.local
      # A diversion script to remount the drive(s) without access
      # times being recorded (the update of access times can
      # prevent drives sleeping)

      # Usually it is enough just to do /sda1 as this is the usually
      # the one that holds the system.
      /bin/echo "Remounting /dev/sdb1 with noatime"
      /bin/mount -o remount,rw,noatime /dev/sdb1
      /bin/echo  "Remounting /dev/sdb2 with noatime"
      /bin/mount -o remount,rw,noatime /dev/sdb2

      # return 1
      # EOF - include this line

      I think the first thing to check is to see if the mounts are correct My knowledge of Linux isn't brilliant, but it looks like dev.state is mounted on /dev/sdb1. Is this supposed to be like this? Could someone compare there system, please?

      Reult of cat /proc/mounts

      # cat /proc/mounts
      rootfs / rootfs rw 0 0
      /dev/root /initrd jffs2 rw 0 0
      /dev/sdb1 / ext3 rw,noatime 0 0
      /proc /proc proc rw 0 0
      usbdevfs /proc/bus/usb usbdevfs rw 0 0
      /dev/sdb1 /dev.state ext3 rw,noatime 0 0
      ramfs /dev ramfs rw 0 0
      /dev/sdb1 /var.state ext3 rw,noatime 0 0
      ramfs /var ramfs rw 0 0
      /dev/sdb1 /share/hdd/data ext3 rw,noatime 0 0
      /dev/sdb2 /share/hdd/conf ext3 rw,noatime 0 0

      Result of mount

      # mount
      /dev/sdb1 on /initrd type jffs2 (rw)
      /dev/sdb1 on / type ext3 (rw,noatime)
      /proc on /proc type proc (rw)
      usbdevfs on /proc/bus/usb type usbdevfs (rw)
      /dev/sdb1 on /dev.state type ext3 (rw,noatime)
      ramfs on /dev type ramfs (rw)
      /dev/sdb1 on /var.state type ext3 (rw,noatime)
      ramfs on /var type ramfs (rw)
      /dev/sdb1 on /share/hdd/data type ext3 (rw,noatime)
      /dev/sdb2 on /share/hdd/conf type ext3 (rw,noatime)

      Anybody got any pointers for me?

      Thanks for your time!

    Your message has been successfully submitted and would be delivered to recipients shortly.