Welcome! Log In Create A New Profile

Advanced

Samba problem

Posted by Vinay 
Vinay
Samba problem
April 03, 2016 04:01AM
I didn't know where to post this (in Debian or in off topic), so I'm posting this here.

I'm having a particular problem with samba installed on my pogo plug v2 after it got updated in debian.
In the old version (don't know the version number), I could copy files off it @ 14MBps constantly to my windows pc. Pasting to the shared pogoplug got me only max 4MBps. The drive attached to the pogo plug is a usb3 drive connected to the usb2 port on the back.

After updating samba, I get around 15-20MBps copy speeds from the plug. But if I try to transfer any large files (> 250MB) I see this abnormal behaviour. The copy speed starts from 6-7MBps and after 30-40% has been copied, it starts falling down to 100Kbps within a few seconds and then stops at 0Kbps and stays there for minutes. After some time, windows gives an error that the connection got lost or something. I open the samba shared folders in windows and I can open it. The shared folders have full read/write access in samba.

I tried troubleshooting on my own. Some of the things I tried were:
I removed any testing source in the sources list and updated apt-get.
I purged samba and reinstalled it. I redid the smb.conf file from start.
I changed the usb port. Was using top most port and then switched to bottom port.

I tried network stack tuning following an article (http://www.cyberciti.biz/faq/linux-tcp-tuning/) but it didnt seem to work. Even with new values in sysctl, if i try commands for send/recieve memory they still show old values even after loading sysctl and restarting the plug.
In the end I just commented out everything i added to the sysctl file and kept it at default.

Is there anything I can do to trouble shoot this?
Re: Samba problem
April 03, 2016 11:57AM
Are you using Samba (performance) configuration from here? https://github.com/davidedg/NAS-mod-config/blob/master/samba/etc/samba/smb.conf

> I tried network stack tuning following an article (http://www.cyberciti.biz/faq/linux-tcp-tuning/)

The instructions there are for Arch. Quite a few of the commands he gives need to be adjusted because Debian keeps the tools in different places. I don't think it does matter though, if it was working before...

> Is there anything I can do to trouble shoot this?

Samba error logs are in this folder:
/var/log/samba

Read them and/or post them after you accumulated a few failed transfers so you can see what goes wrong.

Not saying they will help 100%, but that's a start for troubleshooting.
Re: Samba problem
April 03, 2016 03:09PM
Or Vinay could compare with my simple Samba config to see if any thing out of the ordinary:
http://forum.doozan.com/read.php?8,23223,23293#msg-23293

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Samba problem
April 03, 2016 04:37PM
can you post the error log and run the following command as root

# smbstatus

you should get something like below
# smbstatus

Samba version 3.6.6
PID     Username      Group         Machine                        
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

No locked files

and also post you /etc/samba/smb.conf file?

I havent tuned any of my network parameters and dont experience what you are describing. could be a misconfiguration in the smb.conf. Try bodhi's default file first



Edited 1 time(s). Last edit at 04/03/2016 04:41PM by Gravelrash.
Vinay
Re: Samba problem
April 04, 2016 12:16AM
@Bodhi, my samba config is almost same as the one you have put. I didn't do any changes to the samba config, only added the shared folders and commented out the printer share section.

@Gravelrash, my smb status is exactly the same as you gave.
root@debian:~# smbstatus

Samba version 3.6.6
PID     Username      Group         Machine                        
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

No locked files

My samba config
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 
# A well-established practice is to name the original file
# "smb.conf.master" and create the "real" config file with
# testparm -s smb.conf.master >smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
# However, use this with caution if your smb.conf file contains nested
# "include" statements. See Debian bug #483187 for a case
# where using a master file is not a good idea.
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
#   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
#   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
   read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

;[printers]
;   comment = All Printers
;   browseable = no
;   path = /var/spool/samba
;   printable = yes
;   guest ok = no
;   read only = yes
;   create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
;[print$]
;   comment = Printer Drivers
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

[AnimeD]
path = /media/external/Downloads
available = yes
read only = no
browseable = yes
public = yes
writable = yes

[AnimeI]
path = /media/external/Incomplete
available = yes
read only = no
browseable = yes
public = yes
writable = yes

I tried from both windows and Linux OS. I get the same error while copying files to the shared folder.
error screenshot
Vinay
Re: Samba problem
April 04, 2016 12:21AM
I forgot to mention this. All the log files except smbd & nmbd are empty. Nothing in the log files. I must have copied different files 5-6 times by now to the AnimeD folder & each time I got this same error when copying from Windows 10 or Linux Mint.

this is my sysctl.conf file. I wonder if it will help.
#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additonal system variables
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
# Default swappiness value is 60
vm.swappiness = 50
#
# Set maximum number of packets, queued on the INPUT side, 
# when the interface receives packets faster than kernel can process them.
# net.core.netdev_max_backlog = 5000
#
# Set the max OS send buffer size (wmem) and receive buffer size (rmem)
# to 8 MB for queues on all protocols.
# The default value of rmem_max and wmem_max is about 128 KB
#
# net.core.wmem_max=8388608
# net.core.rmem_max=8388608
#
# set minimum size, initial size, and maximum size in bytes
#
# net.ipv4.tcp_rmem= 10240 87380 8388608
# net.ipv4.tcp_wmem= 10240 87380 8388608
#
# Turn on window scaling which can be an option to enlarge the transfer window
#
# net.ipv4.tcp_window_scaling = 1
#
#  If set, TCP will not cache metrics on closing connections
# 0 = not set; 1 = set 
# net.ipv4.tcp_no_metrics_save = 1
#
Re: Samba problem
April 04, 2016 12:37AM
@Vinay,

Looks like you dont have the optimization:

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:

        socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072
        use sendfile = yes
        write cache size = 2097152

Add the above to your smb.conf.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Samba problem
April 04, 2016 02:41AM
also make sure the filename doesnt contain "special characters". like { [ |
Re: Samba problem
April 04, 2016 05:41AM
+1 for the optimization suggested by bodhi, it is the same as what I suggested above.

Also, further googleing found that TCP_NODELAY option seems to be the culprit here http://serverfault.com/questions/443557/ubuntu-12-04-samba-file-server-timeout-on-large-file
Re: Samba problem
April 04, 2016 01:17PM
@Vinay

backup you existing smb.conf file and replace it with this one.

#======================= Global Settings =======================
[global]
   workgroup = WORKGROUP
   server string = %h server
   dns proxy = no
#### Networking ####
#### Debugging/Accounting ####
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
####### Authentication #######
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
########## Domains ###########
########## Printing ##########
############ Misc ############
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072
   use sendfile = yes
   write cache size = 2097152
   usershare allow guests = yes
#======================= Share Definitions =======================
[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0755
   directory mask = 0755
   valid users = %S

[AnimeD]
path = /media/external/Downloads
available = yes
read only = no
browseable = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777

[AnimeI]
path = /media/external/Incomplete
available = yes
read only = no
browseable = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777

reboot your box or issue the following - this assumes your samba service is called "samba" (amend to suit)

check the name of the service:
service --status-all

restart the service

service samba restart

Try again and let us know how you get on
Vinay
Re: Samba problem
April 05, 2016 03:04AM
Did as requested. Same error. Times out after copying around 25-30 MB of a file. As usual there's nothing in the log file.
Re: Samba problem
April 05, 2016 07:43AM
@vinay

Then there appears to be nothing wrong with the config on your server, i think we need to look in other directions.
Vinay
Re: Samba problem
April 05, 2016 08:14AM
I botched the system. I updated samba and transmisison (damn thing does not work in stable release) to sid packages and the plug wont start after reboot. the light is still on amber after 15 mins. Can I jump from 3.16.0-kirkwood-tld-2 to Linux Kernel 4.5 Kirkwood package? I think my uboot version is some old version.
Vinay
Re: Samba problem
April 05, 2016 09:55AM
I rebooted the plug ~2 times after removing the external hdd and it booted up. Now i get errors for perl15 or something. Looks like the old perl package broke.
Re: Samba problem
April 05, 2016 12:08PM
@vinay

start from a clean install of 3.16 add samba and supporting packages

apt-get update; apt-get upgrade; apt-get install samba --install-recommends -f -y


enable samba to auto start at boor

add the config i gave then let us know the outcome


seems to me like your installs are completely borked



Edited 1 time(s). Last edit at 04/05/2016 12:08PM by Gravelrash.
Re: Samba problem
April 05, 2016 01:31PM
>
> seems to me like your installs are completely
> borked


Yes.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Samba problem
April 05, 2016 09:46PM
Vinay is your Transmission "incoming" folder the same as the Samba? That's the way mine is, and as long as Transmission is paused, the apps aren't fighting for ownership. I think. I was getting the same types of problems awhile back. Also because my DSL is so slow I don't want to admit how slow, some torrents can take a day or two to come in, so a pause and a fresh reboot doesn't hurt.

I don't know if you mentioned it, but what are you using for USB stick? ALL of my USB 2.0 sticks did that to a degree but USB 3.0 sticks helped a lot. That's all I got, hope it works for you.

=========
-= Cloud 9 =-
Vinay
Re: Samba problem
April 05, 2016 10:53PM
@Gravelrash & @Bodhi, can't I install a newer version of debian? half the problems i face are because of outdated libs and other files in wheezy. If things were working properly in 3.16, i wouldn't be Frankensteining my system like this. The system works now but i don't like it. I don't feel like going back to wheezy.

@JoeyPogoPlugE02, I have the transmission incoming folder on a usb 3 portable hdd (not usb stick). I usually don't copy anything to this unless necessary. I only copy from the outgoing folder. The folder permissions are set to everyone in both shared folders, so i don't think there is any conflict while copying to any folder. I didn't reboot the plug from months when it was running fine. This thing is like a mini server.
Re: Samba problem
April 05, 2016 11:37PM
Sorry for mentioning USB stick; I should have read this better. I suspect the RAM gets used up then and it's swap use that causes the slowdown.

Could you be persuaded to set swappiness to 2 or 3? That's what my E02 is set at and I'll never change it.

-update- I'm too late but maybe it's a better idea to just start fresh. Best of luck and skill to you :-)

=========
-= Cloud 9 =-



Edited 1 time(s). Last edit at 04/06/2016 12:12AM by JoeyPogoPlugE02.
Re: Samba problem
April 06, 2016 12:01AM
Vinay,

>Can't I install a newer
> version of debian?

Of course you can:
http://forum.doozan.com/read.php?2,12096

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Vinay
Re: Samba problem
April 06, 2016 02:58AM
@Bodhi,
I've downloaded these: linux-4.5.0-kirkwood-tld-1-bodhi.tar.bz2 & uboot.2015.10-tld-1.pogo_e02.bodhi.bz2

Or - Should I install the Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 instead of the linux-4.5.0-kirkwood-tld-1-bodhi.tar.bz2 file?

Is updating uboot recommended? (I don't have those serial consoles or jtag wires etc to troubleshoot if anything goes bad)
I remember setting up netconsole on the plug with my Mint OS, but I think with dhcp I forgot what address my Mint os was bound to.

In the link you gave, you've mentioned a method in which to Boot with DTB file embedded in the kernel image (no U-Boot envs change needed)
Is this better or just an alternate method for old uboot systems like mine (if i don't want to mess with the nand).
Re: Samba problem
April 06, 2016 03:58AM
Vinay,

Quote

Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2

It's always good to start with a fresh rootfs. If your u-boot is old (2012 or earlier, installed from this site) then you must use embedded DTB inside uImage. See the kernel/rootfs instruction for that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Vinay
Re: Samba problem
April 07, 2016 07:49AM
Hi Bodhi,
I'm getting an error on this step - Generate the uImage with DTB embedded inside:
I'm in the boot dir as root.
when I do cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt I get this error: cannot stat 'zImage-4.4.0-kirkwood-tld-1: No such file or directory. I can I did a ls and in root terminal, that file is not visible along with DTS folder. But I can see that file in folder view though.

[img]http://s17.postimg.org/li0bv630b/copyerror.jpg[/img]

Where did i go wrong?
Vinay
Re: Samba problem
April 07, 2016 08:00AM
Okay, I got it. I should have typed su instead of sudo -i
su lets me see every file and directory in the usb drive.
will start from scratch again from formatting the drive.
Vinay
Re: Samba problem
April 07, 2016 10:13AM
In fw_printenv, I'm getting this
usb_rootfstype=ext2
how do i set it to ext3?
fw_setenv usb_rootfstype=ext3
Re: Samba problem
April 07, 2016 01:06PM
fw_setenv usb_rootfstype ext3

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: