Z minidlna mam cały czas kłopot, bo nie startuje po reboocie routera i w przeglądarce wyświetla zero plików.
Dopiero komenda: minidlna -R -d -f /tmp/minidlna.conf pobudza skanowanie.
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Posty przez robert_szcz
Z minidlna mam cały czas kłopot, bo nie startuje po reboocie routera i w przeglądarce wyświetla zero plików.
Dopiero komenda: minidlna -R -d -f /tmp/minidlna.conf pobudza skanowanie.
Już wpisałem. A czy da się ustawić żeby przy uruchamianiu routera, minidlna startowało z opóźnieniem. Chodzi mi o to, że najpierw montuje się dysk z extrootem i jeżeli minidlna wystaruje za wcześnie to nie znajdzie zamontowanego dysku sda3.
Dzięki z sambą już się uporałem i dałem uprawnienia do zapisu i odczytu.
Co do minidlna, to -R w którym miejscu ma być wpisane (jest tego sporo):
#!/bin/sh /etc/rc.common
# Copyright (C) 2010 OpenWrt.org
START=50
SERVICE_USE_PID=1
MINIDLNA_CONFIG_FILE="/tmp/minidlna.conf"
minidlna_cfg_append() {
echo "$1" >> "$MINIDLNA_CONFIG_FILE"
}
minidlna_cfg_addbool() {
local cfg="$1"
local key="$2"
local def="$3"
local val
config_get_bool val "$cfg" "$key" "$def"
[ "$val" -gt 0 ] && val="yes" || val="no"
minidlna_cfg_append "$key=$val"
}
minidlna_cfg_addstr() {
local cfg="$1"
local key="$2"
local def="$3"
local val
config_get val "$cfg" "$key" "$def"
[ -n "$val" ] && minidlna_cfg_append "$key=$val"
}
minidlna_cfg_add_media_dir() {
local val=$1
minidlna_cfg_append "media_dir=$val"
}
minidlna_create_config() {
local cfg=$1
local port
local interface
config_get port $cfg port
config_get interface $cfg interface
[ -z "$interface" -o -t "$port" ] && return 1
echo "# this file is generated automatically, don't edit" > "$MINIDLNA_CONFIG_FILE"
minidlna_cfg_append "port=$port"
minidlna_cfg_append "network_interface=$interface"
minidlna_cfg_addstr $cfg friendly_name
minidlna_cfg_addstr $cfg db_dir
minidlna_cfg_addstr $cfg log_dir
minidlna_cfg_addbool $cfg inotify '1'
minidlna_cfg_addbool $cfg enable_tivo '0'
minidlna_cfg_addbool $cfg strict_dlna '0'
minidlna_cfg_addstr $cfg album_art_names
minidlna_cfg_addstr $cfg presentation_url
minidlna_cfg_addstr $cfg notify_interval '900'
minidlna_cfg_addstr $cfg serial '12345678'
minidlna_cfg_addstr $cfg model_number '1'
minidlna_cfg_addstr $cfg minissdpsocket
minidlna_cfg_addstr $cfg root_container '.'
config_list_foreach "$cfg" "media_dir" minidlna_cfg_add_media_dir
return 0
}
start() {
local enabled
config_load 'minidlna'
config_get_bool enabled config 'enabled' '0'
[ "$enabled" -gt 0 ] || return 1
minidlna_create_config config || return 1
mkdir -m 0755 -p /var/log
mkdir -m 0755 -p /var/run/minidlna
service_start /usr/bin/minidlna -f "$MINIDLNA_CONFIG_FILE"
}
stop() {
service_stop /usr/bin/minidlna
}Samba działa poprawnie, tylko jak zrobić żebym mógł zapisywać też na dysk (teraz jest tylko do odczytu). Gdzie trzeba coś wpisać żeby można było pliki dodawać na dysk.
I jeszcze pytanko o minidlna bo nie skanuje automatycznie po restarcie routera. Jedyna możliwość to ręcznie wymuszać skanowanie dlna:
etc/init.d/minidlna stop
killall -9 minidlna
minidlna -R -d -f /tmp/minidlna.conf
Można temu jakoś zaradzić.
Dzięki Czarek. Już działa samba. Mam tylko pytanko, bo nie dopisywałem do /etc/config/fstab tego:
config mount
option target /mnt/sda3
option device /dev/sda3
option fstype ext4
option options rw,noatime
option enabled 1
Ale i tak działa. Czy konieczne jest dopisanie powyższego czy po prostu automontowanie juz dziala poprawnie i nie trzeba.
Dwa razy resetowałm i wszystko jest ok.
No tak rzeczywiście przeoczyłem, ale juz mam zainstalowany block-mount i działa.
Rozumiem ze montowanie sda3 mam zrobić w /etc/config/fstab jak niżej (dodatkowy wpis):
config mount
option target /mnt/dysk
option device /dev/sda3
option fstype ext4
option options rw,noatime
option enabled 1
Kurde wydaje mi się że sda3 wogóle sie nie montuje automatycznie. Czy w mount nie powinna być widoczna:
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/sda1 on /overlay type ext4 (rw,sync,relatime,user_xattr,barrier=1,data=ordered)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)Czy wszystko jest ok. Wydaje mie się ze powinno być widoczne sda1 (extroot), sda2 (swap) i sda3.
Ps. napewno jest coś nie tak bo cat /etc/config/fstab pokazuje:
-ash: /etc/config/fstab: not found
OK wywaliłem wpis o gargoyle i zainstalowałem samba36-server - 3.6.5-2.
Konfig /etc/config/sambaustawiłem tak:
config samba
option 'name' 'OpenWrt'
option 'workgroup' 'WORKGROUP'
option 'description' 'OpenWrt'
option 'homes' '1'
config sambashare
option name share_1
option path /mnt/sda3
option read_only no
option create_mask 0700
option dir_mask 0700
option guest_ok yesChciałbym udostępnić całą partycję sda3 (jest tam folder Muza i Historia), ale nie wiem czy tak da radę, czy musibyć konkretny folder np. Muza.
Które wpisy wywalić z /etc/opkg.conf (żebym znowu coś nie namieszał). Mam takie coś:
src/gz attitude_adjustment http://downloads.openwrt.org/attitude_adjustment/12.0
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz eko1 http://ecco.selfip.net/attitude_adjustment/ar71xx/packages
src/gz gargoylepl http://ecco.selfip.net/gargoyle-pl/attitude_adjustment/ar71xx/
dest plugin_root /plugin_rootJakbyś był uprzejmy wskazać, co z tego wywalić to byłbym wdzięczny. Poza tym widze dwie paczki z sambą: luci-app-samba_0.11.1-1_ar71xx.ipk oraz samba36-server_3.6.5-2_ar71xx.ipk. Rozumiem że ta druga paczka jest właściwa dla mnie.
Sambe zainstalowałem zgodnie z tym poradnikiem: http://eko.one.pl/?p=openwrt-samba.
A jest możliwość że wgrało tą samą sambe co miałem. Jeżeli tak to skąd ściągnąć właściwą paczkę.
Odinstalowałem sambe i usunąlem poleceniem rm /etc/config/samba + /etc/samba/smb.conf.template + /etc/init.d/samba.
Następnie zainstalowałem sambe tymi poleceniami:
# opkg update
# opkg install samba36-server
Co dalej mam zrobić, bo zgodnie z poradnikiem mam schyba konfigurować /etc/config/samba, który teraz jest całkowicie pusty.
A czy wcześniej powinienem odinstalować sambe i ponownie zainstalować, czy w najnowszym gargoyle nie potrzeba tego robić. Sambe uruchomić wg. tego poradnika: http://eko.one.pl/?p=openwrt-samba
Ok Czarek, usunąłem plugin usb storage tymi poleceniami:
# opkg remove plugin-gargoyle-usb-storage
# uci del gargoyle.display.system_usb_storage
# uci del gargoyle.scripts.system_usb_storage
# uci del gargoyle.system.usb_storage
# uci commit gargoyle
Co zrobić w następnej kolejności, żeby nie namieszać znowu.
Na dev_sda3 (trzecia partycja) mam dwa katalogi: "Muza" i "Historia". Natomiast share_1, pokazuje mi się w środowisku graficznym gargoyle jako nazwa udziału.
W WinSCP jak podglądam to w folderze usb_mount mam jakby główny folder: "67c62efe-8f16-4f76-93a6-76a7e2f31407", a w nim dwa wyżej wymienione foldery muza i historia.
Samba chyba jest uruchomiona, gdzie to można sprawdzić (ps powie nic mi nie mówi).
Gdzie sprawdzić czy samba jest włączona. Podałem /mnt/sda3/share_1 bo to chyba ścieżka dostępu do partycji która ma być przeglądana poprzez sambe. Chyba że co innego powinno być.
Już w porządku extroot działa.
Teraz chce skonfigurować sambe.
W config samba pokazuje:
config samba
option 'workgroup' 'WORKGROUP'
#option 'name' 'OpenWrt'
#option 'description' 'OpenWrt'
#option 'homes' '1'
#config sambashare
# option 'name' 'share_1'
option 'path' '/mnt/sda3/share_1'
# option 'read_only' 'no'
# option 'guest_ok' 'yes'
# option 'public' 'yes'
# option 'browseable' 'yes'
# option 'create_mask' '0700'
# option 'dir_mask' '0700'
# #list 'users_rw' 'user1'
# #list 'users_rw' 'user2'
# #list 'users_ro' 'user3'Nie wiem co zrobiłem źle, ale nie moge zmapować dysku sda3, bo windows go nie widzi.
Zrobiłem upgrade do najnowszego Gargoyla i teraz zabieram się za zrobienie nowego extroota. Odinstalowałem plugin USB i zainstalowałem block-mount.
Sformatowałem partycję sda1 na której miałem extroota. Dlaczego przy wpisywaniu komendy: /etc/config/fstab wyskakuje mi
-ash: /etc/config/fstab: Permission denied.
Czyżby coś nie tak z dyskiem.
uci show fstab pokazuje:
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=1
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].target=/home
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].fstype=ext4
fstab.@mount[0].options=rw,sync
fstab.@mount[0].enabled=0
fstab.@mount[0].enabled_fsck=0
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].enabled=0blkid:
/dev/mtdblock2: TYPE="squashfs"
/dev/sda1: UUID="708b02f2-d8f1-4ae7-97b6-afcc7fd90447" TYPE="ext4"
/dev/sda2: UUID="2c537aef-4691-451e-9cbe-4216e76d61e7" TYPE="swap"
/dev/sda3: UUID="67c62efe-8f16-4f76-93a6-76a7e2f31407" TYPE="ext4"Podłączony jest tylko dysk zewnętrzny 3.5 z własnym zasilaniem, podzielony na 3 partycje: extroot, swap i dane. Nic więcej nie mam podłączonego (oprócz drugiego Tplinka, z którego jest net z radiówki). TL1043 służy w zasadzie tylko do bezprzewodowego rozsyłania netu po domu. Ale to chyba nie ma znaczenia.
Po restarcie routera, przy podłączonym dysku, router wogóle nie startuje nawet z flesza. Dopiero jak odłącze dysk i restartuje router to zaczyna działać.
Spróbuje od nowa wgrac najnowszego Gargoyle i wszystko będę ustawiał od nowa.
Bo sdb Ci widzi . uuid stosuj, nie oznaczenia dysków.
Chodzi ci o dodanie uuid do fastaba, czy gdzie indziej mam wpisać uuid. Edytowałem fstab, ale nie działa, teraz w uci show fastab mam:
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=1
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].target=/overlay
fstab.@mount[0].fstype=ext4
fstab.@mount[0].options=rw,noatime
fstab.@mount[0].enabled_fsck=0
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].uuid=708b02f2-d8f1-4ae7-97b6-afcc7fd90447
fstab.@mount[0].enabled=1
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].uuid=2c537aef-4691-451e-9cbe-4216e76d61e7
fstab.@swap[0].enabled=1Ewntualnie gdzie jescze zmienić.
Witam,
Mam problem, otóż zresetowłem router TPLinka 1043 ND, który miał extroota na dysku zewnętrznym (dodatkowo swap + partycja na dane). Nie wiem co jest grane, ale wygląda na to, że router przestał widzieć dysk i nie startuje z extroota.
Polecenie mount:
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sdb1 on /mnt/sdb1 type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
/dev/sdb3 on /mnt/sdb3 type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)Polecenie df -h
Filesystem Size Used Available Use% Mounted on
rootfs 1.9M 368.0K 1.5M 19% /
/dev/root 5.3M 5.3M 0 100% /rom
tmpfs 14.3M 2.5M 11.8M 17% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 1.9M 368.0K 1.5M 19% /overlay
overlayfs:/overlay 1.9M 368.0K 1.5M 19% /
/dev/sdb1 997.4M 35.0M 962.4M 4% /mnt/sdb1
/dev/sdb3 231.5G 49.1G 182.4G 21% /mnt/sdb3Logread pokauje:
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.210000] sd 1:0:0:0: [sdb] No Caching mode page present
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.210000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.220000] sd 1:0:0:0: [sdb] No Caching mode page present
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.230000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
Mar 23 12:32:20 Gargoyle kern.info kernel: [ 1607.260000] sdb: sdb1 sdb2 sdb3
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.270000] sd 1:0:0:0: [sdb] No Caching mode page present
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.270000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
Mar 23 12:32:20 Gargoyle kern.notice kernel: [ 1607.280000] sd 1:0:0:0: [sdb] Attached SCSI disk
Mar 23 12:32:20 Gargoyle kern.warn kernel: [ 1607.530000] head: sending ioctl 540d to a partition!
Mar 23 12:32:20 Gargoyle kern.warn kernel: [ 1607.530000] head: sending ioctl 540d to a partition!
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.900000] EXT4-fs (sdb1): couldn't mount as ext3 due to feature incompatibilities
Mar 23 12:32:20 Gargoyle kern.err kernel: [ 1607.920000] EXT4-fs (sdb1): couldn't mount as ext2 due to feature incompatibilities
Mar 23 12:32:20 Gargoyle kern.info kernel: [ 1607.940000] EXT4-fs (sdb1): recovery complete
Mar 23 12:32:20 Gargoyle kern.info kernel: [ 1607.950000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
Mar 23 12:32:21 Gargoyle kern.warn kernel: [ 1608.030000] head: sending ioctl 540d to a partition!
Mar 23 12:32:21 Gargoyle kern.warn kernel: [ 1608.040000] head: sending ioctl 540d to a partition!
Mar 23 12:32:21 Gargoyle user.notice fstab: mount: mounting /dev/sdb2 on /mnt/sdb2 failed: Invalid argument
Mar 23 12:32:21 Gargoyle kern.warn kernel: [ 1608.540000] head: sending ioctl 540d to a partition!
Mar 23 12:32:21 Gargoyle kern.warn kernel: [ 1608.540000] head: sending ioctl 540d to a partition!
Mar 23 12:32:21 Gargoyle kern.err kernel: [ 1608.920000] EXT4-fs (sdb3): couldn't mount as ext3 due to feature incompatibilities
Mar 23 12:32:21 Gargoyle kern.err kernel: [ 1608.930000] EXT4-fs (sdb3): couldn't mount as ext2 due to feature incompatibilities
Mar 23 12:32:22 Gargoyle kern.info kernel: [ 1609.190000] EXT4-fs (sdb3): recovery complete
Mar 23 12:32:22 Gargoyle kern.info kernel: [ 1609.200000] EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)
Mar 23 12:33:09 Gargoyle kern.info kernel: [ 1656.070000] usb 1-1: USB disconnect, device number 3
Mar 23 12:36:09 Gargoyle kern.info kernel: [ 1836.930000] usb 1-1: new high-speed USB device number 4 using ehci-platform
Mar 23 12:36:10 Gargoyle kern.info kernel: [ 1837.080000] scsi2 : usb-storage 1-1:1.0
Mar 23 12:36:10 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=PI-202 Product=i-tec_SATA_HDD Serial=0010101640314A2A0
Mar 23 12:36:11 Gargoyle kern.notice kernel: [ 1838.080000] scsi 2:0:0:0: Direct-Access PI-202 i-tec SATA HDD 8.68 PQ: 0 ANSI: 0
Mar 23 12:36:11 Gargoyle kern.notice kernel: [ 1838.090000] sd 2:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
Mar 23 12:36:11 Gargoyle kern.notice kernel: [ 1838.100000] sd 2:0:0:0: [sdb] Write Protect is off
Mar 23 12:36:11 Gargoyle kern.debug kernel: [ 1838.100000] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.110000] sd 2:0:0:0: [sdb] No Caching mode page present
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.110000] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.120000] sd 2:0:0:0: [sdb] No Caching mode page present
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.130000] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Mar 23 12:36:11 Gargoyle kern.info kernel: [ 1838.150000] sdb: sdb1 sdb2 sdb3
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.160000] sd 2:0:0:0: [sdb] No Caching mode page present
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.170000] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Mar 23 12:36:11 Gargoyle kern.notice kernel: [ 1838.170000] sd 2:0:0:0: [sdb] Attached SCSI disk
Mar 23 12:36:11 Gargoyle kern.warn kernel: [ 1838.390000] head: sending ioctl 540d to a partition!
Mar 23 12:36:11 Gargoyle kern.warn kernel: [ 1838.400000] head: sending ioctl 540d to a partition!
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.760000] EXT4-fs (sdb1): couldn't mount as ext3 due to feature incompatibilities
Mar 23 12:36:11 Gargoyle kern.err kernel: [ 1838.780000] EXT4-fs (sdb1): couldn't mount as ext2 due to feature incompatibilities
Mar 23 12:36:11 Gargoyle kern.info kernel: [ 1838.800000] EXT4-fs (sdb1): recovery complete
Mar 23 12:36:11 Gargoyle kern.info kernel: [ 1838.810000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
Mar 23 12:36:11 Gargoyle kern.warn kernel: [ 1838.900000] head: sending ioctl 540d to a partition!
Mar 23 12:36:11 Gargoyle kern.warn kernel: [ 1838.910000] head: sending ioctl 540d to a partition!
Mar 23 12:36:12 Gargoyle user.notice fstab: mount: mounting /dev/sdb2 on /mnt/sdb2 failed: Invalid argument
Mar 23 12:36:12 Gargoyle kern.warn kernel: [ 1839.410000] head: sending ioctl 540d to a partition!
Mar 23 12:36:12 Gargoyle kern.warn kernel: [ 1839.410000] head: sending ioctl 540d to a partition!
Mar 23 12:36:12 Gargoyle kern.err kernel: [ 1839.790000] EXT4-fs (sdb3): couldn't mount as ext3 due to feature incompatibilities
Mar 23 12:36:12 Gargoyle kern.err kernel: [ 1839.800000] EXT4-fs (sdb3): couldn't mount as ext2 due to feature incompatibilities
Mar 23 12:36:13 Gargoyle kern.info kernel: [ 1840.060000] EXT4-fs (sdb3): recovery complete
Mar 23 12:36:13 Gargoyle kern.info kernel: [ 1840.060000] EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)
Mar 23 12:36:33 Gargoyle daemon.info hostapd: wlan0: STA 90:f6:52:fd:1d:c2 WPA: group key handshake completed (RSN)
Mar 23 12:36:33 Gargoyle daemon.info hostapd: wlan0: STA 9c:04:eb:9d:e7:29 WPA: group key handshake completed (RSN)
Mar 23 12:36:33 Gargoyle daemon.info hostapd: wlan0: STA a4:17:31:24:d0:5a WPA: group key handshake completed (RSN)
Mar 23 12:36:33 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: group key handshake completed (RSN)
Mar 23 12:36:42 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPINFORM(br-lan) 192.168.2.110 00:16:ea:51:a7:64
Mar 23 12:36:42 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.110 00:16:ea:51:a7:64 Laptop_domowy
Mar 23 12:38:27 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPINFORM(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2
Mar 23 12:38:27 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2 admin-Komputer
Mar 23 12:39:43 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPINFORM(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2
Mar 23 12:39:43 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2 admin-Komputer
Mar 23 12:46:33 Gargoyle daemon.info hostapd: wlan0: STA 90:f6:52:fd:1d:c2 WPA: group key handshake completed (RSN)
Mar 23 12:46:33 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: group key handshake completed (RSN)
Mar 23 12:46:33 Gargoyle daemon.info hostapd: wlan0: STA a4:17:31:24:d0:5a WPA: group key handshake completed (RSN)
Mar 23 12:46:33 Gargoyle daemon.info hostapd: wlan0: STA 9c:04:eb:9d:e7:29 WPA: group key handshake completed (RSN)
Mar 23 12:47:42 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPINFORM(br-lan) 192.168.2.110 00:16:ea:51:a7:64
Mar 23 12:47:42 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.110 00:16:ea:51:a7:64 Laptop_domowy
Mar 23 12:48:56 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPINFORM(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2
Mar 23 12:48:56 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2 admin-Komputer
Mar 23 12:51:08 Gargoyle kern.alert kernel: [ 2735.130000] Write-error on swap-device (8:0:400)
Mar 23 12:51:08 Gargoyle kern.alert kernel: [ 2735.230000] Write-error on swap-device (8:0:408)
Mar 23 12:52:39 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e IEEE 802.11: authenticated
Mar 23 12:52:39 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e IEEE 802.11: associated (aid 5)
Mar 23 12:52:39 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e WPA: pairwise key handshake completed (RSN)
Mar 23 12:52:43 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPDISCOVER(br-lan) e4:e0:c5:28:58:1e
Mar 23 12:52:43 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPOFFER(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:52:43 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPREQUEST(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:52:43 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:56:33 Gargoyle daemon.info hostapd: wlan0: STA 90:f6:52:fd:1d:c2 WPA: group key handshake completed (RSN)
Mar 23 12:56:33 Gargoyle daemon.info hostapd: wlan0: STA a4:17:31:24:d0:5a WPA: group key handshake completed (RSN)
Mar 23 12:56:33 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: group key handshake completed (RSN)
Mar 23 12:56:33 Gargoyle daemon.info hostapd: wlan0: STA 9c:04:eb:9d:e7:29 WPA: group key handshake completed (RSN)
Mar 23 12:56:41 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e IEEE 802.11: deauthenticated due to local deauth request
Mar 23 12:56:49 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e IEEE 802.11: authenticated
Mar 23 12:56:49 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e IEEE 802.11: associated (aid 5)
Mar 23 12:56:49 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e WPA: pairwise key handshake completed (RSN)
Mar 23 12:56:49 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPDISCOVER(br-lan) e4:e0:c5:28:58:1e
Mar 23 12:56:49 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPOFFER(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:56:54 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPDISCOVER(br-lan) e4:e0:c5:28:58:1e
Mar 23 12:56:54 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPOFFER(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:56:54 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPREQUEST(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:56:54 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.186 e4:e0:c5:28:58:1e
Mar 23 12:57:52 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 12:57:52 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 12:57:52 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 12:58:34 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 12:58:34 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 12:58:34 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 12:58:34 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPREQUEST(br-lan) 192.168.2.110 00:16:ea:51:a7:64
Mar 23 12:58:34 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.110 00:16:ea:51:a7:64 Laptop_domowy
Mar 23 12:59:12 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPINFORM(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2
Mar 23 12:59:12 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.190 90:f6:52:fd:1d:c2 admin-Komputer
Mar 23 12:59:21 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 12:59:21 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 12:59:21 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:00:26 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:00:26 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:00:26 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:01:19 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:01:19 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:01:19 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:01:19 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPREQUEST(br-lan) 192.168.2.110 00:16:ea:51:a7:64
Mar 23 13:01:19 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.110 00:16:ea:51:a7:64 Laptop_domowy
Mar 23 13:02:32 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:02:32 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:02:32 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:03:14 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:03:14 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:03:14 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:03:14 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPREQUEST(br-lan) 192.168.2.110 00:16:ea:51:a7:64
Mar 23 13:03:14 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.110 00:16:ea:51:a7:64 Laptop_domowy
Mar 23 13:03:48 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:03:48 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:03:48 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:04:37 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:04:37 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:04:37 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:05:11 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:05:11 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:05:12 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:06:03 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:06:03 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:06:03 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:06:19 Gargoyle daemon.notice netifd: wan (785): Sending renew...
Mar 23 13:06:19 Gargoyle daemon.notice netifd: wan (785): Lease of 192.168.1.100 obtained, lease time 7200
Mar 23 13:06:33 Gargoyle daemon.info hostapd: wlan0: STA e4:e0:c5:28:58:1e WPA: group key handshake completed (RSN)
Mar 23 13:06:33 Gargoyle daemon.info hostapd: wlan0: STA 90:f6:52:fd:1d:c2 WPA: group key handshake completed (RSN)
Mar 23 13:06:33 Gargoyle daemon.info hostapd: wlan0: STA a4:17:31:24:d0:5a WPA: group key handshake completed (RSN)
Mar 23 13:06:33 Gargoyle daemon.info hostapd: wlan0: STA 9c:04:eb:9d:e7:29 WPA: group key handshake completed (RSN)
Mar 23 13:07:02 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: authenticated
Mar 23 13:07:02 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 IEEE 802.11: associated (aid 2)
Mar 23 13:07:02 Gargoyle daemon.info hostapd: wlan0: STA 00:16:ea:51:a7:64 WPA: pairwise key handshake completed (RSN)
Mar 23 13:07:02 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPREQUEST(br-lan) 192.168.2.110 00:16:ea:51:a7:64
Mar 23 13:07:02 Gargoyle daemon.info dnsmasq-dhcp[1918]: DHCPACK(br-lan) 192.168.2.110 00:16:ea:51:a7:64 Laptop_domowyPolecenie uci show fstab:
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=1
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].target=/overlay
fstab.@mount[0].fstype=ext4
fstab.@mount[0].options=rw,noatime
fstab.@mount[0].enabled_fsck=0
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].enabled=1
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].enabled=1Prosiłbym o pomoc, co należy poprawić, żeby znowu router widział dysk i startował z extroota.
Rozumiem że odinstalowanie pluginu usb-storage mam wykonać zgodnie z poniżyszym poradnikiem:
http://eko.one.pl/?p=gargoyle-fstab
Mam extroota i chyba block-mount musi zostać.
Czytałem, że jak odinstaluje plugin usb-storage, to czy będzie działać ftp i samba, czy muszę je od nowa jakoś zainstalować.
Sprawdziłem dysk poleceniem:
# umount /dev/sda3
# e2fsck -y /dev/sda3
i dostałem taką odpowiedź:
e2fsck 1.42.4 (12-June-2012)
/dev/sda3: clean, 1854/15196160 files, 11350521/60760622 blocks
więc dysk chyba jest ok.
Jak wyłączę i ponownie włączę ruter to raz na trzy dysk się prawidłowo zamontuje, bo widać go w zakladce nośniki usb.
Poza tym nawet jak dysk zostanie zamontowany to minidlna pokazuje mi zero plików.
Plik /etc/config/fstab:
config global automount
option from_fstab 1
option anon_mount 1
config global autoswap
option from_fstab 1
option anon_swap 0
config mount
option target /overlay
option device /dev/sda98
option fstype ext4
option options rw,noatime
option enabled_fsck 0
option enabled 0
config swap
option device /dev/sda99
option enabled 0Wydaje mi się że powinno być w config mount: option device /dev/sda3 oraz w config swap: option device /dev/sda2, (chociaż swap chyba montuje się i działa) bo pokazuje mi się:
total used free shared buffers
Mem: 29200 28356 844 0 652
-/+ buffers: 27704 1496
Swap: 131068 1932 129136
Udało się skonfigurować sambę - dysk zmapowałem w windowsie i już go widać na laptopie. Zresztą pliki na dysk będę wrzucał po ftp, bo jest dużo szybciej.
Mam jeszcze jedno pytanie, wyłaczyli mi na chwilę prąd i po ponownym włączeniu zasilania, uruchamia się tylko router z własnego roota (bez dysku, bo dysk jest zewnętrzny i ma dodatkowe zasilanie, ktore muszę ręcznie włączyć). Włączam więc dysk, robię reset routera i system ładuje mi się z extroota. Wszystko wydaje się ok, ale nie nie montuje mi się dysk (partycja) z multimediami oznaczona jako sda3 (w zakładce nośniki usb jest pusto). Czy jest możliwość, żeby montowalo przy właczeniu dysku automatycznie dysk sda3, a jak nie to jak mogę zmontować ręcznie dysk sda3.
Czyli w ogóle nie masz zasobów udostępnionych. Dodaj je.
OK dysk już został wykryty, po prostu odłączyłem i podłączyłemn go powtórnie od routera (wcześniej wyłaczyłem router).
Dodałem zasoby (chyba) i mam taki skonfigurowany plik /etc/config/samba:
config samba 'global'
option workgroup 'WORKGROUP'
config sambashare 'share_1'
option name 'share_1'
option path '/tmp/usb_mount/67c62efe-8f16-4f76-93a6-76a7e2f31407'
option create_mask '0777'
option dir_mask '0777'
option browseable 'yes'
option read_only 'no'
option guest_ok 'yes'
Tylko dalej nie wiem jak mam go zobaczyć na laptopie. Powinien pokazywać się w eksploratorze ale tam go nie widzę, tak samo w otoczeniu sieciowym też go nie ma. Pomóżcie, bo już nie bardzo wiem co dalej.
Na szczęście połączyłem się przez FTP i total commanderem przerzucam pliki na dysk. Z sambą coś wyraźnie mi nie idzie.
eko.one.pl → Posty przez robert_szcz
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc