Swap PartitionWichtig wäre noch zu wissen ob Swap Partition oder Datei.
Doch, freetzmount ist im image:Bei dir fehlen im Syslog die freetzmount Meldungen hast du das nicht im image?
#
# USB mounting ----------------------------
#
[COLOR="red"]FREETZ_PATCH_FREETZMOUNT=y[/COLOR]
FREETZ_PATCH_FREETZMOUNT_BLKID=y
FREETZ_USBSTORAGE_AUTOMOUNT=y
FREETZ_AUTOMOUNT_EXT2=y
FREETZ_AUTOMOUNT_EXT3=y
# FREETZ_AUTOMOUNT_NTFS is not set
# FREETZ_AUTOMOUNT_REISER_FS is not set
# FREETZ_AUTOMOUNT_HFS_PLUS is not set
FREETZ_PATCH_MAXDEVCOUNT=y
In onlinechanged-cgi ist nichts eingetragen und in der rc.custom war "sleep 60" eingetragen. Ich habe "sleep 60" aus der rc.custom entfernt und die Box neu gestartet, aber der Fehler bleibt (swap-partition wir nicht gestartet).Und weshalb braucht den rc.mod (Waiting for mod-startup) so lange? Was hast du in onlinechanged-cgi oder rc.custom eingetragen?
Starting external (/var/media/ftp/uStor01/external):
[COLOR="red"]Waiting for mod-startup: ................ done.[/COLOR]
openssh SSH server is disabled.
privoxy is disabled.
umurmur is disabled.
root@fritz:/var/mod/root# [COLOR="red"]sh -x /etc/init.d/rc.swap restart[/COLOR]
+ DAEMON=swap
+ CONF_NAME=mod
+ . /etc/init.d/modlibrc
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin
+ export LD_LIBRARY_PATH=/mod/lib:/mod/usr/lib
+ : swap
+ : mod
+ : swap_ENABLED
+ : /mod/etc/swap.conf
+ : swap
+ : /var/run/swap.pid
+ [ -n swap ]
+ modlib_loadconfig
+ local CONF_FILE=/mod/etc/conf/mod.cfg
+ [ ! -r /mod/etc/conf/mod.cfg ]
+ . /mod/etc/conf/mod.cfg
+ export MOD_CGI_WIDTH=850
+ export MOD_CROND=no
+ export MOD_EXTERNAL_DIRECTORY=/var/media/ftp/uStor01/external
+ export MOD_EXTERNAL_FREETZ_SERVICES=yes
+ export MOD_EXTERNAL_OWN_SERVICES=
+ export MOD_EXTERNAL_WAIT_INFINITE=no
+ export MOD_EXTERNAL_YEAR_MAX=2099
+ export MOD_EXTERNAL_YEAR_MIN=no
+ export MOD_HTTPD=inetd
+ export MOD_HTTPD_PASSWD=$1$FgFjqS/q$X0qBGD/AcgS4eKUsJN3sa/
+ export MOD_HTTPD_PORT=81
+ export MOD_HTTPD_USER=admin
+ export MOD_MOUNTED_MAIN=yes
+ export MOD_MOUNTED_SUB=yes
+ export MOD_MOUNTED_UMOUNT=yes
+ export MOD_SHOW_BOX_INFO=yes
+ export MOD_SHOW_FREETZ_INFO=yes
+ export MOD_SHUTDOWN_FIRST=inetd
+ export MOD_SHUTDOWN_IGNORE=syslogd
+ export MOD_SHUTDOWN_LAST=cifsmount davfs2 autofs
+ export MOD_STOR_AUTORUNEND=no
+ export MOD_STOR_KILLBLOCKER=no
+ export MOD_STOR_PREFIX=uStor
+ export MOD_STOR_USELABEL=yes
+ export MOD_SWAP=yes
+ export MOD_SWAP_FILE=/dev/sda3
+ export MOD_TELNETD=yes
+ stop
+ echo -n Stopping swap ...
Stopping swap ... + has_swap
+ sed 1d /proc/swaps
+ grep -v /dev/ramzswap0
+ grep -q
+ sed 1d /proc/swaps
+ grep -v /dev/ramzswap0
+ read swap _
+ swapoff /dev/sda3
+ read swap _
+ has_swap
+ sed 1d /proc/swaps
+ grep -v /dev/ramzswap0
+ grep -q
+ echo done.
done.
+ sleep 1
+ start
+ echo -n Starting swap ...
Starting swap ... + has_swap
+ sed 1d /proc/swaps
+ grep -v /dev/ramzswap0
+ grep -q
+ swapon /dev/sda3
+ exitval=0
+ [ 0 -eq 0 ]
+ echo done.
done.
+ exit 0
Ja, habe noch 2 andere Partitionen auf dem Stick, die ohne Probleme eingebunden werden:...
@sf3978: Swap selbst ist bei dir anscheinend kein Problem, sondern Freetzmount. Werden andere Partitionen eingebunden? Hast du evtl irgendwas installiert oder gepatcht das das behindert?
/dev/[COLOR="red"]sda1[/COLOR] on /var/media/ftp/uStor01 type ext3 (rw,data=ordered)
/dev/[COLOR="red"]sda2[/COLOR] on /var/media/ftp/uStor02 type ext2 (rw)
root@fritz:/var/mod/root# ps
PID USER VSZ STAT COMMAND
1 root 1216 S init
2 root 0 SWN [ksoftirqd/0]
3 root 0 SW [watchdog/0]
4 root 0 SW< [events/0]
5 root 0 SW< [khelper]
6 root 0 SW< [kthread]
18 root 0 SW< [kblockd/0]
32 root 0 SW [pdflush]
33 root 0 SW [pdflush]
34 root 0 SW< [kswapd0]
35 root 0 SW< [aio/0]
71 root 0 SW [pm_info]
72 root 0 SWN [avmdebug]
76 root 0 SW< [CPMAC]
80 root 0 SW [mtdblockd]
105 root 0 SW [tffsd_mtd_0]
583 root 0 SW [cleanup_timer_f]
603 root 0 SWN [jffs2_gcd_mtd5]
631 root 0 SW< [loop0]
689 root 0 SW< [khubd]
826 root 0 SW< [scsi_eh_0]
827 root 0 SW< [usb-storage]
881 root 7704 S N /usr/bin/ctlmgr.bin
942 nobody 920 S dnsmasq --pid-file=/var/run/dnsmasq/dnsmasq.pid -p 53
964 root 3880 S multid -U -t
1156 root 7704 S N /usr/bin/ctlmgr.bin
1163 root 7704 S N /usr/bin/ctlmgr.bin
1164 root 7704 S N /usr/bin/ctlmgr.bin
1260 root 3880 S multid -U -t
1446 root 0 SW< [kjournald]
1913 root 2828 S hostapd -B /var/tmp/wlan_ath0_topology
1962 root 4184 S dsld -i -n -g
1975 root 816 S /bin/run_clock -c /dev/tffs -d
1985 root 0 RWN [kdsld_token]
1994 root 3548 S /bin/configd
2138 root 1204 R telnetd -l /sbin/ar7login
2258 root 1460 S syslogd -L -C256
2260 root 1208 S /sbin/klogd -c 4
2296 root 1208 S inetd
2418 root 2520 S < vtund[c]: tun_1 tun tun1
2653 root 760 S icmpinfo -vv -n -s -l
3370 root 1216 S init
3771 root 1224 R -sh
4015 root 1116 S /sbin/chronyd -f /var/tmp/chrony.conf
19480 root 1212 R ps
17.04.11 17:38:46 Partition unter Xcraft (/dev/sdb1) eingebunden
17.04.11 17:38:36 Partition unter LOGS (/dev/sda) eingebunden
17.04.11 17:38:25 USB-Gerät 1008, Klasse 'USB 2.0 (hi-speed) storage', angesteckt
17.04.11 17:38:25 USB-Gerät 1007, Klasse 'USB 2.0 (hi-speed) storage', angesteckt
17.04.11 17:38:25 USB-Gerät 1006, Klasse 'USB 2.0 (hi-speed) hub', angesteckt
17.04.11 22:29:20 [COLOR="red"]Der USB-Speicher uStor03 (/dev/sda3) enthält kein unterstütztes Dateisystem oder hat eine ungültige Partitionstabelle. (Das Gerät hat den folgenden Typ: unknown)[/COLOR]
17.04.11 22:29:20 Partition unter uStor02 (/dev/sda2) [COLOR="red"]eingebunden[/COLOR]
17.04.11 22:29:19 Partition unter uStor01 (/dev/sda1) [COLOR="red"]eingebunden[/COLOR]
17.04.11 22:29:07 USB-Gerät 1002, Klasse 'USB 2.0 (hi-speed) storage', angesteckt
Wenn die Swap Partition nicht richtig formatiert ist, kann dann "sh -x /etc/init.d/rc.swap start" aber trotzdem funktionieren? Ich werde diesen Eintrag mal in der "rc.external" oder in der "rc.custom" probieren. Ich werde den Stick auch auf meiner 7170 testen.Dann ist die Swap Partition wohl nicht richtig formatiert.
Ja, aber erst am Donnerstag Abend. Weil Du es schreibst, es könnte auch an meinem externalisierten blkid liegen, obwohl die ext2- und ext3-Partition auch bei externalisiertem blkid richtig gemountet werden.... die Ausgabe von "blkid" posten?
WARNING: Don't externalize blkid onto an USB device. It's needed for filesystem detection.
blkid /dev/sda2
/dev/sda2: LABEL="SWAP" UUID=" ... " TYPE="swap"
Ja, stimmt, ... wenn auch andere als eine ext2- und/oder ext3-Partition auf dem Stick ist/sind, gibt es Probleme. Ich kannte die Diskussion aus dem trac.@sf3978: blkid darfst du nicht externalisieren. Das läuft sicherlich schief. ...
Jan 1 01:00:52 fritz user.notice FREETZMOUNT: Partition uStor01 (/dev/sda1) was mounted successfully
Jan 1 01:00:52 fritz user.notice FREETZMOUNT: Mounting uStor02 to device /dev/sda2 ...
Jan 1 01:00:52 fritz user.notice EXTERNAL: Starting external (/var/media/ftp/uStor01/external):
Jan 1 01:00:52 fritz user.notice EXTERNAL: Waiting for mod-startup:
Jan 1 01:00:52 fritz user.notice FREETZMOUNT: Partition uStor02 (/dev/sda2) was mounted successfully
[COLOR="red"]Jan 1 01:00:53 fritz user.notice FREETZMOUNT: Mounting uStor03 to device /dev/sda3 ...
Jan 1 01:00:53 fritz user.err FREETZMOUNT: Partition uStor03 (/dev/sda3): Not supported file system or wrong partition table[/COLOR]
...
...
...
[COLOR="red"]Jan 1 01:01:47 fritz user.notice FREETZMOD: [COLOR="red"]Starting swap ... done[/COLOR].[/COLOR]
root@fritz:/var/mod/root# blkid
/dev/loop0: UUID="3b85c627-9dc1-4ed5-aa08-1fa5b17d92cb" TYPE="ext2"
/dev/sda1: UUID="3af7f4eb-b4ff-4b96-a756-9bc4cad6b657" TYPE="ext3"
/dev/sda2: UUID="93294bf0-299d-4c2f-8969-970adc767727" TYPE="ext2"
[COLOR="red"]/dev/sda3[/COLOR]: UUID="5076a2af-2df2-4d02-b8c5-6bbbd406657d" [COLOR="red"]TYPE="swap[/COLOR]"
root@fritz:/var/mod/bin# ./busybox blkid --help
BusyBox v1.18.4 (2011-04-22 00:00:29 CEST) multi-call binary.
Usage: blkid
Print UUIDs of all filesystems
root@fritz:/var/mod/bin# blkid --help
blkid: invalid option -- -
blkid 1.0.0 (12-Feb-2003)
usage: blkid [-c <file>] [-ghlLv] [-o format] [-s <tag>] [-t <token>]
[-w <file>] [dev ...]
-c cache file (default: /etc/blkid.tab, /dev/null = none)
-h print this usage message and exit
-g garbage collect the blkid cache
-s show specified tag(s) (default show all tags)
-t find device with a specific token (NAME=value pair)
-l lookup the the first device with arguments specified by -t
-v print version and exit
-w write cache to different file (/dev/null = no write)
dev specify device(s) to probe (default: all devices)
root@fritz:/var/mod/bin# busybox
BusyBox v1.18.4 (2011-04-22 00:00:29 CEST) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: busybox --list[-full]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, addgroup, adduser, arp, arping, ash, awk, basename, [B][COLOR="red"]blkid[/COLOR][/B], bunzip2, bzcat, cat, chmod, chown, chroot, clear, cmp, cp, crond, crontab,
cryptpw, cut, date, dd, delgroup, deluser, df, dirname, dmesg, dnsdomainname, du, echo, egrep, env, ether-wake, expr, false, fdisk, fgrep,
find, findfs, free, ftpget, ftpput, getopt, grep, gunzip, gzip, halt, head, hexdump, hostname, httpd, id, ifconfig, ifdown, ifup, inetd,
init, insmod, ip, kill, killall, klogd, ln, logger, login, logname, logread, losetup, ls, lsmod, lsusb, makedevs, md5sum, mkdir, mkfifo,
mknod, mkpasswd, mkswap, modprobe, more, mount, mountpoint, mv, nc, netstat, nohup, nslookup, od, passwd, pidof, ping, pivot_root, poweroff,
printf, ps, pwd, rdate, realpath, reboot, reset, rm, rmdir, rmmod, route, sed, setconsole, setlogcons, sh, sleep, sort, strings, stty,
swapoff, swapon, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, umount,
uname, uniq, uptime, usleep, uudecode, uuencode, vconfig, vi, wc, wget, which, xargs, yes, zcat
Was meinst Du mit "Bei einer Meldung fehlt was"?Aktuellen Trunk nutzen! (Bei einer Meldung fehlt was ;-) )
fstyp habe ich nicht im Image und blkid auch nicht in der busybox. Warum wird die swap-Partition später doch noch gemountet? Ist es evtl. doch blkid, aber zu einem späteren Zeitpunkt?Mit an Sicherheit grenzender Wahrscheinlichkeit wird blkid noch immer nicht zum mounten genutzt da externalisiert. Deshalb wäre interesannt ob fstyp in deinem Image ist und swap erkennt.
root@fritz:/var/mod/root# which blkid
/usr/sbin/blkid
root@fritz:/var/mod/root# ls -l /usr/sbin/blkid
lrwxrwxrwx 1 root root 19 Apr 17 15:59 /usr/sbin/blkid -> /mod/external/blkid
root@fritz:/var/mod/root# find / -iname 'fstyp'
find: /proc/16550: No such file or directory
find: /proc/16551: No such file or directory
root@fritz:/var/mod/root# busybox
BusyBox v1.18.4 (2011-04-17 15:11:37 CEST) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: busybox --list[-full]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, addgroup, adduser, ar, arp, arping, ash, awk, basename, brctl, bunzip2, bzcat, bzip2, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, crond, crontab, cryptpw,
cut, date, dd, delgroup, deluser, df, diff, dirname, dmesg, dnsd, dnsdomainname, du, echo, egrep, env, ether-wake, expr, fakeidentd, false, fgrep, find, free, ftpget,
ftpput, fuser, getopt, grep, gunzip, gzip, halt, head, hexdump, hostname, httpd, id, ifconfig, ifdown, ifup, inetd, init, insmod, ip, ipcrm, ipcs, kill, killall, klogd,
last, less, ln, logger, login, logname, logread, losetup, ls, lsmod, makedevs, md5sum, mesg, mkdir, mkfifo, mknod, mkpasswd, mkswap, modinfo, modprobe, more, mount, mv,
nc, netstat, nice, nohup, nslookup, od, passwd, patch, pidof, ping, pivot_root, poweroff, printf, ps, pscan, pwd, rdate, realpath, reboot, renice, reset, rm, rmdir, rmmod,
route, sed, seq, setconsole, setlogcons, sh, sha1sum, sleep, sort, split, start-stop-daemon, strings, stty, su, swapoff, swapon, sync, sysctl, syslogd, tac, tail, tar,
tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, umount, uname, uniq, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, wc, which, who,
whoami, xargs, yes, zcat