Temat: problem z samba

yyy to znowu ja wink

tym razem po uporaniu się z minidlna mam problem z sambą

robie:
opkg update
opkg install samba36-server i poakzuje że jest zainstalowane
wchodze w nano /etc/config/samba
i mam skonfigurowane:
config samba
        option 'workgroup'              'WORKGROUP'
        #option 'name'                  'OpenWrt'
        #option 'description'           'OpenWrt'
        option charset                   'UTF-8'
        #option 'homes'                 '1'



#config sambashare
#       option 'name'                   'publiczny'
#       option 'path'                   '/mnt/sdb1/publiczny'
#       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'

potem
# chmod 777 /mnt/sdb1
    # chmod 777 /mnt/sdb1/publiczny

potem enable i start i nic

próbowałem z option homes 1 i 0
nic
na pendrive mam folder publiczny z 1 plikiem mp3
pendrive zamontowany w blkid /dev/sdb1
próbowałem ścieżek do pendriva:
/dev/sdb1/publiczny
/tmp/sdb1/publiczny
/mnt/sdb1/publiczny
/tmp/usb_mount/dev/sdb1/publiczny

foramt pendrive to ext2
co robie nie tak?

2

Odp: problem z samba

uci show samba
mount

pokaż.

Jeżeli zasób zakomentowałeś to właściwie co chcesz udostępniać?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: problem z samba

root@Gargoyle:~# uci show samba
samba.@samba[0]=samba
samba.@samba[0].workgroup=WORKGROUP
samba.@samba[0].charset=UTF-8
root@Gargoyle:~#



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/sdb1 on /overlay type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overla)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /tmp/usb_mount/ee737e9d-a7ac-4b37-85d7-664807e21f81 type ext2 (rw,oatime,user_xattr,barrier=1)


tylko dziwne jest to że teraz pendrive jest jako sda1 a było sdb1

4

Odp: problem z samba

Dokładnie to co napisałem. Masz zakomentowany zasób, więc po co to zrobiłeś? Odkomentuj to będziesz miał udopstępnione.

I jeszcze jedno - masz extroota więc nie używaj pluginu usb-storage. Odinstaluj go.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez dumel31 2012-11-17 15:18:02)

Odp: problem z samba

aaaa big_smile
fakt zapomniałem odinstalować usb storage po zrobieniu extroota

ale jak odkomentować zasób?
w configu mam ścieżke /mnt/sda1

6

Odp: problem z samba

Nie masz. Usuń zanki # z linii...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: problem z samba

Ponad to - ty masz  /tmp/usb_mount/ee737e9d-a7ac-4b37-85d7-664807e21f81 więc to masz wpisać a nie /mnt/sda1

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: problem z samba

usunąłem znaki i wpisałem ścieżke /tmp/usb_mount/ee737e9d-a7ac-4b37-85d7-664807e21f8
i nic
dalej w sieci nie ma widocznej samby
jest tylko dlna i mój komputer

9

Odp: problem z samba

Też jak odinstalowałeś usb-storage to zapewnie nie masz już  /tmp/usb_mount/ee737e9d-a7ac-4b37-85d7-664807e21f8 tylko /mnt/sdcoś.

jeszcze raz uci show samba i mount pokaż.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: problem z samba

root@Gargoyle:~# uci show samba
samba.@samba[0]=samba
samba.@samba[0].workgroup=WORKGROUP
samba.@samba[0].name=OpenWrt
samba.@samba[0].description=OpenWrt
samba.@samba[0].charset=UTF-8
samba.@samba[0].homes=0
samba.@sambashare[0]=sambashare
samba.@sambashare[0].name=publiczny
samba.@sambashare[0].path=/tmp/usb_mount/ee737e9d-a7ac-4b37-85d7-664807e21f8
samba.@sambashare[0].read_only=no
samba.@sambashare[0].guest_ok=yes
samba.@sambashare[0].public=yes
samba.@sambashare[0].browseable=yes
samba.@sambashare[0].create_mask=0700
samba.@sambashare[0].dir_mask=0700
samba.@sambashare[0].users_rw=user1
root@Gargoyle:~# 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/sdb1 on /overlay type ext4 (rw,noatime,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)
root@Gargoyle:~#

11

Odp: problem z samba

Poprawka - teraz w ogóle nie masz tego drugiego dysku.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

12 (edytowany przez dumel31 2012-11-17 16:38:48)

Odp: problem z samba

też tak zauważyłem ale w blkid jest widoczny i lampka pendriva się na chwile zaświeci

zrobie format na fat32 i zobacze od nowa

edit:
teraz mam coś takiego:
root@Gargoyle:~# uci show samba
samba.@samba[0]=samba
samba.@samba[0].workgroup=WORKGROUP
samba.@samba[0].name=OpenWrt
samba.@samba[0].description=OpenWrt
samba.@samba[0].charset=UTF-8
samba.@samba[0].homes=0
samba.@sambashare[0]=sambashare
samba.@sambashare[0].name=publiczny
samba.@sambashare[0].path=/mnt/sda1
samba.@sambashare[0].read_only=no
samba.@sambashare[0].guest_ok=yes
samba.@sambashare[0].public=yes
samba.@sambashare[0].browseable=yes
samba.@sambashare[0].create_mask=0700
samba.@sambashare[0].dir_mask=0700
samba.@sambashare[0].users_rw=user1
root@Gargoyle:~# 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/sdb1 on /overlay type ext4 (rw,noatime,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)
root@Gargoyle:~# blkid
/dev/mtdblock2: TYPE="squashfs"
/dev/sdb1: UUID="9a2a6751-3b55-4d08-9ad3-8dc48acd5345" TYPE="ext4"
/dev/sda1: LABEL="DYSK" UUID="821A-7EDC" TYPE="vfat"
root@Gargoyle:~#

i dalej nie działa
i dziwne jest to że w mount nie ma pendrive ale w blkid jest

13

Odp: problem z samba

/etc/init.d/fstab enable

i zobacz czy tam nie masz /dev/sda1 z enabled=0

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14

Odp: problem z samba

dałem /etc/init.d/fstab enable

a w nano /etc/config/fstab jest:

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 options 'rw,noatime'
        option enabled_fsck '0'
        option device '/dev/sda1'
        option fstype 'exfat'
        option enabled '1'

config swap
        option device '/dev/sda99'

15

Odp: problem z samba

Więc jest źle. Przecież overlay zrobiłeś już we flash, wiec po co ponawiasz ta samą konfigurację na extroocie? Tym samym  nie pozwoliłeś na automatycznie montowanie /dev/sda1

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: problem z samba

czyli co teraz?
extroota robiłem wg tego:
http://eko.one.pl/?p=openwrt-externalroot
a tam jest overlay na 1

17

Odp: problem z samba

Sorry, ale czytasz ze zrozumieniem to? To jest konfiguracja którą zrobiłeś we flash. Extroota masz, uruchomił się. Po co zrobiłeś  jeszcze raz sekcję /overlay i ją włączyłeś na extroocie?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18 (edytowany przez dumel31 2012-11-17 16:55:07)

Odp: problem z samba

no tak sorry wink
ale na extroocie nie robiłem /overlay
więc?

edit:
dobra zrobie extroota od nowa i spróbuje jeszcze raz

19

Odp: problem z samba

Nie rób extroota  nie ma takiej potrzeby.

Jak juz uruchomiłeś to wywal całkiem tą sekcję mount po prostu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20

Odp: problem z samba

root@Gargoyle:~# 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/sdb1 on /overlay type ext4 (rw,noatime,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)
/dev/sda1 on /mnt/sda1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@Gargoyle:~#


config samba
        option 'workgroup'              'WORKGROUP'
        option 'name'                   'OpenWrt'
        option 'description'            'OpenWrt'
        option charset                   'UTF-8'
        option 'homes'                  '0'



config sambashare
        option 'name'                   'publiczny'
        option 'path'                   '/mnt/sda1'
        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'



ale dalej w mój komputer w siec nie ma samby
samba zrestartowana i nic

21

Odp: problem z samba

Zrób ps - widzisz proces samby? (smbd)

W przeglądarkę plików wpisz \\192.168.1.1

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: problem z samba

samba jest:
3061 root      3132 S    /usr/sbin/smbd -D
do adresu \\192.168.1.1 jest brak dostępu

nie wiem czy to robi ale adres routera mam 192.168.3.1

po tym adresie też brak dostępu

23

Odp: problem z samba

No to \\192.168.3.1 oczywiście.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

24

Odp: problem z samba

jak pisałem wyżej
brak dostępu

25

Odp: problem z samba

Musisz mieć. Po stronie routera masz uruchomioną sambę, więc musisz ją zobaczyć.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.