1

(11 odpowiedzi, napisanych Sprzęt / Hardware)

Uszkodzony pendrive tak ?   Część loga :

Wed Aug 29 17:00:24 2018 kern.info kernel: [  294.260000] sd 0:0:0:0: [sda] 
Wed Aug 29 17:00:24 2018 kern.warn kernel: [  294.264000] Result: hostbyte=0x07 driverbyte=0x00
Wed Aug 29 17:00:24 2018 kern.info kernel: [  294.268000] sd 0:0:0:0: [sda] CDB:
Wed Aug 29 17:00:24 2018 kern.warn kernel: [  294.272000] cdb[0]=0x2a: 2a 00 01 44 88 08 00 00 10 00
Wed Aug 29 17:00:24 2018 kern.err kernel: [  294.276000] blk_update_request: I/O error, dev sda, sector 21268488
Wed Aug 29 17:00:24 2018 kern.warn kernel: [  294.284000] EXT4-fs warning (device sda1): ext4_end_bio:317: I/O error -5 writing to inode 651703 (offset 0 size 0 starting block 2658563)
Wed Aug 29 17:00:24 2018 kern.err kernel: [  294.296000] Buffer I/O error on device sda1, logical block 2658305
Wed Aug 29 17:00:24 2018 kern.err kernel: [  294.300000] Buffer I/O error on device sda1, logical block 2658306
Wed Aug 29 17:00:24 2018 kern.info kernel: [  294.380000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:24 2018 kern.info kernel: [  294.556000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:24 2018 kern.info kernel: [  294.732000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:24 2018 kern.info kernel: [  294.920000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:24 2018 kern.info kernel: [  295.108000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:25 2018 kern.info kernel: [  295.296000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:25 2018 kern.info kernel: [  295.404000] sd 0:0:0:0: [sda] 
Wed Aug 29 17:00:25 2018 kern.warn kernel: [  295.408000] Result: hostbyte=0x07 driverbyte=0x00
Wed Aug 29 17:00:25 2018 kern.info kernel: [  295.412000] sd 0:0:0:0: [sda] CDB:
Wed Aug 29 17:00:25 2018 kern.warn kernel: [  295.416000] cdb[0]=0x2a: 2a 00 00 c4 24 e0 00 00 08 00
Wed Aug 29 17:00:25 2018 kern.err kernel: [  295.420000] blk_update_request: I/O error, dev sda, sector 12854496
Wed Aug 29 17:00:25 2018 kern.err kernel: [  295.424000] Buffer I/O error on dev sda1, logical block 1606556, lost sync page write
Wed Aug 29 17:00:25 2018 kern.err kernel: [  295.432000] JBD2: Error -5 detected when updating journal superblock for sda1-8.
Wed Aug 29 17:00:25 2018 kern.info kernel: [  295.528000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:25 2018 kern.info kernel: [  295.716000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:25 2018 kern.info kernel: [  295.904000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:25 2018 kern.info kernel: [  296.092000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:25 2018 kern.info kernel: [  296.280000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:26 2018 kern.info kernel: [  296.468000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:26 2018 kern.info kernel: [  296.576000] sd 0:0:0:0: [sda] 
Wed Aug 29 17:00:26 2018 kern.warn kernel: [  296.580000] Result: hostbyte=0x07 driverbyte=0x00
Wed Aug 29 17:00:26 2018 kern.info kernel: [  296.584000] sd 0:0:0:0: [sda] CDB:
Wed Aug 29 17:00:26 2018 kern.warn kernel: [  296.588000] cdb[0]=0x2a: 2a 00 00 00 08 00 00 00 08 00
Wed Aug 29 17:00:26 2018 kern.err kernel: [  296.592000] blk_update_request: I/O error, dev sda, sector 2048
Wed Aug 29 17:00:26 2018 kern.err kernel: [  296.596000] Buffer I/O error on dev sda1, logical block 0, lost sync page write
Wed Aug 29 17:00:26 2018 kern.crit kernel: [  296.608000] EXT4-fs error (device sda1): ext4_journal_check_start:56: Detected aborted journal
Wed Aug 29 17:00:26 2018 kern.crit kernel: [  296.612000] EXT4-fs (sda1): Remounting filesystem read-only
Wed Aug 29 17:00:26 2018 kern.err kernel: [  296.620000] EXT4-fs (sda1): previous I/O error to superblock detected
Wed Aug 29 17:00:26 2018 kern.info kernel: [  296.712000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:26 2018 kern.info kernel: [  296.900000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:26 2018 kern.info kernel: [  297.088000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:26 2018 kern.info kernel: [  297.276000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:27 2018 kern.info kernel: [  297.464000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:27 2018 kern.info kernel: [  297.656000] usb 1-1.2: reset high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 17:00:27 2018 kern.info kernel: [  297.752000] sd 0:0:0:0: [sda] 
Wed Aug 29 17:00:27 2018 kern.warn kernel: [  297.756000] Result: hostbyte=0x07 driverbyte=0x00
Wed Aug 29 17:00:27 2018 kern.info kernel: [  297.760000] sd 0:0:0:0: [sda] CDB:
Wed Aug 29 17:00:27 2018 kern.warn kernel: [  297.764000] cdb[0]=0x2a: 2a 00 00 00 08 00 00 00 08 00
Wed Aug 29 17:00:27 2018 kern.err kernel: [  297.768000] blk_update_request: I/O error, dev sda, sector 2048
Wed Aug 29 17:00:27 2018 kern.err kernel: [  297.772000] Buffer I/O error on dev sda1, logical block 0, lost sync page write




a tu kolejny log po reloog :
część loga :::



Wed Aug 29 16:29:03 2018 kern.info kernel: [    9.556000] usb 1-1: new high-speed USB device number 2 using ifxusb_hcd
Wed Aug 29 16:29:03 2018 kern.info kernel: [    9.748000] hub 1-1:1.0: USB hub found
Wed Aug 29 16:29:03 2018 kern.info kernel: [    9.752000] hub 1-1:1.0: 4 ports detected
Wed Aug 29 16:29:03 2018 kern.notice kernel: [    9.980000] random: nonblocking pool is initialized
Wed Aug 29 16:29:03 2018 kern.info kernel: [   10.032000] usb 1-1.2: new high-speed USB device number 3 using ifxusb_hcd
Wed Aug 29 16:29:03 2018 kern.info kernel: [   10.152000] usb-storage 1-1.2:1.0: USB Mass Storage device detected
Wed Aug 29 16:29:03 2018 kern.info kernel: [   10.156000] scsi host0: usb-storage 1-1.2:1.0
Wed Aug 29 16:29:03 2018 user.info kernel: [   10.192000] init: - preinit -
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   11.160000] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 3.0      PQ: 0 ANSI: 6
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   11.172000] sd 0:0:0:0: [sda] 30218842 512-byte logical blocks: (15.4 GB/14.4 GiB)
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   11.200000] sd 0:0:0:0: [sda] Write Protect is off
Wed Aug 29 16:29:03 2018 kern.debug kernel: [   11.200000] sd 0:0:0:0: [sda] Mode Sense: 4f 00 00 00
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   11.204000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Wed Aug 29 16:29:03 2018 kern.info kernel: [   11.260000]  sda: sda1
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   11.268000] sd 0:0:0:0: [sda] Attached SCSI removable disk
Wed Aug 29 16:29:03 2018 user.info kernel: [   14.992000] mount_root: loading kmods from internal overlay
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   16.264000] jffs2: notice: (339) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Wed Aug 29 16:29:03 2018 user.info kernel: [   16.280000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Wed Aug 29 16:29:03 2018 user.info kernel: [   16.308000] block: extroot: device not present, retrying in 5 seconds
Wed Aug 29 16:29:03 2018 user.err kernel: [   21.340000] block: extroot: cannot find device with UUID 03f02b9a-b8a6-48f0-bf49-b9d32baf389b
Wed Aug 29 16:29:03 2018 kern.notice kernel: [   21.544000] jffs2: notice: (336) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Wed Aug 29 16:29:03 2018 user.info kernel: [   21.560000] mount_root: loading kmods from internal overlay
Wed Aug 29 16:29:03 2018 user.info kernel: [   22.332000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Wed Aug 29 16:29:03 2018 user.info kernel: [   22.356000] block: extroot: device not present, retrying in 5 seconds
Wed Aug 29 16:29:03 2018 user.err kernel: [   27.388000] block: extroot: cannot find device with UUID 03f02b9a-b8a6-48f0-bf49-b9d32baf389b
Wed Aug 29 16:29:03 2018 user.info kernel: [   27.400000] mount_root: switching to jffs2 overlay

2

(11 odpowiedzi, napisanych Sprzęt / Hardware)

Dziękuję za pomoc.
Postawiłem na nowo wszystko - all ok.
Pamiętam o radzie dotyczącej logów.

Pozdrawiam Michał.

3

(11 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Byle byś nie zmienił końców linii w plikach.

Ja zmianę końców lini rozumiem tylko w kategorii że jak  np network zapiszę z wykorzystaniem edytora w windows to pewnie zapiszę swoje końce a na linuxie np mint nie muszę się końcami lini martwić.Jest w tym coś więcej ?
dodam że nie raz kopiowałem pliki przez ftp do routera pisane wcześniej na mincie i wszystko było ok nawet po restarcie routera.

4

(11 odpowiedzi, napisanych Sprzęt / Hardware)

Dziękuję za szybką odpowiedz. Obejrzę logi.

Najszybszy scenariusz postawienia routera na exrocie z wykorzystaniem vsftpd i asterisk18 mógłby wyglądać tak :

format pendrive
exrooot routerem
reboot
opkg update , opkg install co tam potrzebuje
reboot
wyjęcie pendrive z routera i  podłączenie do pc na linux mint wgranie plików conf i tym podobne.
bezpieczne usuniecie nośnika z pc podłączenie pendrive do routera i do prądu
Powinno zadziałać normalnie czy za bardzo się spieszę i powienienem wszystko pisać recznie z konsoli przez vi ?

Dzień dobry

Mam problem z tą pamięcią a dokładniej:
Pewien scenariusz:
Robię format pendrive do ext4 na linux mint przez narzędzie "dyski"
Jest ok pendrive dostępny dane trzyma.
Robię exrota z wykorzystaniem tego pendrive za pomocą routera z openwrt.
Na pendrive są foldery typu "etc upper  work" wraz z zawartością wiec - all ok .
Router chodzi ok .doinstalowuje sobie na nim vsftpd wraz z konfiguracją dostęp dla określonego użytkownika
Instaluję asterisk18 ustawiam tak jak lubię - all ok.
Dalej jeśli potrzebuję wgrać do asteriska np pliki własne .gsm robię to przez vsftpd -all ok.
Wszystko działa dobrze a następnego dnia po zrobieniu reboot przez konsolę router wstaje z ustawieniami jak z flasha.
Po wyłączeniu routera z prądu i obejrzeniu pendrive nie mogę go zamontować na komputerze z linux mint a tym samym nie mogę zajrzeć do jego zawartości.
Narzędzie dysk pokazuje partycja ext4 zawartość nieznana.
Znowu musiałbym go sformatować exroota robić itd. Choć powtórki są dobre do uczenia się wolałbym rozumieć co się dzieje.

Czy jest możliwe że używając vsftpd niszczę jakoś pendrive.Dodam że zdarza mi się wgrywać pliki po ftp na koncie root + hasło zamiast kontem stworzonego użytkownika.Czy to może mieć jakieś znaczenie?

a to rozłaczenie ttyUSB0 mogło być spowodowane wyjeciem modemu.zrobiłem to po starcie routera i wpisaniu ifup g3 gdy stwierdziłem ze modem internetu nie daje by sprawdzić czy po włożeniu modemu do routera który jest już w pełni załadowany modem zadziała.bez rezultatu.

Taki router mam od  początku z tym systemem ja nigdy nie zmienialem systemu.Jaką radę możesz mi dac ?

Dzień dobry posiadam takowy modem z kartą orange bez pinu.
Na linux mint modem łączy się normalnie z GSM.

Staram się podobne połączenie zrealizować na router vodafone 802 z chaos calmer 15.05 bez rezultatu.

Co do tej pory zrobiłem :

# opkg update
opkg install kmod-usb-core kmod-usb2 usb-modeswitch libusb-1.0

/etc/config/network

config interface 'g3'
    option proto '3g'
    option device '/dev/ttyUSB0'
    option apn 'internet'
    option username 'internet'
    option password 'internet'
    option pppd_options 'debug'

---------------------------------------------------------

/etc/config/firewall


config zone
    option name 'g3'
    list network 'g3'
    option input 'REJECT'
    option output 'ACCEPT'
    option forward 'REJECT'
    option masq '1'

config forwarding
    option src 'lan'
    option dest 'g3'


---------------------------------------------------------

Następnie próbuję ifup g3
konsola jest w nowej lini brak jakichkolwiek informacji no i oczywiście brak internetu po kablu.
ifconfig
Brak g3 interfejsu




inne pliki :

/etc/chatscripts/3g.chat


ABORT   BUSY
ABORT   'NO CARRIER'
ABORT   ERROR
REPORT  CONNECT
TIMEOUT 10
""      "AT&F"
OK      "ATE1"
OK      "AT^SYSCFG=14,2,3FFFFFFF,2,4"
OK      'AT+CGDCONT=1,"IP","$USE_APN"'
SAY     "Calling UMTS/GPRS"
TIMEOUT 30
OK      "ATD DIALNUMBER"
CONNECT ' '

-------------------------------------------------------------
/lib/netifd/proto/3g.sh





#!/bin/sh

[ -n "$INCLUDE_ONLY" ] || {
    NOT_INCLUDED=1
    INCLUDE_ONLY=1

    . ../netifd-proto.sh
    . ./ppp.sh
    init_proto "$@"
}

proto_3g_init_config() {
    no_device=1
    available=1
    ppp_generic_init_config
    proto_config_add_string "device:device"
    proto_config_add_string "apn"
    proto_config_add_string "service"
    proto_config_add_string "pincode"
    proto_config_add_string "dialnumber"
}

proto_3g_setup() {
    local interface="$1"
    local chat

    json_get_var device device
    json_get_var apn apn
    json_get_var service service
    json_get_var pincode pincode
    json_get_var dialnumber dialnumber

    [ -n "$dat_device" ] && device=$dat_device
    [ -e "$device" ] || {
        proto_set_available "$interface" 0
        return 1
    }

    case "$service" in
        cdma|evdo)
            chat="/etc/chatscripts/evdo.chat"
        ;;
        *)
            chat="/etc/chatscripts/3g.chat"
            cardinfo=$(gcom -d "$device" -s /etc/gcom/getcardinfo.gcom)
            if echo "$cardinfo" | grep -q Novatel; then
                case "$service" in
                    umts_only) CODE=2;;
                    gprs_only) CODE=1;;
                    *) CODE=0;;
                esac
                export MODE="AT\$NWRAT=${CODE},2"
            elif echo "$cardinfo" | grep -q Option; then
                case "$service" in
                    umts_only) CODE=1;;
                    gprs_only) CODE=0;;
                    *) CODE=3;;
                esac
                export MODE="AT_OPSYS=${CODE}"
            elif echo "$cardinfo" | grep -q "Sierra Wireless"; then
                SIERRA=1
            elif echo "$cardinfo" | grep -qi huawei; then
                case "$service" in
                    umts_only) CODE="14,2";;
                    gprs_only) CODE="13,1";;
                    *) CODE="2,2";;
                esac
                export MODE="AT^SYSCFG=${CODE},3FFFFFFF,2,4"
            fi

            if [ -n "$pincode" ]; then
                PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || {
                    proto_notify_error "$interface" PIN_FAILED
                    proto_block_restart "$interface"
                    return 1
                }
            fi
            [ -n "$MODE" ] && gcom -d "$device" -s /etc/gcom/setmode.gcom

            # wait for carrier to avoid firmware stability bugs
            [ -n "$SIERRA" ] && {
                gcom -d "$device" -s /etc/gcom/getcarrier.gcom || return 1
            }

            if [ -z "$dialnumber" ]; then
                dialnumber="*99#"
            fi

        ;;
    esac

    connect="${apn:+USE_APN=$apn }DIALNUMBER=$dialnumber /usr/sbin/chat -t5 -v -E -f $chat"
    ppp_generic_setup "$interface" \
        noaccomp \
        nopcomp \
        novj \
        nobsdcomp \
        noauth \
        lock \
        crtscts \
        115200 "$device"
    return 0
}

proto_3g_teardown() {
    proto_kill_command "$interface"
}

[ -z "NOT_INCLUDED" ] || add_protocol 3g






-----------------------------------------------------------------------

a także log systemu :


Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.532000] PPP generic driver version 2.4.2
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.556000] IFX MEI Version 5.00.00
Wed Jul  4 10:55:19 2018 kern.warn kernel: [   27.572000] Infineon CPE API Driver version: DSL CPE API V3.24.4.4
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.592000] fuse init (API version 7.23)
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.616000] usbcore: registered new interface driver cdc_acm
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.620000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.636000] usbcore: registered new interface driver cdc_wdm
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.644000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.652000] Backport generated by backports.git backports-20151218-0-g2f58d9d
Wed Jul  4 10:55:19 2018 kern.warn kernel: [   27.680000] Lantiq MIPS24KEc MPS driver, version 2.2.2.5, (c) 2006-2010 Lantiq Deutschland GmbH
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.688000] request_timer(3, 0x000001AE, 1)...successful!
Wed Jul  4 10:55:19 2018 kern.warn kernel: [   27.696000] Lantiq VMMC device driver, version 1.9.0.3, (c) 2006-2010 Lantiq Deutschland GmbH
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.712000] ATM1.0.26    ATM (A1) firmware version 0.17
Wed Jul  4 10:55:19 2018 kern.warn kernel: [   27.716000] ifxmips_atm: ATM init succeed
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.736000] nf_conntrack version 0.5.0 (942 buckets, 3768 max)
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.788000] PPP MPPE Compression module registered
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.796000] NET: Registered protocol family 24
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.800000] PPTP driver version 0.8.5
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.808000] usbcore: registered new interface driver usblp
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.836000] usbcore: registered new interface driver usbserial
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.840000] usbcore: registered new interface driver usbserial_generic
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.844000] usbserial: USB Serial support registered for generic
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.900000] xt_time: kernel timezone is -0000
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.916000] cdc_ether 1-1.1:1.1 wwan0: register 'cdc_ether' at usb-ifxusb_hcd-1.1, Mobile Broadband Network Device, 58:2c:80:13:92:63
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.928000] usbcore: registered new interface driver cdc_ether
Wed Jul  4 10:55:19 2018 kern.info kernel: [   27.940000] usbcore: registered new interface driver cdc_ncm
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.032000] usbcore: registered new interface driver huawei_cdc_ncm
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.044000] ip_tables: (C) 2000-2006 Netfilter Core Team
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.212000] usbcore: registered new interface driver qmi_wwan
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.220000] usbcore: registered new interface driver rndis_host
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.252000] usbcore: registered new interface driver sierra
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.260000] usbserial: USB Serial support registered for Sierra USB modem
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.272000] usbcore: registered new interface driver sierra_net
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.288000] usbcore: registered new interface driver cdc_mbim
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.300000] usbcore: registered new interface driver option
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.304000] usbserial: USB Serial support registered for GSM modem (1-port)
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.312000] option 1-1.1:1.0: GSM modem (1-port) converter detected
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.320000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.324000] option 1-1.1:1.2: GSM modem (1-port) converter detected
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.332000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.336000] option 1-1.1:1.3: GSM modem (1-port) converter detected
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.344000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.352000] option 1-1.1:1.6: GSM modem (1-port) converter detected
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.356000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.372000] usbcore: registered new interface driver qcserial
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.376000] usbserial: USB Serial support registered for Qualcomm USB modem
Wed Jul  4 10:55:19 2018 kern.warn kernel: [   28.424000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
Wed Jul  4 10:55:19 2018 kern.err kernel: [   28.428000] rt2800pci 0000:00:0e.0: failed to load eeprom property
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.436000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT2860.eeprom'.
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.448000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 2860, rev 0103 detected
Wed Jul  4 10:55:19 2018 kern.info kernel: [   28.456000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0001 detected
Wed Jul  4 10:55:19 2018 kern.debug kernel: [   28.464000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Wed Jul  4 10:55:31 2018 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Wed Jul  4 10:55:31 2018 daemon.err block: /dev/sdb1 is already mounted
Wed Jul  4 10:55:35 2018 lpr.err p9100d[1248]: socket: Address family not supported by protocol
Wed Jul  4 10:55:35 2018 authpriv.info dropbear[1239]: Not backgrounding
Wed Jul  4 10:55:38 2018 kern.info kernel: [   52.436000] EXT4-fs (sdb2): recovery complete
Wed Jul  4 10:55:38 2018 kern.info kernel: [   52.444000] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
Wed Jul  4 10:55:39 2018 daemon.err uhttpd[1313]: socket(): Address family not supported by protocol
Wed Jul  4 10:55:39 2018 daemon.err uhttpd[1313]: socket(): Address family not supported by protocol
Wed Jul  4 10:55:46 2018 kern.info kernel: [   60.088000] device eth0.1 entered promiscuous mode
Wed Jul  4 10:55:46 2018 kern.info kernel: [   60.088000] device eth0 entered promiscuous mode
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'lan' is enabled
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'lan' is setting up now
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'lan' is now up
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'g3' is setting up now
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'loopback' is enabled
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'loopback' is setting up now
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'loopback' is now up
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'wan' is enabled
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Network device 'lo' link is up
Wed Jul  4 10:55:46 2018 daemon.notice netifd: Interface 'loopback' has link connectivity
Wed Jul  4 10:55:47 2018 kern.info kernel: [   61.172000] br-lan: port 1(eth0.1) entered forwarding state
Wed Jul  4 10:55:47 2018 kern.info kernel: [   61.176000] br-lan: port 1(eth0.1) entered forwarding state
Wed Jul  4 10:55:47 2018 daemon.notice netifd: Network device 'eth0' link is up
Wed Jul  4 10:55:47 2018 daemon.notice netifd: VLAN 'eth0.1' link is up
Wed Jul  4 10:55:47 2018 daemon.notice netifd: VLAN 'eth0.2' link is up
Wed Jul  4 10:55:47 2018 daemon.notice netifd: Interface 'wan' has link connectivity
Wed Jul  4 10:55:47 2018 daemon.notice netifd: Interface 'wan' is setting up now
Wed Jul  4 10:55:47 2018 daemon.notice netifd: Bridge 'br-lan' link is up
Wed Jul  4 10:55:47 2018 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Jul  4 10:55:49 2018 daemon.notice netifd: wan (1457): udhcpc (v1.23.2) started
Wed Jul  4 10:55:49 2018 kern.info kernel: [   63.180000] br-lan: port 1(eth0.1) entered forwarding state
Wed Jul  4 10:55:50 2018 daemon.notice netifd: wan (1457): Sending discover...
Wed Jul  4 10:55:51 2018 daemon.notice netifd: radio0 (1405): command failed: Operation not supported (-122)
Wed Jul  4 10:55:53 2018 daemon.notice netifd: wan (1457): Sending discover...
Wed Jul  4 10:55:55 2018 user.emerg syslog: setting up led wifi
Wed Jul  4 10:55:55 2018 user.emerg syslog: setting up led usb
Wed Jul  4 10:55:55 2018 user.emerg syslog: setting up led internet
Wed Jul  4 10:55:55 2018 user.emerg syslog: setting up led fxo
Wed Jul  4 10:55:56 2018 user.emerg syslog: setting up led fxs1
Wed Jul  4 10:55:56 2018 user.emerg syslog: setting up led fxs2
Wed Jul  4 10:55:56 2018 daemon.notice netifd: wan (1457): Sending discover...
Wed Jul  4 10:55:56 2018 user.emerg syslog: setting up led message
Wed Jul  4 10:55:57 2018 daemon.notice netifd: radio0 (1405): Configuration file: /var/run/hostapd-phy0.conf
Wed Jul  4 10:55:57 2018 user.emerg syslog: setting up led power1
Wed Jul  4 10:55:57 2018 user.emerg syslog: setting up led voice1
Wed Jul  4 10:55:57 2018 kern.info kernel: [   71.120000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
Wed Jul  4 10:55:57 2018 user.emerg syslog: setting up led voice2
Wed Jul  4 10:55:57 2018 kern.info kernel: [   71.312000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34
Wed Jul  4 10:55:57 2018 kern.info kernel: [   71.436000] device wlan0-1 entered promiscuous mode
Wed Jul  4 10:55:57 2018 daemon.notice netifd: radio0 (1405): wlan0-1: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Jul  4 10:55:57 2018 daemon.notice netifd: radio0 (1405): Using interface wlan0-1 with hwaddr 00:0c:43:28:60:01 and ssid "OpenWrt"
Wed Jul  4 10:55:57 2018 daemon.notice netifd: radio0 (1405): wlan0-1: interface state COUNTRY_UPDATE->ENABLED
Wed Jul  4 10:55:57 2018 daemon.notice netifd: radio0 (1405): wlan0-1: AP-ENABLED
Wed Jul  4 10:55:59 2018 daemon.notice netifd: radio0 (1405): Successfully initialized wpa_supplicant
Wed Jul  4 10:56:08 2018 daemon.info procd: - init complete -
Wed Jul  4 10:56:11 2018 daemon.notice netifd: Interface 'wwan' is enabled
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq[1986]: started, version 2.73 cachesize 150
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq[1986]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq[1986]: DNS service limited to local subnets
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq-dhcp[1986]: DHCP, IP range 192.168.9.100 -- 192.168.9.249, lease time 12h
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq[1986]: using local addresses only for domain lan
Wed Jul  4 10:56:14 2018 daemon.warn dnsmasq[1986]: no servers found in /tmp/resolv.conf.auto, will retry
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq[1986]: read /etc/hosts - 1 addresses
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq[1986]: read /tmp/hosts/dhcp - 1 addresses
Wed Jul  4 10:56:14 2018 daemon.info dnsmasq-dhcp[1986]: read /etc/ethers - 0 addresses
Wed Jul  4 10:56:15 2018 daemon.info dnsmasq-dhcp[1986]: DHCPREQUEST(br-lan) 192.168.9.219 68:f7:28:48:9e:43
Wed Jul  4 10:56:15 2018 daemon.info dnsmasq-dhcp[1986]: DHCPACK(br-lan) 192.168.9.219 68:f7:28:48:9e:43 magdamint18-Lenovo-Z50-75
Wed Jul  4 10:57:50 2018 authpriv.info dropbear[2298]: Child connection from 192.168.9.219:56779
Wed Jul  4 10:58:02 2018 authpriv.notice dropbear[2298]: Password auth succeeded for 'root' from 192.168.9.219:56779
Wed Jul  4 10:58:14 2018 daemon.notice netifd: Interface 'g3' is now down
Wed Jul  4 10:58:14 2018 daemon.notice netifd: Interface 'g3' is setting up now
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.568000] option1 ttyUSB0: option_instat_callback: error -150
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.572000] option1 ttyUSB0: option_instat_callback: error -150
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.576000] usb 1-1.1: USB disconnect, device number 3
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.580000] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.588000] option1 ttyUSB0: option_instat_callback: error -150
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.596000] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.604000] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Wed Jul  4 10:59:25 2018 kern.err kernel: [  279.612000] option1 ttyUSB0: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.620000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.628000] option 1-1.1:1.0: device disconnected
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.632000] cdc_ether 1-1.1:1.1 wwan0: unregister 'cdc_ether' usb-ifxusb_hcd-1.1, Mobile Broadband Network Device
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.644000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.652000] option 1-1.1:1.2: device disconnected
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.656000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.664000] option 1-1.1:1.3: device disconnected
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.688000] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Wed Jul  4 10:59:25 2018 kern.info kernel: [  279.692000] option 1-1.1:1.6: device disconnected
Wed Jul  4 10:59:26 2018 daemon.err pppd[2880]: unrecognized option '/dev/ttyUSB0'
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880): /usr/sbin/pppd: unrecognized option '/dev/ttyUSB0'
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880): pppd version 2.4.7
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880): Usage: /usr/sbin/pppd [ options ], where options are:
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     <device>    Communicate over the named device
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     <speed>        Set the baud rate to <speed>
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     <loc>:<rem>    Set the local and/or remote interface IP
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):             addresses.  Either one may be omitted.
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     asyncmap <n>    Set the desired async map to hex <n>
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     auth        Require authentication from peer
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):         connect <p>     Invoke shell command <p> to set up the serial line
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     crtscts        Use hardware RTS/CTS flow control
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     defaultroute    Add default route through interface
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     file <f>    Take options from file <f>
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     modem        Use modem control lines
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880):     mru <n>        Set MRU value to <n> for negotiation
Wed Jul  4 10:59:26 2018 daemon.notice netifd: g3 (2880): See pppd(8) for more options.
Wed Jul  4 10:59:27 2018 daemon.notice netifd: Interface 'g3' is now down
Wed Jul  4 10:59:32 2018 kern.info kernel: [  286.928000] usb 1-1.1: new high-speed USB device number 5 using ifxusb_hcd
Wed Jul  4 10:59:33 2018 kern.info kernel: [  287.292000] usb-storage 1-1.1:1.0: USB Mass Storage device detected
Wed Jul  4 10:59:33 2018 kern.info kernel: [  287.308000] scsi host3: usb-storage 1-1.1:1.0
Wed Jul  4 10:59:33 2018 kern.info kernel: [  287.312000] usb-storage 1-1.1:1.1: USB Mass Storage device detected
Wed Jul  4 10:59:33 2018 kern.info kernel: [  287.324000] scsi host4: usb-storage 1-1.1:1.1
Wed Jul  4 10:59:33 2018 kern.info kernel: [  287.748000] usb 1-1.1: USB disconnect, device number 5
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.060000] usb 1-1.1: new high-speed USB device number 6 using ifxusb_hcd
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.452000] option 1-1.1:1.0: GSM modem (1-port) converter detected
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.460000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB0
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.604000] cdc_ether 1-1.1:1.1 wwan0: register 'cdc_ether' at usb-ifxusb_hcd-1.1, Mobile Broadband Network Device, 58:2c:80:13:92:63
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.616000] option 1-1.1:1.2: GSM modem (1-port) converter detected
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.620000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB1
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.628000] option 1-1.1:1.3: GSM modem (1-port) converter detected
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.636000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB2
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.640000] usb-storage 1-1.1:1.4: USB Mass Storage device detected
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.660000] scsi host5: usb-storage 1-1.1:1.4
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.664000] usb-storage 1-1.1:1.5: USB Mass Storage device detected
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.676000] scsi host6: usb-storage 1-1.1:1.5
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.684000] option 1-1.1:1.6: GSM modem (1-port) converter detected
Wed Jul  4 10:59:39 2018 kern.info kernel: [  293.688000] usb 1-1.1: GSM modem (1-port) converter now attached to ttyUSB3
Wed Jul  4 10:59:41 2018 daemon.notice netifd: Interface 'g3' is setting up now
Wed Jul  4 10:59:42 2018 kern.notice kernel: [  295.956000] scsi 5:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Wed Jul  4 10:59:42 2018 kern.notice kernel: [  295.968000] scsi 6:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Wed Jul  4 10:59:42 2018 kern.notice kernel: [  295.996000] sd 6:0:0:0: [sda] Attached SCSI removable disk



-------------------------------------------------------------------------------
walczę z tym modem drugi dzień  próbując połaczyć go z siecią na routerze czuję że jestem w kropce wieć proszę o pomoc.

Linux mint łączy się poprawnie a to są jego ustawienia wyłuskane z "modyfikuj połączenia"

numer :    *99#
nazwa użytkownika i hasło to :   internet
APN : internet

Modem na laptopie łączy się poprawnie.

Podejrzewam ,że chodzi o to na końcu  :

Wed Jul  4 10:59:42 2018 kern.notice kernel: [  295.956000] scsi 5:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Wed Jul  4 10:59:42 2018 kern.notice kernel: [  295.968000] scsi 6:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Wed Jul  4 10:59:42 2018 kern.notice kernel: [  295.996000] sd 6:0:0:0: [sda] Attached SCSI removable disk

Jest w trybie cd-rom ale ja nie umiem przełaczyć tego trybu.

Z góry dziękuję za pomoc.

8

(5 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

I następny błąd - /mnt/sda4/privatee  czy /mnt/sd4/privatee jak masz w sambie? Bo to nie to samo.

Ale wstyd  i tu mnie masz. Już śmiga na windows 7 i mint bez problemu . Wszystkie inne udziały mam sda[nr] a tu literówka

Dziękuje za pomoc i dobre oko wink

9

(5 odpowiedzi, napisanych Oprogramowanie / Software)

dziękuję za zainteresowanie i pomoc

Jest krok dalej.Zrobiłem według instrukcji Cezara i teraz mam :
Windows 7 "Błąd sieciowy" - SYSTEM windows nie moze uzyskac dostępu do \\EASYBOX\privatee
kod błedu : 0x80070035
Nie można odnaleźć ścieżki sieciowej. -->> wybieram diagnozuj  i :
SPRAWDZ POPRAWNOŚĆ USTAWIEŃ UPRAWNIEŃ DO UDZIAŁU "privatee"
Nie masz uprawnień dostępu do udziału.
Rozwiazywanie problemów zostało ukończone
"TO KONTO UŻYTKOWNIKA NIE MA UPRAWNIEŃ DOSTEPU DO UDZIAŁU privatee"
Dałem w konsoli : chmod 777 /mnt/sda4/privatee
ale to nie pomogło hmm
<nazwa_komputera>\<nazwa_użytkownika> i hasło odsyła mnie w to samo miejsce .

Na linux mint 17.2 Live mam :
Unable to mount location
Failed to mount Windows share:No such file or directory

10

(5 odpowiedzi, napisanych Oprogramowanie / Software)

IDEA :
Chciałbym utworzyć chroniony hasłem folder w udziałach SAMBY

CO ZROBIŁEM :

1.utworzyłem użytkownika dla systemu :
/etc/passwd
nobody:*:65534:65534:nobody:/var:/bin/false
ktoskogonieznasz:*:1001:65534:ktoskogonieznasz:/tmp:/bin/false

/etc/shadow
ktoskogonieznasz:*:0:0:99999:7:::

2.hasło dla SAMBY:
/etc/samba/smbpasswd

ktoskogonieznasz:1001:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:09FFD04BD52293A3655C972C7641CD05:[U          ]:LCT-00000001:

3.Udział prywatny w SAMBIE:
/etc/config/samba

config samba
    option workgroup 'WORKGROUP'
    option homes '0'
    option name 'EasyBOX'
    option description 'EasyBOX'

config sambashare
    option name 'privatee'
    option path '/mnt/sd4/privatee'
    option read_only 'no'
    option guest_ok 'no'
    option users ktoskogonieznasz
        option dir_mask '0777'
        option create_mask '0444'

4.RZECZYWISTOŚĆ:
W Windows 7 --> sieć --> EASYBOX
Katalog "privatee" po jego kliknięciu pytanie o "WPROWADŹ HASŁO SIECIOWE"
wiec piszę nazwa użytkownika "ktoskogonieznasz" i hasło

Okno znika po czym pojawia się znowu z pytaniem o hasło (tylko jedno pole)

KONKLUZJA smile

NIE PRZYJMUJE HASŁA  i nie mogę wejść do katalogu "privatee"
Dodam że dla innych udziałów PUBLICZNYCH SAMBA wszystko działa jak należy.
Proszę o pomoc w znalezieniu przyczyny.

11

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Jakie cat? /etc/sm.sh po prostu. A skrypt zaczyna się się od !/bin/sh np. Masz dużo skryptów systemie, zobacz jak są zbudowane.

Dobra działa wink

cron :

13 23 * * * /usr/bin/sm start

/usr/bin/sm :

#!/bin/sh /etc/rc.common
cat /etc/sm.txt | /usr/bin/msmtp -t

Wniosek. Wystarczyło wrzucić skrypt do usr/bin
Dzięki za pomoc

12

(24 odpowiedzi, napisanych Oprogramowanie / Software)

czyli w cron np :

50 20 * * * cat /etc/sm.sh

a w sm.sh  dac to ?

cat /etc/sm.txt | /usr/bin/msmtp -t

13

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Jak zrobisz reload to start już nie jest potrzebny.

tylko czemu cron nie wykonuje tej komendy.
Przez konsole działa to normalnie ):
oczywiscie zmieniam czas sprawdzajac w putty uptime a w cron dodaje wtedy 3 min wiecej

