OWFS på Buffalo Linkstation

OWFS - One Wire File System är en Linuxmjukvara som stödjer de flesta kommersiellt tillgängliga 1wire-enheterna. OWFS saknar helt möjligheter att presentera data - detta måste göras med tex RRDTool
Kategoriregler
Vill du visa bilder i ditt inlägg? Använd funktionen "Ladda upp bilaga" nedanför textrutan!
jed
Tar hemautomation på allvar
Inlägg: 179
Blev medlem: 16 apr 2011, 10:51
Ort: Stockholm

Re: OWFS på Buffalo Linkstation

Inlägg av jed »

Bra att det funkar nu :)

Ett tips är att döpa om startskriptet till owfs till owfs.sh eller något liknande. MyStartScript.sh säger inget om vad skriptet gör...
(glöm inte att köra update-rc.d owfs defaults igen efteråt)

Vilken runlevel kör du? Kör

Kod: Markera allt

who -r
Jag gissar att du kör run-level 2 eller 3, lite beroende på hur du satt upp ditt system.

Kolla vilken siffra ditt skript fått i /etc/rc2.d/S[två siffror]MyStartScript.sh
Se till att den körs EFTER startusb.sh, dvs att den har högre siffror än startusb.sh.
Ett bra namn för startskriptet är /etc/rc2.d/S99owfs.sh

Systemet kör startskripten i nummerordning när det bootar och du vill starta owfs ganska sent. Definitvt efter usb...
Bråkar den fortfarande kan det vara så att något inte hunnit starta ordentligt, då kan du prova att lägga in

Kod: Markera allt

sleep 30
på raden innan /opt/owfs/bin/owfs...
Alla startskript börjar på S och alla killskript börjar på K. Observera att det är VERSALT S och K som gäller.
Startskript körs när du går in i en runlevel och killskript när du lämnar den, tex när du startar om eller stänger av servern.
MartinF
Tar hemautomation på allvar
Inlägg: 141
Blev medlem: 04 jan 2010, 12:24
Ort: Sunne

Re: OWFS på Buffalo Linkstation

Inlägg av MartinF »

Nu loggas startförsöket som näst sista kommando i /var/log/boot. Därefter startas bara sshd.
Samma fel fortfarande tyvärr.
Albin polar 35,Laddomat, 3x750l, Danfoss ECL 100 & Sfinxs solfångare. Loggar och styr vedpanna, elpatron, solfångare, motorvärme och mycket annat med 1-wire, zwave, och webswitch via Domoticz.
jed
Tar hemautomation på allvar
Inlägg: 179
Blev medlem: 16 apr 2011, 10:51
Ort: Stockholm

Re: OWFS på Buffalo Linkstation

Inlägg av jed »

Har du lagt in sleep 30?
Provat att öka den till 60? Då tar visserligen uppstarten 1 minut längre, men om det löser problemet...
Jag har råkat ut för det här, men det var timeouts på iscsi som ställde till det.
MartinF
Tar hemautomation på allvar
Inlägg: 141
Blev medlem: 04 jan 2010, 12:24
Ort: Sunne

Re: OWFS på Buffalo Linkstation

Inlägg av MartinF »

Ja,
och nu också 60s.
Albin polar 35,Laddomat, 3x750l, Danfoss ECL 100 & Sfinxs solfångare. Loggar och styr vedpanna, elpatron, solfångare, motorvärme och mycket annat med 1-wire, zwave, och webswitch via Domoticz.
MartinF
Tar hemautomation på allvar
Inlägg: 141
Blev medlem: 04 jan 2010, 12:24
Ort: Sunne

Re: OWFS på Buffalo Linkstation

Inlägg av MartinF »

OWFS verkar inte autostarta pga "segmentation fault". Vad jag förstår så kan felet uppstå när program adresserar fysiska minnesplatser. Möjligen kan därför dessa tre första rader i bootloggen vara intressanta för någon med bättre kunskaper än mig:

Kod: Markera allt

