fow0ryl schrieb:Nö,
hab aber von meiner Frau gerade grünes Licht bekommen um noch etwas zu werkeln. Muss aber erst die aktuelle Version herunterladen.
Ich denke ich mache mich als erstes mal auf die Suche warum immer 2 entpack Prozesse laufen.
Vielleicht werden dadurch ja die Links zerstört.
Ist schon merkwürdig.
Wenn ich ein 'ls -All /opt/files/lib' mache, dann wird mir der Link angezeigt.
Wenn ich aber versuche 'rm /opt/files/lib/' und versuche das mit einem Tab zu komplettieren, dann findet er die Datei nicht.
Lösche ich sie qulaifiziert funktioniert das.
Das anschließende 'ls -All /opt/files/lib/' sagt dann auch das keine Datei mehr da ist.
Irgendwo muss da her Hund begraben sein.
Gruß Henning
fli4l 3.0.1 # asterisk
fli4l 3.0.1 # asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
fli4l 3.0.1 #
fli4l 3.0.1 # ls /usr/sbin -la
drwxr-xr-x 2 root root 380 Mar 27 21:09 .
dr-xr-xr-x 6 root root 120 Mar 27 21:03 ..
lrwxrwxrwx 1 root root 24 Mar 27 21:09 asterisk -> /opt/files/s
bin/asterisk
lrwxrwxrwx 1 root root 32 Mar 27 21:06 bootsect.bin -> /opt/fil
es/usr/sbin/bootsect.bin
-rwxr-xr-x 65 root root 154377 Feb 23 22:28 chroot
lrwxrwxrwx 1 root root 27 Mar 27 21:06 dnsmasq -> /opt/files/us
r/sbin/dnsmasq
lrwxrwxrwx 1 root root 41 Mar 27 21:07 dropbear -> /usr/sbin/dr
opbearmulti_server_scp_client
lrwxrwxrwx 1 root root 51 Mar 27 21:06 dropbearmulti_server_scp
_client -> /opt/files/usr/sbin/dropbearmulti_server_scp_client
lrwxrwxrwx 1 root root 32 Mar 27 21:06 hdinstall.sh -> /opt/fil
es/usr/sbin/hdinstall.sh
lrwxrwxrwx 1 root root 25 Mar 27 21:06 klogd -> /opt/files/usr/
sbin/klogd
lrwxrwxrwx 1 root root 30 Mar 27 21:06 mini_httpd -> /opt/files
/usr/sbin/mini_httpd
lrwxrwxrwx 1 root root 22 Mar 27 21:09 mpg123 -> /opt/files/sbi
n/mpg123
lrwxrwxrwx 1 root root 24 Mar 27 21:06 pppd -> /opt/files/usr/s
bin/pppd
lrwxrwxrwx 1 root root 25 Mar 27 21:06 pppoe -> /opt/files/usr/
sbin/pppoe
lrwxrwxrwx 1 root root 24 Mar 27 21:09 register -> /opt/files/s
bin/register
lrwxrwxrwx 1 root root 31 Mar 27 21:06 sftp-server -> /opt/file
s/usr/sbin/sftp-server
lrwxrwxrwx 1 root root 28 Mar 27 21:06 syslinux -> /opt/files/u
sr/sbin/syslinux
lrwxrwxrwx 1 root root 27 Mar 27 21:06 syslogd -> /opt/files/us
r/sbin/syslogd
lrwxrwxrwx 1 root root 21 Mar 27 21:09 ztcfg -> /opt/files/sbin
/ztcfg
fli4l 3.0.1 #
Das System bleibt beim booten bei folgender Meldung stehen:
tar: Cannot create directory 'opt/files/usr/lib/asterisk': Read-only file system'
tar: Cannot create directory 'opt/files/usr/lib/asterisk/': Read-only file system'
# check for writeable boot partition
boot_ro=`mount | grep /boot | cut -d"(" -f2 | cut -d")" -f1`
# check for writeable opt partition
opt_ro=`mount | grep /opt | cut -d"(" -f2 | cut -d")" -f1`
# check for opt partion
opt_hd=`mount | grep /opt | cut -d" " -f1`
boot_hd=`mount | grep /boot | cut -d" " -f1`
if [ "$boot_ro" = "ro" ]
then
echo "remounting boot partition $boot_rw"
mount -o remount,rw $boot_hd /boot
fi
if [ "$opt_hd" -ne "" ]
then
if [ "$opt_ro" = "ro" ]
then
echo "remounting opt partition $opt_hd $opt_rw"
mount -o remount,rw $opt_hd /opt
fi
fi
fli4l 3.0.1 # asterisk -vvvvcg
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.2.4-BRIstuffed-0.3.0-PRE-1l, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
Asterisk Dynamic Loader loading preload modules:
== Parsing '/etc/asterisk/modules.conf': Found
== Manager registered action Ping
== Manager registered action Events
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Setvar
== Manager registered action Getvar
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxStatus
== Manager registered action MailboxCount
== Manager registered action ListCommands
== Parsing '/etc/asterisk/manager.conf': Found
Mar 27 21:40:53 NOTICE[6224]: cdr.c:1188 do_reload: CDR simple logging enabled.
== Parsing '/etc/asterisk/rtp.conf': Found
== RTP Allocating from port range 10000 -> 20000
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
== Registered application 'AbsoluteTimeout'
[Answer]
== Registered application 'Answer'
[BackGround]
== Registered application 'BackGround'
[Busy]
== Registered application 'Busy'
[Congestion]
== Registered application 'Congestion'
[DigitTimeout]
== Registered application 'DigitTimeout'
[Goto]
== Registered application 'Goto'
[GotoIf]
== Registered application 'GotoIf'
[GotoIfTime]
== Registered application 'GotoIfTime'
[ExecIfTime]
== Registered application 'ExecIfTime'
[Hangup]
== Registered application 'Hangup'
[NoOp]
== Registered application 'NoOp'
[Progress]
== Registered application 'Progress'
[ResetCDR]
== Registered application 'ResetCDR'
[ResponseTimeout]
== Registered application 'ResponseTimeout'
[Ringing]
== Registered application 'Ringing'
[SayNumber]
== Registered application 'SayNumber'
[SayDigits]
== Registered application 'SayDigits'
[SayAlpha]
== Registered application 'SayAlpha'
[SayPhonetic]
== Registered application 'SayPhonetic'
[SetAccount]
== Registered application 'SetAccount'
[SetAMAFlags]
== Registered application 'SetAMAFlags'
[SetGlobalVar]
== Registered application 'SetGlobalVar'
[SetLanguage]
== Registered application 'SetLanguage'
[Set]
== Registered application 'Set'
[SetVar]
== Registered application 'SetVar'
[ImportVar]
== Registered application 'ImportVar'
[Wait]
== Registered application 'Wait'
[WaitExten]
== Registered application 'WaitExten'
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
[chan_capi.so] => (Common ISDN API for Asterisk)
== Parsing '/etc/asterisk/capi.conf': Found
-- Registering at CAPI (blocksize=160)
== This box has 2 capi controller(s).
-- CAPI/contr1 supports DTMF
-- CAPI/contr1 supports supplementary services
> supplementary services : 0x000003ff
> HOLD/RETRIEVE TERMINAL-PORTABILITY ECT 3PTY CF CD MCID CCBS MWI CCNR
-- CAPI/contr1 private options=0x01000001
-- CAPI/contr2 private options=0x01000001
-- capi_pvt ISDN1-pseudo-D (*,default,2,2) (0,4,64)
-- capi_pvt ISDN1 (*,default,2,2) (0,4,64)
-- capi_pvt ISDN1 (*,default,2,2) (0,4,64)
-- listening on contr1 CIPmask = 0x1fff03ff
Mar 27 21:40:53 NOTICE[6224]: chan_capi.c:4992 cc_post_init_capi: Unused contr2
== Registered channel type 'CAPI' (Common ISDN API Driver ($Revision: 271 $))
== Registered application 'capiCommand'
== Registered custom function VANITYNUMBER
[res_musiconhold.so] => (Music On Hold Resource)
== Registered application 'MusicOnHold'
== Registered application 'WaitMusicOnHold'
== Registered application 'SetMusicOnHold'
== Registered application 'StartMusicOnHold'
== Registered application 'StopMusicOnHold'
== Parsing '/etc/asterisk/musiconhold.conf': Found
[res_watchdog.so] => (Watchdog Resource)
[res_monitor.so] => (Call Monitoring Resource)
== Registered application 'Monitor'
== Registered application 'StopMonitor'
== Registered application 'ChangeMonitor'
== Manager registered action Monitor
== Manager registered action StopMonitor
== Manager registered action ChangeMonitor
[res_indications.so] => (Indications Configuration)
== Parsing '/etc/asterisk/indications.conf': Found
-- Registered indication country 'at'
-- Registered indication country 'au'
-- Registered indication country 'br'
-- Registered indication country 'be'
-- Registered indication country 'ch'
-- Registered indication country 'cl'
-- Registered indication country 'cn'
-- Registered indication country 'cz'
-- Registered indication country 'de'
-- Registered indication country 'dk'
-- Registered indication country 'ee'
-- Registered indication country 'es'
-- Registered indication country 'fi'
-- Registered indication country 'fr'
-- Registered indication country 'gr'
-- Registered indication country 'hu'
-- Registered indication country 'it'
-- Registered indication country 'lt'
-- Registered indication country 'mx'
-- Registered indication country 'nl'
-- Registered indication country 'no'
-- Registered indication country 'nz'
-- Registered indication country 'pl'
-- Registered indication country 'pt'
-- Registered indication country 'ru'
-- Registered indication country 'se'
-- Registered indication country 'sg'
-- Registered indication country 'uk'
-- Registered indication country 'us'
-- Registered indication country 'us-o'
-- Registered indication country 'tw'
-- Registered indication country 'za'
-- Setting default indication country to 'us'
== Registered application 'PlayTones'
== Registered application 'StopPlayTones'
[res_features.so] => (Call Features Resource)
== Parsing '/etc/asterisk/features.conf': Found
-- Registered extension context 'parkedcalls'
-- Added extension '700' priority 1 to parkedcalls
fli4l 3.0.1 # mount | grep /boot | cut -d"(" -f2 | cut -d")" -f1
rw
fli4l 3.0.1 # mount | grep /opt | cut -d"(" -f2 | cut -d")" -f1
fli4l 3.0.1 # mount | grep /opt | cut -d" " -f1
fli4l 3.0.1 # mount | grep /boot | cut -d" " -f1
/dev/hda1
fli4l 3.0.1 # mount | grep /opt
/dev/hda2 on /opt type ext3 (ro)
fli4l 3.0.1 # mount | grep /boot
/dev/hda1 on /boot type vfat (rw)
boot_type=`mount | grep /boot | cut -d"(" -f2 | cut -d")" -f1`
opt_type=`mount | grep /opt | cut -d"(" -f2 | cut -d")" -f1`
opt_device=`mount | grep /opt | cut -d" " -f1`
boot_device=`mount | grep /boot | cut -d" " -f1`
echo "device $boot_device is already mounted $boot_type as /boot"
echo "device $opt_device is already mounted $opt_type as /opt"
if [ "$boot_type" = "ro" ]
then
echo "remounting device $boot_device rw as /boot"
mount -o remount,rw $boot_device /boot
else
echo "device $boot_device is already mounted $opt_type as /boot"
fi
if [ "$opt_device" -ne "" ]
then
echo "device $opt_device found"
if [ "$opt_type" = "ro" ]
then
echo "remounting device $opt_device rw as /opt"
mount -o remount,rw $opt_device /opt
else
echo "device $boot_device is already mounted $boot_type as /boot"
fi
fi
boot_type=`mount | grep /boot | cut -d"(" -f2 | cut -d")" -f1`
opt_type=`mount | grep /opt | cut -d"(" -f2 | cut -d")" -f1`
opt_device=`mount | grep /opt | cut -d" " -f1`
boot_device=`mount | grep /boot | cut -d" " -f1`
echo "/boot $boot_device type $boot_type"
echo "/opt $opt_device type $opt_type"
fli4l 3.0.1 # /etc/rc.d/rc997.asterisk
device /dev/hda1 is already mounted rw as /boot
device is already mounted as /opt
device /dev/hda1 is already mounted as /boot
device is already mounted as /opt
/boot /dev/hda1 type rw
/opt type
DEBUG_STARTUP='yes' # write an execution trace of the boot
DEBUG_LOG='/opt' # sequence to file DEBUG_LOG or console if
fow0ryl schrieb:Hi,
habe schon gemerkt, das es nicht der letzte Stand war.
Hier läuft jede neue Version erst mal durch ein diff Tool ...
Das auskommentieren der rm's führt aber auch bei mir dazu, daß die libpthread ansprechbar ist.
Die Problematik hatte ich ja schon weiter oben beschrieben.
Der Code für Günter war ja auch nur, damit ich herausbekomme warum die Partitionen nicht wie gewünscht rw gemountet werden.
Gruß Henning