14

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Porządkujac wszystko mam tak :

cron:

12 20 * * * cat /etc/sm.txt | /usr/bin/msmtp -t

sm.txt :

To: jakismail@gmail.com
Subject: wiadomosc testowa
Uwaga resetuje Router za 5 min.

Wklepie to w puty  działa :
cat /etc/sm.txt | /usr/bin/msmtp -t

w cronie nie chce działac.
po zapisaniu zmian robie :
/etc/init.d/cron reload
musze po reload pisac też :
/etc/init.d/cron start ?

15

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Podaj pełną ścieżkę do sendmaila a jeszcze lepiej - zrób  z tego skrypt i wywołaj skrypt w cronie.

Wyślij mejla, poczekaj 5 minut i zrób reboot, oczywiste to smile


37 19 * * * sendmail jakismail@gmail.com < /etc/sm.txt

ale nie zadziałało. zawartosc sm.txt to tresc maila czy coś jeszcze ?
Pomóż mi proszę z poprawnościa komendy

16

(24 odpowiedzi, napisanych Oprogramowanie / Software)

/etc/sm.txt | sendmail -t

chce wysłać do siebie maila na 5 min przed reboot routera.Jak to zrobić w cron ?

16 18 * * * cat /etc/sm.txt | sendmail -t

tak nie działa.
Jesli w putt wpisze

