Hi!
I have followed the usb and samba howto.
USB-Devices are mounted automatically:
/dev/root on /rom type squashfs (ro)
none on /dev type devfs (rw)
/dev/mtdblock/4 on / type jffs2 (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
none on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/disc0_1 type vfat (rw)
/dev/scsi/host1/bus0/target0/lun0/part1 on /mnt/disc1_1 type vfat (rw)
With ssh I can write on disc0 and disc1!
* installed samba,
* added name of my router to localhosts
* renamed /etc/init.d/samba to /etc/init.d/S50samba
* edited my smb.conf:
[global]
syslog = 0
syslog only = yes
workgroup = WORKGROUP
server string = OpenWrt
security = share
encrypt passwords = no
guest account = nobody
local master = yes
name resolve order = lmhosts hosts bcast
guest ok = yes
guest only = no
read only = no
[tmp]
comment = /tmp
path = /tmp
browseable = yes
public = yes
writeable = yes
read only = no
guest ok = yes
guest only = no
[mnt]
comment = /mnt
path = /mnt
browseable = yes
public = yes
writeable = yes
read only = no
guest ok = yes
guest only = no
[disc0_1]
comment = /mnt/disc0_1
path = /mnt/disc0_1
browseable = yes
public = yes
writeable = yes
read only = no
guest ok = yes
guest only = no
(I know "writeable = yes" and "read only = no" should be the same.
And I know that mnt and disc0_1 are "redundant". Only some more tries.)
Samba is up and running, but maybe something is still wrong.
"ps | grep mbd" delivers:
481 root 912 S nmbd -D
483 root 924 S smbd -D
505 root 1264 S smbd -D
There are two smb-daemons!?
From my PC I can see:
* "tmp" and write to it!
* "mnt" and only read it!
* "disc0_1" and only read it!
But I want to write to disc0_1 and still can't!
There are differences in device, mount, fs and rights for /tmp and /mnt (as you can see above from "mount") and as follows:
drwxr-xr-x 1 root root 0 Jan 1 00:19 mnt
drwxrwxrwt 5 root root 160 Jan 1 00:00 tmp
Why doesn't it work? What did I wrong? Can anybody tell me?
Best regards
Thorsten
