Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Help sharing entire drive directory with Samba + Knoppix 5.0

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    3

    Help sharing entire drive directory with Samba + Knoppix 5.0

    Hey guys,

    Im working on recovering files from a friend's laptop that WinXP crapped out on, and decided to try out a Knoppix CD for the first time . I've connected the laptop to my home network to send files to my SuSE 10.0 machine (my current desktop), so i can save them here and reformat the laptop's NTFS drive. Samba is fully enabled, and I'm currently able to share files between both SuSE 10.0 and Knoppix 5.0.1 machines, but I can only share files or directories that reside within my /home directory on the Knoppix machine.

    Theres about 8.5gb worth of stuff that im attempting to recover, and the task is going extremely slow since i have to copy a directory from the /media/hda1 hdd into the /home directory, and share from there...its extremely slow since it seems that any folder larger than 200mb lags extremely hard when copying over and eventually freezes, crashing the entire laptop.

    Ideally, id really want to just share the entire /media/hda1 directory, so i can just access it all from my SuSE machine and save everything that i want here, rather than having to manipulate the files on the laptop, wait for the directories to be copied into /home, hope nothing freezes, then finally sharing the directory. Is there any possible settings to change to allow me to share directories that don't reside within my /home directory?

    Thanks in advance!!

  2. #2
    Junior Member registered user
    Join Date
    Jun 2007
    Posts
    11
    Just fyi, I am also having the same problem in that sharing a drive that's NTFS via Knoppix (which can be done, I think you just need to engage the LISa server and then you can access the drive... I THINK... I'm a noob and I know when you just turn on SAMBA, it doesn't show up but everytime I configure LISa, it shows up), the transfer of the files off the NTFS drive are 1/2 as fast then off a FAT drive and they lock up and eventually the receiving machine times out / says the machine is not on the network anymore, etc...

    There's a problem here with the NTFS drivers I think as I've already tried this on a linksys NIC card with the same results.

    Also same problem happens in Debian.

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    N42.41 W73 and change
    Posts
    401
    You might want to try using sftp as an alternative.

    Start knoppix as root by typing: knoppix 2, at the root shell

    at the root prompt set a password by typing: passwd

    Start the x server type: startx

    Start the ssh daemon: k->knoppix->services->start ssh server

    mount the drive you want to share, i did it using konqueror.

    On your Suse , open a shell and type: sftp root@ip.address.of.knoppix

    type help, for a list of commands.


    HTH

  4. #4
    Junior Member registered user
    Join Date
    Jun 2007
    Posts
    11
    Thanks Rusty.

    I'm personally trying to be able to share the drive with 40 XP PC's via the network neighborhood - any idea on why nfts mounted drives would time out as they are doing?

  5. #5
    Member registered user
    Join Date
    Aug 2006
    Posts
    35
    Quote Originally Posted by pstone
    Thanks Rusty.

    I'm personally trying to be able to share the drive with 40 XP PC's via the network neighborhood - any idea on why nfts mounted drives would time out as they are doing?
    I haven't tried to fix this, as my networked PCs are inches apart in the same room, but if you're having NTFS timeout probs it's probably bec the default Samba config is setup to mount/unmount the shares periodically. You'll be able to follow this if you start the System Log from the Knoppix->Services menu (I did that from memory, using Windows rite now.) Anyway, you can change that behavior by modifying the SMB.CONF template used by the Samba server script. I simply don't know the precise combination of SMB.CONF options....Jet

  6. #6
    Junior Member registered user
    Join Date
    Jun 2007
    Posts
    11
    Apparently it's not Samba, but no unix in the world will work with NTFS like the way I want. Pushing several 500-700MB files. For small files, NTFS is forgiving under unix but large files = doesn't work at all. Went FAT32

  7. #7
    Member registered user
    Join Date
    Aug 2006
    Posts
    35
    Quote Originally Posted by pstone
    Apparently it's not Samba, but no unix in the world will work with NTFS like the way I want. Pushing several 500-700MB files. For small files, NTFS is forgiving under unix but large files = doesn't work at all. Went FAT32
    Absolutely not true, at least not in my environment. I've been using Knoppix (5.1-CD) to move files of several hundred MBs from one PC to another all year. In fact, I just did an offload of a few GBs just yesterday. I do downloads off the 'Net (ISOs, movies, etc) on two PCs, but only one has a working DVD burner for moment. For reasons that defy reason, going from XP to XP (to the burner PC) really blows, hence my trial of Knoppix. In fact, the 1st few times I used my ad-hoc Knoppix server, I did MD5 digests to make sure I was getting accurate transfers. I'm sold on it now.

    Regarding Samba vs FAT32/NTFS, when I discovered Samba (2.x) several years ago, it didn't work well w/ FAT32 partitions. Big files uploaded during peak server loads == periodic server crashes. Samba 3 is much improved and I haven't seen a single hangup going to/from Knoppix+Samba. Of course, YMMV....Jet

  8. #8
    Junior Member registered user
    Join Date
    Jun 2007
    Posts
    11
    Odd cause I also am using Knoppix 5.1 and it failed on 3 different machines using a NTFS drive. It would slow down/stutter after about 5 seconds of xfer to just one machine... then eventually time out and the WXP machine would claim it could not find the machine on the network anymore.

    Could you maybe post your SAMBA file and if I feel crazy enough on day, I can try it again.

    Ohh... off topic a little, is there any other network monitoring programs like the one that comes with knoppix that shows realtime data of data xfering across the network - hasn't someone made a matrix style looking data monitor yet?

  9. #9
    Member registered user
    Join Date
    Aug 2006
    Posts
    35
    There's little to share but here it is:

    Code:
    ;
    ; /etc/samba/smb.conf
    ;
    ; Sample configuration file for the Samba suite for Debian GNU/Linux
    ;
    ; Please see the manual page for smb.conf for detailed description of
    ;	every parameter.
    ;
    
    [global]
    
    # Do something sensible when Samba crashes: mail the admin a backtrace
       panic action = /usr/share/samba/panic-action %d
       printing = cups
       printcap name = cups
       load printers = yes
       guest account = nobody
       invalid users = root
    
    ; "security = user" is always a good idea. This will require a Unix account
    ;	in this server for every user accessing the server.
       security = user
    
    ; Change this for the workgroup your Samba server will part of
       workgroup = WORKGROUP
    
       server string = %h server (Samba %v)
    
    ; If you want Samba to log though syslog only then set the following
    ;	parameter to 'yes'. Please note that logging through syslog in
    ;	Samba is still experimental.
       syslog only = no
    
    ; We want Samba to log a minimum amount of information to syslog. Everything
    ;	should go to /var/log/{smb,nmb} instead. If you want to log through
    ;	syslog you should set the following parameter to something higher.
       syslog = 0;
    
    ; This socket options really speed up Samba under Linux, according to my
    ;	own tests.
       socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
    
    ; Passwords are encrypted by default. This way the latest Windows 95 and NT
    ;	clients can connect to the Samba server with no problems.
       encrypt passwords = true
    ;   passdb backend = smbpasswd guest
    
    ; It's always a good idea to use a WINS server. If you want this server
    ;	to be the WINS server for your network change the following parameter
    ;	to "yes". Otherwise leave it as "no" and specify your WINS server
    ; 	below (note: only one Samba server can be the WINS server).
    ;	Read BROWSING.txt for more details.
       wins support = no
    
    ; If this server is not the WINS server then specify who is it and uncomment
    ;	next line.
    ;   wins server = 172.16.0.10
    
    # If we receive WINS server info from DHCP, override the options above. 
       include = /etc/samba/dhcp.conf
    
    ; Please read BROWSING.txt and set the next four parameters according
    ;	to your network setup. There is no valid default so they are commented
    ;	out.
    ;   os level = 0
    ;   domain master = no
    ;   local master = no
    ;   preferred master = 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
    
    ; This will prevent nmbd to search for NetBIOS names through DNS.
       dns proxy = no
    
    ; Name mangling options
    
       preserve case = yes
       short preserve case = yes
    
    ; This boolean parameter controlls whether Samba attempts to sync. the Unix
    ;	password with the SMB password when the encrypted SMB password in the
    ;	/etc/samba/smbpasswd file is changed.
       unix password sync = false
    
    ; For Unix password sync. to work on a Debian GNU/Linux system, the following
    ;	parameters must be set (thanks to Augustin Luton
    ;	<aluton@hybrigenics.fr> for sending the correct chat script for
    ;	the passwd program in Debian Potato).
       passwd program = /usr/bin/passwd %u
       passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
    
    ; 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' &
    
    ; The default maximum log file size is 5 MBytes. That's too big so this
    ;	next parameter sets it to 1 MByte. Currently, Samba rotates log
    ;	files (/var/log/{smb,nmb} in Debian) when these files reach 1000 KBytes.
    ;	A better solution would be to have Samba rotate the log file upon
    ;	reception of a signal, but for now on, we have to live with this.
       max log size = 1000
    
       obey pam restrictions = yes
    
    ; Some defaults for winbind (make sure you're not using the ranges
    ;	for something else.)
    ;   winbind uid = 10000-20000
    ;   winbind gid = 10000-20000
    ;   template shell = /bin/bash
    
    ; ISOLATIN1 with euro sign
     unix charset = iso-8859-15
     display charset = iso-8859-15
     dos charset = 850
    
    [homes]
       comment = Home Directories
       browseable = no
    
    ; By default, the home directories are exported read only. Change next
    ;	parameter to "no" if you want to be able to write to them.
       read only = no
    
    ; 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
    
    [print$]
       comment = Printer Drivers
       path = /var/lib/samba/printers
       browseable = yes
       guest ok = no
       read only = no
       write list = knoppix
    
    [printers]
       printer admin = knoppix
       comment = All Printers
       browseable = no
       path = /tmp
       printable = yes
       public = no
       writable = no
       create mode = 0700
    
    ; A sample share for sharing your CD-ROM with others.
    ;[cdrom]
    ;   comment = Samba server's CD-ROM
    ;   writable = no
    ;   locking = no
    ;   path = /cdrom
    ;   public = 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
    
    [cdrom]
    	comment = /media/cdrom
    	browseable = yes
    	path = /media/cdrom
    	writeable = yes
    	preexec = /bin/mount /media/cdrom
    	postexec = /bin/umount /media/cdrom
    [hdd]
    	comment = /media/hdd
    	browseable = yes
    	path = /media/hdd
    	writeable = yes
    	preexec = /bin/mount /media/hdd
    	postexec = /bin/umount /media/hdd
    [hdc]
    	comment = /media/hdc
    	browseable = yes
    	path = /media/hdc
    	writeable = yes
    	preexec = /bin/mount /media/hdc
    	postexec = /bin/umount /media/hdc
    [hda1]
    	comment = /media/hda1
    	browseable = yes
    	path = /media/hda1
    	writeable = yes
    	preexec = /bin/mount /media/hda1
    	postexec = /bin/umount /media/hda1
    [hda2]
    	comment = /media/hda2
    	browseable = yes
    	path = /media/hda2
    	writeable = yes
    	preexec = /bin/mount /media/hda2
    	postexec = /bin/umount /media/hda2
    [hda3]
    	comment = /media/hda3
    	browseable = yes
    	path = /media/hda3
    	writeable = yes
    	preexec = /bin/mount /media/hda3
    	postexec = /bin/umount /media/hda3
    [hda5]
    	comment = /media/hda5
    	browseable = yes
    	path = /media/hda5
    	writeable = yes
    	preexec = /bin/mount /media/hda5
    	postexec = /bin/umount /media/hda5
    [hda6]
    	comment = /media/hda6
    	browseable = yes
    	path = /media/hda6
    	writeable = yes
    	preexec = /bin/mount /media/hda6
    	postexec = /bin/umount /media/hda6
    [hdb1]
    	comment = /media/hdb1
    	browseable = yes
    	path = /media/hdb1
    	writeable = yes
    	preexec = /bin/mount /media/hdb1
    	postexec = /bin/umount /media/hdb1
    [hdb2]
    	comment = /media/hdb2
    	browseable = yes
    	path = /media/hdb2
    	writeable = yes
    	preexec = /bin/mount /media/hdb2
    	postexec = /bin/umount /media/hdb2
    [hdb3]
    	comment = /media/hdb3
    	browseable = yes
    	path = /media/hdb3
    	writeable = yes
    	preexec = /bin/mount /media/hdb3
    	postexec = /bin/umount /media/hdb3
    It sounds like you're having Ethernet probs, bec the default SMB.CONF
    is so simplistic that I can't imagine how its settings would have an effect
    on anything....

  10. #10
    Junior Member registered user
    Join Date
    Jun 2007
    Posts
    11
    I may be having an ethernet issue after all. I just hooked the gigabit network up, SAMBA'ed into a PC and am xfering 15gigs of data at a stead 12mbit a second

    That's just not right... XP to XP it's running a lot faster then that...

    Ugh... I'm thinking it's an ethernet driver issue. It's an on board ethernet gigabit interface and I even dropped a linksys gigabit ethernet adapter in there thinking it would be more standard but same problem exists.... time to do more research... 12mb on a 1000 connection is bad :P

Page 1 of 2 12 LastLast

Similar Threads

  1. Using Live CD to copy entire C drive to a NAS box
    By chrislynch8 in forum Networking
    Replies: 2
    Last Post: 01-13-2010, 06:53 PM
  2. Samba Sharing?
    By Oblivious Sage in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 10-30-2008, 03:07 PM
  3. Windows Samba sharing hard drive
    By andrewwan1980 in forum Networking
    Replies: 4
    Last Post: 09-06-2008, 04:47 AM
  4. Stop Samba from sharing printers
    By dave52355 in forum General Support
    Replies: 0
    Last Post: 11-18-2003, 08:22 PM
  5. v3.3 sharing ntfs drive using samba
    By adamm in forum Networking
    Replies: 2
    Last Post: 09-24-2003, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Super micro Server picture

Super micro Server

$168.00



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE

$259.00



1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture

1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports

$149.00



HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested, picture

HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested,

$99.99



Auction Supermicro Server 3U MicroCloud - 12 Node 5039MS-H12TRF X11SSE-F  3.5Ghz picture

Auction Supermicro Server 3U MicroCloud - 12 Node 5039MS-H12TRF X11SSE-F 3.5Ghz

$2499.00



HP ProLiant MicroServer Gen10 Plus - 16GB RAM No HDD picture

HP ProLiant MicroServer Gen10 Plus - 16GB RAM No HDD

$500.00



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



SuperMicro SuperServer 5018A-FTN4 505-2 Intel Atom @ 2.4GHz 8GB w/ Ears  picture

SuperMicro SuperServer 5018A-FTN4 505-2 Intel Atom @ 2.4GHz 8GB w/ Ears

$174.99



Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture

Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD

$149.99



HPE ProLiant v2 Ultra Micro Tower Server Pentium Gold G6405 16GB RAM P69102005 picture

HPE ProLiant v2 Ultra Micro Tower Server Pentium Gold G6405 16GB RAM P69102005

$696.73