/etc/sm.txt | sendmail -t
lub
cat /etc/sm.txt | sendmail -t
to działa dobrze.

Jak to zrobic w crontabs ?

17

(24 odpowiedzi, napisanych Oprogramowanie / Software)

2 o 7 i 21  ten w środku to będzie jedno razowa próba czy działa.

Wierzę w to  że w jakiś magiczny bramkowo logiczny  sposób router po wstaniu działa lepiej wink

18

(24 odpowiedzi, napisanych Oprogramowanie / Software)

No nie, zostaw tak jest smile Bo kiedyś coś jeszcze dodasz do crona i będziesz się zastanawiał dlaczego nie działa.

Dobra dobry komentarz mnie naprowadzi wink

#1.cron inicjowany(start) z    /etc/hotplug.d/iface/25-dnsmasq    .działa po zsynchronizowaniu czasu przez ruter.
# cykliczne sprawy np co 1 min bez synchro na start (wylacz punkt 1 ) uncoment "...sleep and touch" a w putty /etc/init.d/cron enable && /etc/init.d/cron start
# By Cezary wink
# https://eko.one.pl/forum/viewtopic.php? … 20#p196920

#03 13 * * * sleep 70 && touch /etc/banner && reboot


03 7 * * *   reboot
03 15 * * *  reboot
03 21 * * *  reboot