root@MYNAS:/var/log# cat boot
Thu Jan  5 01:21:38 2012: Activating swap...done.
Thu Jan  5 01:21:38 2012: mount: you must specify the filesystem type
Thu Jan  5 01:21:38 2012: Cannot check root file system because it is not mounted read-only. ... ^[[31mfailed!^[[39;49m
Misstänker att detta kan vara intressant också:

Kod: Markera allt

root@MYNAS:/mnt# mount
/dev/sda2 on / type xfs (rw,noatime)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda1 on /boot type ext3 (ro,nosuid,nodev)
/dev/sda6 on /mnt/disk1 type xfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
OWFS on /mnt/1wire type fuse.OWFS (rw,nosuid,nodev,allow_other)
Förmodligen har jag missat något under installationen av Squeeze?
Albin polar 35,Laddomat, 3x750l, Danfoss ECL 100 & Sfinxs solfångare. Loggar och styr vedpanna, elpatron, solfångare, motorvärme och mycket annat med 1-wire, zwave, och webswitch via Domoticz.
jed
Tar hemautomation på allvar
Inlägg: 179
Blev medlem: 16 apr 2011, 10:51
Ort: Stockholm

Re: OWFS på Buffalo Linkstation

Inlägg av jed »

Hur ser /etc/fstab ut?
Kan köra följande och lista resultatet:
ls -l /etc/init.d
ls -l /etc/rc2.d
grep mount /etc/init.d/*
MartinF
Tar hemautomation på allvar
Inlägg: 141
Blev medlem: 04 jan 2010, 12:24
Ort: Sunne

Re: OWFS på Buffalo Linkstation

Inlägg av MartinF »

Kod: Markera allt

root@MYNAS:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# file system    mount point   type    options                  dump pass
/dev/sda2        /             xfs     defaults,noatime         0    1
/dev/sda1        /boot         ext3    ro,nosuid,nodev          0    2
/dev/sda5        none          swap    sw                       0    0
/dev/sda6        /mnt/disk1    xfs     defaults,noatime         0    0
proc             /proc         proc    defaults                 0    0
devpts           /dev/pts      devpts  gid=4,mode=620      0    0
tmpfs            /tmp          tmpfs   defaults                 0    0
sysfs            /sys          sysfs   defaults                 0    0

Kod: Markera allt

root@MYNAS:~# ls -l /etc/init.d
total 272
-rwxr-xr-x 1 root root  7621 Sep 30 01:05 apache2
-rwxr-xr-x 1 root root  2444 Jan  1  2011 bootlogd
-rwxr-xr-x 1 root root  1579 Jan  1  2011 bootlogs
-rwxr-xr-x 1 root root  1381 Jan  1  2011 bootmisc.sh
-rwxr-xr-x 1 root root  3978 Jan  1  2011 checkfs.sh
-rwxr-xr-x 1 root root 10822 Jan  1  2011 checkroot.sh
-rwxr-xr-x 1 root root  3753 Dec 19  2010 cron
-rwxr-xr-x 1 root root  2832 Jun 12  2011 dbus
-rwxr-xr-x 1 root root  1893 Dec 28 22:22 fuse
-rwxr-xr-x 1 root root  1329 Jan  1  2011 halt
-rwxr-xr-x 1 root root  1423 Jan  1  2011 hostname.sh
-rwxr-xr-x 1 root root  5079 Jan 25  2011 hwclockfirst.sh
-rwxr-xr-x 1 root root  5061 Jan 25  2011 hwclock.sh
-rwxr-xr-x 1 root root  2518 Sep 15  2006 ifupdown
-rwxr-xr-x 1 root root  1047 Sep  6  2009 ifupdown-clean
-rwxr-xr-x 1 root root  1293 Jan  1  2011 killprocs
-rwxr-xr-x 1 root root  1128 Mar 10  2010 linuxlogo
-rwxr-xr-x 1 root root  3638 Sep 11 19:47 logitechmediaserver
-rwxr-xr-x 1 root root  4709 Dec 31 12:25 lsmonitor
-rwxr-xr-x 1 root root  1334 Jun 28  2010 module-init-tools
-rwxr-xr-x 1 root root   620 Jan  1  2011 mountall-bootclean.sh
-rwxr-xr-x 1 root root  1668 Jan  1  2011 mountall.sh
-rwxr-xr-x 1 root root  1560 Jan  1  2011 mountdevsubfs.sh
-rwxr-xr-x 1 root root  1924 Jan  1  2011 mountkernfs.sh
-rwxr-xr-x 1 root root   628 Jan  1  2011 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root  2330 Jan  1  2011 mountnfs.sh
-rwxr-xr-x 1 root root  1315 Jan  1  2011 mountoverflowtmp
-rwxr-xr-x 1 root root  3649 Jan  1  2011 mtab.sh
-rwxr-xr-x 1 root root  5437 Nov 30  2010 mysql
-rwxr-xr-x 1 root root  2451 Apr 19  2010 networking
-rwxr-xr-x 1 root root  1814 Dec 26  2009 ntp
-rwxrwxrwx 1 root root    92 Jan  5 01:20 owfs.sh
-rwxr-xr-x 1 root root  1298 Feb  1  2010 procps
-rwxr-xr-x 1 root root  8635 Jan  1  2011 rc
-rwxr-xr-x 1 root root   801 Jan  1  2011 rc.local
-rwxr-xr-x 1 root root   117 Jan  1  2011 rcS
-rw-r--r-- 1 root root  2427 Jan  1  2011 README
-rwxr-xr-x 1 root root   639 Jan  1  2011 reboot
-rwxr-xr-x 1 root root  1074 Jan  1  2011 rmnologin
-rwxr-xr-x 1 root root  3080 Nov 30  2010 rsyslog
-rwxr-xr-x 1 root root  2917 Jan 30  2011 samba
-rwxr-xr-x 1 root root  3286 Jan  1  2011 sendsigs
-rwxr-xr-x 1 root root   590 Jan  1  2011 single
-rw-r--r-- 1 root root  4304 Jan  1  2011 skeleton
-rwxr-xr-x 1 root root  3505 Dec 26  2010 smartmontools
-rwxr-xr-x 1 root root  3704 Mar 31  2010 ssh
-rwxr-xr-x 1 root root   567 Jan  1  2011 stop-bootlogd
-rwxr-xr-x 1 root root  1143 Jan  1  2011 stop-bootlogd-single
-rwxr-xr-x 1 root root   551 Feb 20  2011 sudo
-rwxr-xr-x 1 root root  7578 Dec 13  2010 udev
-rwxr-xr-x 1 root root  1153 Dec 13  2010 udev-mtab
-rwxr-xr-x 1 root root  2869 Jan  1  2011 umountfs
-rwxr-xr-x 1 root root  2143 Jan  1  2011 umountnfs.sh
-rwxr-xr-x 1 root root  1456 Jan  1  2011 umountroot
-rwxr-xr-x 1 root root  1985 Jan  1  2011 urandom
-rwxr-xr-x 1 root root  1346 Jan  1 14:27 usb
-rwxr-xr-x 1 root root  1758 Sep  4  2010 x11-common

Kod: Markera allt

root@MYNAS:~# ls -l /etc/rc2.d
total 4
-rw-r--r-- 1 root root 677 Jan  1  2011 README
lrwxrwxrwx 1 root root  18 Dec 28 21:19 S01bootlogs -> ../init.d/bootlogs
lrwxrwxrwx 1 root root  19 Dec 29 01:42 S01linuxlogo -> ../init.d/linuxlogo
lrwxrwxrwx 1 root root  17 Dec 28 21:19 S01rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root  15 Jan  3 18:32 S01samba -> ../init.d/samba
lrwxrwxrwx 1 root root  14 Dec 29 01:42 S01sudo -> ../init.d/sudo
lrwxrwxrwx 1 root root  17 Dec 29 00:02 S02apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root  14 Dec 29 00:02 S03cron -> ../init.d/cron
lrwxrwxrwx 1 root root  14 Jan  3 18:32 S03dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root  19 Dec 31 12:25 S03lsmonitor -> ../init.d/lsmonitor
lrwxrwxrwx 1 root root  15 Jan  3 20:05 S03mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root  13 Dec 29 01:42 S03ntp -> ../init.d/ntp
lrwxrwxrwx 1 root root  17 Jan  3 19:53 S03owfs.sh -> ../init.d/owfs.sh
lrwxrwxrwx 1 root root  23 Dec 29 00:51 S03smartmontools -> ../init.d/smartmontools
lrwxrwxrwx 1 root root  13 Dec 29 00:02 S03ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root  13 Jan  3 14:43 S03usb -> ../init.d/usb
lrwxrwxrwx 1 root root  29 Jan  5 11:30 S04logitechmediaserver -> ../init.d/logitechmediaserver
lrwxrwxrwx 1 root root  18 Dec 29 00:02 S04rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root  19 Dec 29 00:02 S04rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root  23 Dec 29 00:02 S04stop-bootlogd -> ../init.d/stop-bootlogd

Kod: Markera allt

root@MYNAS:~# grep mount /etc/init.d/*
/etc/init.d/bootlogd:# Required-Start:    mountdevsubfs
/etc/init.d/bootmisc.sh:# Description:       Some cleanup.  Note, it need to run after mountnfs-bootclean.sh.
/etc/init.d/checkroot.sh:# Required-Start:    mountdevsubfs hostname
/etc/init.d/checkroot.sh:. /lib/init/mount-functions.sh
/etc/init.d/checkroot.sh:               ddev="$(mountpoint -qx $rootdev)"
/etc/init.d/checkroot.sh:               rdev="$(mountpoint -d /)"
/etc/init.d/checkroot.sh:                       if [ "$(mountpoint -qx /dev/root)" = "4:0" ]
/etc/init.d/checkroot.sh:               # mount -n -o remount,ro / would be the correct syntax but
/etc/init.d/checkroot.sh:               # mount can get confused when there is a "bind" mount defined
/etc/init.d/checkroot.sh:               # in fstab that bind-mounts "/" somewhere else.
/etc/init.d/checkroot.sh:               # So we use mount -n -o remount,ro $rootdev / but that can
/etc/init.d/checkroot.sh:               # to a bug in sys_mount().
/etc/init.d/checkroot.sh:                       ! mount    -n -o remount,ro              $rootdev /              \
/etc/init.d/checkroot.sh:                       && ! mount -n -o remount,ro -t dummytype $rootdev /  2>/dev/null \
/etc/init.d/checkroot.sh:                       && ! mount -n -o remount,ro                       /  2>/dev/null
/etc/init.d/checkroot.sh:                       log_failure_msg "Cannot check root file system because it is not mounted read-only."
/etc/init.d/checkroot.sh:root filesystem mounted in read-only mode."
/etc/init.d/checkroot.sh:               log_warning_msg "The root filesystem is currently mounted in read-only mode.
/etc/init.d/checkroot.sh:       # Remount root to final mode (rw or ro).
/etc/init.d/checkroot.sh:       # See the comments above at the previous "mount -o remount"
/etc/init.d/checkroot.sh:       if ! mount -n -o remount,$rootopts,$rootmode $fstabroot / 2>/dev/null
/etc/init.d/checkroot.sh:               mount -n -o remount,$rootopts,$rootmode /
/etc/init.d/checkroot.sh:                       mount -f -o $rootopts -t $roottype $fstabroot /
/etc/init.d/dbus:  if ! mountpoint -q /proc/ ; then
/etc/init.d/dbus:    log_failure_msg "Can't start $DESC - /proc is not mounted"
/etc/init.d/fuse:# Description:       Load the fuse module and mount the fuse control
/etc/init.d/fuse:which fusermount &>/dev/null || exit 5
/etc/init.d/fuse:          ! grep -qw $MOUNTPOINT /proc/mounts; then
/etc/init.d/fuse:               if ! mount -t fusectl fusectl $MOUNTPOINT >/dev/null 2>&1; then
/etc/init.d/fuse:       if grep -qw $MOUNTPOINT /proc/mounts; then
/etc/init.d/fuse:               echo -n "Unmounting fuse control filesystem"
/etc/init.d/fuse:               if ! umount $MOUNTPOINT >/dev/null 2>&1; then
/etc/init.d/fuse:               echo "Fuse control filesystem not mounted."
/etc/init.d/hwclockfirst.sh:# Required-Start:    mountdevsubfs
/etc/init.d/mountall-bootclean.sh:# Provides:          mountall-bootclean
/etc/init.d/mountall-bootclean.sh:# Required-Start:    mountall
/etc/init.d/mountall-bootclean.sh:# Short-Description: bootclean after mountall.
/etc/init.d/mountall-bootclean.sh:#                    all local filesystems have been mounted.
/etc/init.d/mountall-bootclean.sh:      echo "Usage: mountall-bootclean.sh [start|stop]" >&2
/etc/init.d/mountall.sh:# Provides:          mountall
/etc/init.d/mountall.sh:. /lib/init/mount-functions.sh
/etc/init.d/mountall.sh:        mount_all_local() {
/etc/init.d/mountall.sh:            mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2 \
/etc/init.d/mountall.sh:        pre_mountall
/etc/init.d/mountall.sh:                mount_all_local
/etc/init.d/mountall.sh:                log_daemon_msg "Will now mount local filesystems"
/etc/init.d/mountall.sh:                mount_all_local
/etc/init.d/mountall.sh:        post_mountall
/etc/init.d/mountall.sh:        # We might have mounted something over /dev, see if
/etc/init.d/mountall.sh:        # a file on a now mounted filesystem.
/etc/init.d/mountall.sh:        echo "Usage: mountall.sh [start|stop]" >&2
/etc/init.d/mountdevsubfs.sh:# Provides:          mountdevsubfs
/etc/init.d/mountdevsubfs.sh:# Required-Start:    mountkernfs
/etc/init.d/mountdevsubfs.sh:. /lib/init/mount-functions.sh
/etc/init.d/mountdevsubfs.sh:   domount tmpfs shmfs /dev/shm tmpfs -onosuid,nodev$SHM_OPT
/etc/init.d/mountdevsubfs.sh:           domount devpts "" /dev/pts devpts -onoexec,nosuid,gid=$TTYGRP,mode=$TTYMODE
/etc/init.d/mountdevsubfs.sh:   echo "Warning: mountdevsubfs should be called with the 'start' argument." >&2
/etc/init.d/mountdevsubfs.sh:   echo "Usage: mountdevsubfs [start|stop]" >&2
/etc/init.d/mountkernfs.sh:# Provides:          mountkernfs
/etc/init.d/mountkernfs.sh:. /lib/init/mount-functions.sh
/etc/init.d/mountkernfs.sh:     # and remounted.
/etc/init.d/mountkernfs.sh:     domount tmpfs "" /lib/init/rw tmpfs -omode=0755,nosuid$RW_OPT
/etc/init.d/mountkernfs.sh:     domount proc "" /proc proc -onodev,noexec,nosuid
/etc/init.d/mountkernfs.sh:     # Only mount sysfs if it is supported (kernel >= 2.6)
/etc/init.d/mountkernfs.sh:             domount sysfs "" /sys sysfs -onodev,noexec,nosuid
/etc/init.d/mountkernfs.sh:             domount tmpfs "" /var/run varrun -omode=0755,nosuid$RUN_OPT
/etc/init.d/mountkernfs.sh:             domount tmpfs "" /var/lock varlock -omode=1777,nodev,noexec,nosuid$LOCK_OPT
/etc/init.d/mountkernfs.sh:     echo "Warning: mountkernfs should be called with the 'start' argument." >&2
/etc/init.d/mountkernfs.sh:     echo "Usage: mountkernfs [start|stop]" >&2
/etc/init.d/mountnfs-bootclean.sh:# Provides:          mountnfs-bootclean
/etc/init.d/mountnfs-bootclean.sh:# Required-Start:    $local_fs mountnfs
/etc/init.d/mountnfs-bootclean.sh:# Short-Description: bootclean after mountnfs.
/etc/init.d/mountnfs-bootclean.sh:#                    network filesystems have been mounted.
/etc/init.d/mountnfs-bootclean.sh:      echo "Usage: mountnfs-bootclean.sh [start|stop]" >&2
/etc/init.d/mountnfs.sh:# Provides:          mountnfs
/etc/init.d/mountnfs.sh:# Short-Description: Wait for network file systems to be mounted
/etc/init.d/mountnfs.sh:# Description:       Network file systems are mounted by
/etc/init.d/mountnfs.sh:#                    /etc/network/if-up.d/mountnfs in the background
/etc/init.d/mountnfs.sh:#                    for them to be mounted before carrying on.
/etc/init.d/mountnfs.sh:do_wait_async_mount() {
/etc/init.d/mountnfs.sh:        # for mounting NFS file systems. If any NFS partition is found
/etc/init.d/mountnfs.sh:        for mountpt in $waitnfs; do
/etc/init.d/mountnfs.sh:                log_action_begin_msg "Waiting for $mountpt"
/etc/init.d/mountnfs.sh:                while ! mountpoint -q $mountpt; do
/etc/init.d/mountnfs.sh:        # mounting is the default even without a value in
/etc/init.d/mountnfs.sh:                do_wait_async_mount
/etc/init.d/mountnfs.sh:                FROMINITD=yes /etc/network/if-up.d/mountnfs
/etc/init.d/mountoverflowtmp:# Provides:          mountoverflowtmp
/etc/init.d/mountoverflowtmp:# Required-Start:    mountall-bootclean
/etc/init.d/mountoverflowtmp:# Required-Stop:     umountfs
/etc/init.d/mountoverflowtmp:# Short-Description: mount emergency /tmp.
/etc/init.d/mountoverflowtmp:defs=/etc/default/mountoverflowtmp
/etc/init.d/mountoverflowtmp:           mount -t tmpfs -o size=1048576,mode=1777 overflow /tmp
/etc/init.d/mountoverflowtmp:   if LC_ALL=C mount | \
/etc/init.d/mountoverflowtmp:           log_action_begin_msg "Unmounting any overflow tmpfs from /tmp"
/etc/init.d/mountoverflowtmp:           umount overflow
/etc/init.d/mountoverflowtmp:   echo "Usage: mountoverflowtmp [start|stop]" >&2
/etc/init.d/mtab.sh:# Description:       Update the mount program's mtab file after
/etc/init.d/mtab.sh:#                    all local filesystems have been mounted.
/etc/init.d/mtab.sh:# the fact that virtual filesystems were mounted early on, before mtab
/etc/init.d/mtab.sh:. /lib/init/mount-functions.sh
/etc/init.d/mtab.sh:# $2 - mount point
/etc/init.d/mtab.sh:# $3 - mount name/device
/etc/init.d/mtab.sh:# $4 - mount options
/etc/init.d/mtab.sh:    # Not mounted?
/etc/init.d/mtab.sh:    if ! mountpoint -q $2 < /dev/null
/etc/init.d/mtab.sh:            mount -f -t $1 $OPTS $4 $NAME $2 < /dev/null
/etc/init.d/mtab.sh:    # S02mountkernfs.sh
/etc/init.d/mtab.sh:    # S04mountdevsubfs
/etc/init.d/mtab.sh:    # Add everything else in /proc/mounts into /etc/mtab, with
/etc/init.d/mtab.sh:    exec 9<&0 0</proc/mounts
/etc/init.d/mtab.sh:    echo "Usage: mountall-mtab.sh [start|stop]" >&2
/etc/init.d/networking:# Required-Start:    mountkernfs $local_fs
/etc/init.d/networking:    [ -e /proc/mounts ] || return 0
/etc/init.d/networking: log_warning_msg "not deconfiguring network interfaces: iSCSI root is mounted."
/etc/init.d/networking:    exec 9<&0 < /proc/mounts
/etc/init.d/networking:     log_warning_msg "not deconfiguring network interfaces: network devices still mounted."
/etc/init.d/networking:     log_warning_msg "not deconfiguring network interfaces: network file systems still mounted."
/etc/init.d/networking:     log_warning_msg "not deconfiguring network interfaces: network swap still mounted."
/etc/init.d/procps:# Required-Start:    mountkernfs $local_fs
/etc/init.d/rsyslog:# Required-Stop:     umountnfs $time
/etc/init.d/rsyslog:# PATH should only include /usr/* if it runs after the mountnfs.sh script
/etc/init.d/sendsigs:# Required-Stop:     umountnfs
/etc/init.d/skeleton:# PATH should only include /usr/* if it runs after the mountnfs.sh script
/etc/init.d/udev:# Required-Start:    mountkernfs
/etc/init.d/udev:# we need to unmount /dev/pts/ and remount it later over the tmpfs
/etc/init.d/udev:unmount_devpts() {
/etc/init.d/udev:  if mountpoint -q /dev/pts/; then
/etc/init.d/udev:    umount -n -l /dev/pts/
/etc/init.d/udev:  if mountpoint -q /dev/shm/; then
/etc/init.d/udev:    umount -n -l /dev/shm/
/etc/init.d/udev:# mount a tmpfs over /dev, if somebody did not already do it
/etc/init.d/udev:mount_tmpfs() {
/etc/init.d/udev:  if grep -E -q "^[^[:space:]]+ /dev (dev)?tmpfs" /proc/mounts; then
/etc/init.d/udev:    mount -n -o remount,${dev_mount_options} -t tmpfs tmpfs /dev
/etc/init.d/udev:  if ! mount -n -o $dev_mount_options -t tmpfs tmpfs /dev; then
/etc/init.d/udev:  log_failure_msg "udev requires a mounted procfs, not started."
/etc/init.d/udev:  log_failure_msg "udev requires a mounted sysfs, not started."
/etc/init.d/udev:dev_mount_options='mode=0755'
/etc/init.d/udev:  dev_mount_options="size=${tmpfs_size},${dev_mount_options}"
/etc/init.d/udev:       if mountpoint -q $udev_root/; then
/etc/init.d/udev:    mount -n -o $dev_mount_options -t tmpfs tmpfs $udev_root
/etc/init.d/udev:    log_action_begin_msg "Unmounting $udev_root"
/etc/init.d/udev:    # unmounting with -l should never fail
/etc/init.d/udev:    if umount -n -l $udev_root; then
/etc/init.d/udev:# new /dev has been mounted and udevadm trigger has been run there will be
/etc/init.d/udev:       if mountpoint -q $udev_root/; then
/etc/init.d/udev:       unmount_devpts
/etc/init.d/udev:       mount_tmpfs
/etc/init.d/udev:       [ -d /proc/1 ] || mount -n /proc
/etc/init.d/udev-mtab:# copy the rules generated before / was mounted read-write
/etc/init.d/udev-mtab:# if it's not, it's probably a symlink to /proc/mounts
/etc/init.d/udev-mtab:if mountpoint -q $udev_root; then
/etc/init.d/udev-mtab:    mtabline="$(grep -E --no-messages "^[^ ]+ +$udev_root +(dev)?tmpfs +" /proc/mounts || true)"
/etc/init.d/umountfs:# Provides:          umountfs
/etc/init.d/umountfs:# Required-Stop:     umountroot
/etc/init.d/umountfs:# Short-Description: Turn off swap and unmount all local file systems.
/etc/init.d/umountfs:   exec 9<&0 </proc/mounts
/etc/init.d/umountfs:   PROTECTED_MOUNTS="$(sed -n '0,/^\/[^ ]* \/ /p' /proc/mounts)"
/etc/init.d/umountfs:   # Make sure tmpfs file systems are umounted before turning off
/etc/init.d/umountfs:                   log_action_begin_msg "Unmounting temporary filesystems"
/etc/init.d/umountfs:                   fstab-decode umount $TMPFS_MTPTS
/etc/init.d/umountfs:                   log_daemon_msg "Will now unmount temporary filesystems"
/etc/init.d/umountfs:                   fstab-decode umount -v $TMPFS_MTPTS
/etc/init.d/umountfs:   # Unmount local filesystems
/etc/init.d/umountfs:           # Do not use -f umount option for WEAK_MTPTS
/etc/init.d/umountfs:                   log_action_begin_msg "Unmounting weak filesystems"
/etc/init.d/umountfs:                   fstab-decode umount -r -d $WEAK_MTPTS
/etc/init.d/umountfs:                   log_daemon_msg "Will now unmount weak filesystems"
/etc/init.d/umountfs:                   fstab-decode umount -v -r -d $WEAK_MTPTS
/etc/init.d/umountfs:                   log_action_begin_msg "Unmounting local filesystems"
/etc/init.d/umountfs:                   fstab-decode umount -f -r -d $REG_MTPTS
/etc/init.d/umountfs:                   log_daemon_msg "Will now unmount local filesystems"
/etc/init.d/umountfs:                   fstab-decode umount -f -v -r -d $REG_MTPTS
/etc/init.d/umountnfs.sh:# Provides:          umountnfs
/etc/init.d/umountnfs.sh:# Required-Stop:     umountfs
/etc/init.d/umountnfs.sh:# Short-Description: Unmount all network filesystems except the root fs.
/etc/init.d/umountnfs.sh:# Description:       Also unmounts all virtual filesystems (proc,
/etc/init.d/umountnfs.sh:#                    devpts, usbfs, sysfs) that are not mounted at the
/etc/init.d/umountnfs.sh:       # Write a reboot record to /var/log/wtmp before unmounting
/etc/init.d/umountnfs.sh:       # Make list of points to unmount in reverse order of their creation
/etc/init.d/umountnfs.sh:               [ "$VERBOSE" = no ] || log_action_begin_msg "Unmounting remote and non-toplevel virtual filesystems"
/etc/init.d/umountnfs.sh:               fstab-decode umount $FLAGS $DIRS
/etc/init.d/umountnfs.sh:       echo "Usage: umountnfs.sh [start|stop]" >&2
/etc/init.d/umountroot:# Provides:          umountroot
/etc/init.d/umountroot: # targets for system mountpoints.  We've just unmounted all other
/etc/init.d/umountroot: # filesystems, so either they are mounted now (in which case the
/etc/init.d/umountroot: # mount point exists) or we can make the mountpoint.
/etc/init.d/umountroot: #     mount -n -o remount,ro /
/etc/init.d/umountroot: # will act on a bind mount of / if there is one.
/etc/init.d/umountroot: mount    $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / 2>/dev/null \
/etc/init.d/umountroot: || mount $MOUNT_FORCE_OPT -n -o remount,ro              dummydev / 2>/dev/null \
/etc/init.d/umountroot: || mount $MOUNT_FORCE_OPT -n -o remount,ro                       /
/etc/init.d/usb:        IsMounted=`cat /proc/mounts |grep usbfs`
/etc/init.d/usb:mount_usbfs()
/etc/init.d/usb:        mount -t usbfs usbfs /proc/bus/usb
/etc/init.d/usb:umount_usbfs()
/etc/init.d/usb:        umount -f /proc/bus/usb
/etc/init.d/usb:        mount_usbfs
/etc/init.d/usb:        umount_usbfs
Albin polar 35,Laddomat, 3x750l, Danfoss ECL 100 & Sfinxs solfångare. Loggar och styr vedpanna, elpatron, solfångare, motorvärme och mycket annat med 1-wire, zwave, och webswitch via Domoticz.
MartinF
Tar hemautomation på allvar
Inlägg: 141
Blev medlem: 04 jan 2010, 12:24
Ort: Sunne

Re: OWFS på Buffalo Linkstation

Inlägg av MartinF »

Problemet löst. Jag skapade ett init.d - script enligt boken (så gott jag kunde):

Kod: Markera allt

#! /bin/sh
#
### BEGIN INIT INFO
# Provides:          owfs
# Required-Start:    $all
# Required-Stop:
# Default-Start:         2 3 5
# Default-Stop:         0 1 6
# Description:       starts owfs
### END INIT INFO

HOME=/opt/owfs/bin

case "$1" in
  start|reload|force-reload)
        echo -n "Starting owfs"
        $HOME/owfs -u --allow_other --usb_regulartime  /mnt/1wire

        ;;
    stop)
        echo -n "Stopping owfs"
        killall owfs

        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac
Därefter körde jag:

Kod: Markera allt

insserv owfs
Vore ändå tacksam för ev idéer om mount-problemet vid boot!
Albin polar 35,Laddomat, 3x750l, Danfoss ECL 100 & Sfinxs solfångare. Loggar och styr vedpanna, elpatron, solfångare, motorvärme och mycket annat med 1-wire, zwave, och webswitch via Domoticz.
jed
Tar hemautomation på allvar
Inlägg: 179
Blev medlem: 16 apr 2011, 10:51
Ort: Stockholm

Re: OWFS på Buffalo Linkstation

Inlägg av jed »

Dottern har just fyllt fyra, haft "lite" mycket att göra med barnkalas och annat skoj :)

Starta om datorn och kör "dmesg > /tmp/dmesg" och skicka upp den filen här så blir det lättare att se vad som strular i början
MartinF
Tar hemautomation på allvar
Inlägg: 141
Blev medlem: 04 jan 2010, 12:24
Ort: Sunne

Re: OWFS på Buffalo Linkstation

Inlägg av MartinF »

Tur att familjen ibland påminner om att man har ett liv att leva också...

Kod: Markera allt

root@MYNAS:/tmp# cat dmesg
Linux version 2.6.31.8 (root@ubuntu) (gcc version 4.2.0 20070413 (prerelease)) #7 Fri Dec 9 16:10:10 JST 2011
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat c05325e4, node_mem_map c1401000
  Normal zone: 128 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16256 pages, LIFO batch:3
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,12M panic=5 BOOTVER=0.22
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 39500KB available (4972K code, 271K data, 152K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 598.01 BogoMIPS (lpj=2990080)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :   527.200 MB/sec
   8regs     :   412.800 MB/sec
   32regs    :   463.200 MB/sec
xor: using function: arm4regs (527.200 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size  64MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....no such
PEX1_IO ....no such
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch13)-- MVLSXL  Soc: 88F6281 A1 LE

 Detected Tclk 166666667 and SysClk 300000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c2040800
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
mvPexLocalBusNumSet: ERR. Invalid PEX interface 1
bio: create slab <bio-0> at 0
SCSI subsystem initialized
raid6: int32x1     60 MB/s
raid6: int32x2     70 MB/s
raid6: int32x4     67 MB/s
raid6: int32x8     59 MB/s
raid6: using algorithm int32x2 (70 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 12288K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.1.00 installed.
Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
initial_polarity_val = 0x000c0000
initial_polarity_val_high = 0x00034ef0
Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000fd64)
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.12)
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 101
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
brd: module loaded
loop: module loaded
Integrated Sata device found
mvSataInitAdapter : regVal changed(0x00000010)
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
** BUFFALO Disable Command Queuing Function [0 0] **
scsi 0:0:0:0: Direct-Access     WDC      WD20EARS-00MVWB0 51.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Gateway support enabled
     o Using Marvell Header Mode
     o L2 IGMP support
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
     o eth1, ifindex = 3, GbE port = 1

mvFpRuleDb (c2d62000): 1024 entries, 4096 bytes
SPI Serial flash detected @ 0xf4000000, 512KB (8sec x 64KB)
NAND init: NAND device not found on board
 sda:
mice: PS/2 mouse device common for all mice
Linux telephony interface: v1.00
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2012-01-07 09:50:28 UTC (1325929828)
 sda1 sda2 sda3 sda4 sda5 sda6
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] Attached SCSI disk
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on sda2, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 8:2.
Trying to move old root to /initrd ... /initrd does not exist. Ignored.
Unmounting old root
Trying to free ramdisk memory ... okay
Freeing init memory: 152K
Adding 1000440k swap on /dev/sda5.  Priority:-1 extents:1 across:1000440k
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with writeback data mode.
XFS mounting filesystem sda6
Ending clean XFS mount for filesystem: sda6
eth0: started
eth1: link down
eth1: started
eth1: link up, full duplex, speed 1 Gbps
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1: new high speed USB device using ehci_marvell and address 2
usbcore: registered new interface driver usblp
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.2: new full speed USB device using ehci_marvell and address 3
usb 1-1.2: configuration #1 chosen from 1 choice
usb 1-1.4: new full speed USB device using ehci_marvell and address 4
usb 1-1.4: configuration #1 chosen from 1 choice
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
Albin polar 35,Laddomat, 3x750l, Danfoss ECL 100 & Sfinxs solfångare. Loggar och styr vedpanna, elpatron, solfångare, motorvärme och mycket annat med 1-wire, zwave, och webswitch via Domoticz.
Skriv svar