2009-05-04 09:07:43 SAMBA USB write
Hari Prasad (INDIA)
Message: 73561
Hi All,
We are facing issue when tried to write contents into USB connected to BF527
from windows PC shared via SAMBA.
We used the following command to mount the USB
root>mount -t vfat /dev/sda1 /mnt/usb
we created following folder hierarchy
/var/lib/locks
Following files were put in folder /etc/config/
smb.conf
inetd.conf
Following files were put in folder /etc/
inetd.conf
services
Path "/mnt/usb/music/" was shared as samba path - we were able to browse through the contents
from a windows PC using the device IP(smbshare), but when tried to write some thing we get error.
Content of file smb.conf
***********************
[global]
workgroup = BFIN-WORKGROUP
server string = blackfin
security = share
dns proxy = no
[smbshare]
path = /mnt/usb/music/
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
Content of file services
***********************
ftp 21/tcp
ftp 21/udp
ssh 22/tcp
ssh 22/udp
telnet 23/tcp
telnet 23/udp
nameserver 42/tcp name
nameserver 42/udp name
tftp 69/tcp
tftp 69/udp
finger 79/tcp
finger 79/udp
http 80/tcp www www-http
http 80/udp www www-http
kerberos 88/tcp kerberos5 krb5
kerberos 88/udp kerberos5 krb5
hostname 101/tcp hostnames
hostname 101/udp hostnames
netbios-ssn 139/tcp
shell 514/tcp cmd
shell 514/udp cmd
Content of file inetd.conf
***********************
telnet stream tcp nowait root /bin/telnetd
netbios-ssn stream tcp nowait root /sbin/smbd
Note:
1. Instead of USB if any romfs folder is shared over the network
then we were able to read as well as write.
2. We changed the permission of folder shared (chmod 777 folder name) -
but this wasn't allowed by embedded linux when tried to do the same to
USB mounted folders.
Help us in solving this USB samba write issue.
Regards
Hari
QuoteReplyEditDelete
2009-05-04 09:54:12 Re: SAMBA USB write
Robin Getz (UNITED STATES)
Message: 73564
Hari:
What error does it give you when you do a "chmod 777 /mnt/usb"?
-Robin
QuoteReplyEditDelete
2009-05-04 10:42:32 Re: SAMBA USB write
Hari Prasad (INDIA)
Message: 73570
We didn't get any error. The command returned but the properties where not changed.
QuoteReplyEditDelete
2009-05-04 11:57:10 Re: SAMBA USB write
Robin Getz (UNITED STATES)
Message: 73575
Hari
What is the output of "mount"
?
QuoteReplyEditDelete
2009-05-04 15:43:26 Re: SAMBA USB write
Mike Frysinger (UNITED STATES)
Message: 73590
focus on getting samba working *before* trying to mess around with USB
so change the path to just /mnt/ and do not mount the USB drive
QuoteReplyEditDelete
2009-05-05 01:43:19 Re: SAMBA USB write
Hari Prasad (INDIA)
Message: 73607
Dear Mike,
Samba as stand alone is working fine when shared any romfs folder. We have problem only with USB and especially when writing into it alone. Changing file properties using chmod 777 for USB file or folder is not working.
@Robin,
We didn't get any special error/message after mount command
root:/> mount -t vfat /dev/sda1 /mnt/usb
root:/> cd mnt/usb/
QuoteReplyEditDelete
2009-05-05 01:52:32 Re: SAMBA USB write
Abhin Xavier (INDIA)
Message: 73609
i was workiin with hari...
mike - we didn't mess around with the usb *before* getting samba to work properly ...
samba works fine and we are able to - browse , transfer , modify etc - contents shared on the board and also change the file permissions...
the problem arises only when usb is shared through samba...
is it becos of the permissions set durin mount...
we are also able to transfer files from the board to the usb
eg- cp 1.txt /mnt/usb works fine...but even in this case we cannot change the permissions of the file after transfer
chmod 777 /mnt/usb/1.txt doesnt work....thers no error...but the permissions do not change...
QuoteReplyEditDelete
2009-05-05 02:30:52 Re: SAMBA USB write
Mike Frysinger (UNITED STATES)
Message: 73612
you're using a FAT filesystem. there is no such thing as file permissions, so it makes no sense to try and change them. either use a real filesystem (like EXT3) or dont try and muck with permissions/owners.
QuoteReplyEditDelete
2009-05-05 10:34:13 Re: SAMBA USB write
Robin Getz (UNITED STATES)
Message: 73667
Hari:
> We didn't get any special error/message after mount command
> root:/> mount -t vfat /dev/sda1 /mnt/usb
I didn't say "mount -t vfat /dev/sda1 /mnt/usb" - I said "mount". What is the output of "mount"?
-Robin
QuoteReplyEditDelete
2009-05-08 00:37:33 Re: SAMBA USB write
Hari Prasad (INDIA)
Message: 73847
Please find the output of mount comand
root:/> mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
mdev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec,mode=600)
var on /var type ramfs (rw)
tmp on /tmp type tmpfs (rw,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
QuoteReplyEditDelete
2009-05-08 12:15:07 Re: SAMBA USB write
Robin Getz (UNITED STATES)
Message: 73893
Hari:
What is the output , after you have mounted /dev/sda1? (sorry I should have indicated I was interested in after).
-Robin