19

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Rozumiem.Dziękuje

W takim razie dla potomności wykomentuję # sobie w crontabs/root   to linijke z touch-em a zastosuje twoje rozwiązanie .

Raz jeszcze dzięki.

20

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

EDIT: co prawda to co napisałem jest dobre, ale całkowicie ma się nijak to twojego problemu smile
To co pokazałeś jest ok - po prostu robi sleepa na ponad minutę, ustawia czas dostępu do pliku i robi reboot. Więc po starcie będzie miał 3:14 10s i wszystko będzie ok.

Ok. a Gdybym teoretycznie zrobił tak jak mój post wyżej działało by to ?

21

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

A co jak przez 70 sekund nie nawiąże połączenia i nie będzie właściwego czasu?

Aha.U mnie jest to w  tak ?

/etc/hotplug.d/iface/25-dnsmasq

Jego zawartosć by inicjować cron to :

#!/bin/sh

[ "$ACTION" = ifup ] || exit 0

/etc/init.d/dnsmasq enabled && /etc/init.d/dnsmasq start

/etc/init.d/cron start

a w /etc/crontabs/root powinno byc np tak :

03 7 * * *   reboot
03 15 * * *  reboot
03 21 * * *  reboot

22

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Michal1986 napisał/a:

03 13 * * * sleep 70 && touch /etc/banner && reboot

Ok działa jak trzeba .Restartuje urządzenie raz.

23

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

  jest ntp w hotplugu.

ntp hotplugu ? dzieki Cezar za szybko odp lecz nie rozumiem co masz na myśli ):


Znalazłem takie coś na necie

30 4 * * * sleep 70 && touch /etc/banner && reboot

rozumiem tylko ze : o 4:30 rano system czeka 70 sekund i touch /etc/banner ? nierozumiem ...i potym reboot

o co chodzi z tą czescia touch ?

jak wkleje tą komende to powinno rstartować raz o konkretnej godzinie czy coś jeszcze trzeba zrobic ?

24

(24 odpowiedzi, napisanych Oprogramowanie / Software)

Szybkie pytanie.

/etc/init.d/cron   
chaos 15.05

Mogę zmienić start crona START =50 na START=150 bezkarnie czy tą zmianą utrudnię sobie życie ?
Dlaczego pytam :

49 11 * * * reboot

chciałem by robił reboot o określonej godzinie i zrobił a po tym jak system wstał robił reboot co 1 min.

Poczytałem i jak mniemam wcześniej wstaje cron niż system ustali godzinę i stąd ten reboot co 1 min tak ?

wiec czy START=150 usunie ten problem nie tworząc przy okazji żadnego innego ?

a to kod z /etc/init.d/cron

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org

START=150

USE_PROCD=1
PROG=/usr/sbin/crond

validate_cron_section() {
    uci_validate_section system system "${1}" \
        'cronloglevel:uinteger'
}

start_service () {
    [ -z "$(ls /etc/crontabs/)" ] && return 1

    loglevel=$(uci_get "system.@system[0].cronloglevel")

    [ -z "${loglevel}" ] || {
        /sbin/validate_data uinteger "${loglevel}" 2>/dev/null
        [ "$?" -eq 0 ] || {
            echo "validation failed"
            return 1
        }
    }

    mkdir -p /var/spool/cron
    ln -s /etc/crontabs /var/spool/cron/ 2>/dev/null

    procd_open_instance
    procd_set_param command "$PROG" -f -c /etc/crontabs -l ${loglevel:-5}
    procd_close_instance
}

service_triggers()
{
    procd_add_validation validate_cron_section
}

25

(15 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Po co kopiujesz to .samba.uci-FhB3WV? To niezapisane pliki są.

plik skasowałem .

Cezary napisał/a:

Zostaw zakomentowane /etc/rc.local tak jak pokazałeś, żeby nic się nie kopiowało. Skasuj z /etc/config plik .samba.uci jeżeli jest.

.samba.uci-FhB3WV?  ununiety .

/etc/rc.local  zostawione zakoentowane #



Cezary napisał/a:

Doprowadź edytorem (nano np.) do ładu plik /etc/config/samba tak aby zostały tylko dwie sekcje sambashare. Zapisz, zrestartuj, muszą nadal zostać tylko dwie sekcje.

to zostawiłem.Po zapisaniu i otwarciu zawartosć :

config samba
    option workgroup 'WORKGROUP'
    option homes '0'
    option name 'EasyBOX'
    option description 'EasyBOX'

config sambashare
    option name 'Magda'
    option read_only 'no'
    option guest_ok 'yes'
    option create_mask '0444'
    option path '/mnt/sda3'
    option dir_mask '0777'

config sambashare
    option name 'Reszta'
    option read_only 'no'
    option guest_ok 'yes'
    option create_mask '0444'
    option path '/mnt/sda4'
    option dir_mask '0777'

a to po reboot  :

config samba
    option workgroup 'WORKGROUP'
    option homes '0'
    option name 'EasyBOX'
    option description 'EasyBOX'

config sambashare
    option name 'Magda'
    option read_only 'no'
    option guest_ok 'yes'
    option create_mask '0444'
    option path '/mnt/sda3'
    option dir_mask '0777'

config sambashare
    option name 'Reszta'
    option read_only 'no'
    option guest_ok 'yes'
    option create_mask '0444'
    option path '/mnt/sda4'
    option dir_mask '0777'

config sambashare
    option name 'sda1'
    option path '/mnt/sda1'
    option read_only 'no'
    option guest_ok 'yes'

config sambashare
    option name 'system'
    option path '/mnt/system'
    option read_only 'no'
    option guest_ok 'yes'

config sambashare
    option name 'Magda'
    option path '/mnt/Magda'
    option read_only 'no'
    option guest_ok 'yes'

config sambashare
    option name 'Reszta'
    option path '/mnt/Reszta'
    option read_only 'no'
    option guest_ok 'yes'

coś musi się odtwarzać ale co i gdzie to ja nie ogarniam.Pewnie coś wklepałem z poradnika nie do końca łapiąc za co odpowiada.To mój pierwszy system unixowy  i siedzę w nim od 2 tygodni.Już go kocham a to że czasem się nie słucha to zupełnie jak z żoną xd wink Obszedłem ten problem na mój porypany sposób i zadowalam się kompromisem.Program robi z samba co chce a ja wrzucam swoje 3 grosze wink

Nie wiem co w tym demonie siedzi ... pewnie kobieta wink

Dzięki Cezar za poświęcony czas.Może dłubiąc w openwrt inne ciekawe rzeczy przy okazji naprawię to.Jeśli tak się stanie i ja to ogarne to napiszę to tu.

Pozdrawiam dobrej soboty