Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have tentatively posted this here; if it should be in "networking" let me know.
I have a dual boot machine with Ubuntu Hardy 8.04.1 and XP. Each OS is on its own IDE drive, XP on the primary. This machine runs Linux most of the time, and is a file server. There are also two SATA drives for storage on the machine. I installed XP first, followed by Ubuntu, and fdisk reported this:
Code:
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7bd87bd8
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1530 12289693+ 7 HPFS/NTFS
/dev/sda2 1531 4865 26788387+ 7 HPFS/NTFS
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d6639b6
Device Boot Start End Blocks Id System
/dev/sdb1 1 4660 37431418+ 83 Linux
/dev/sdb2 4661 4865 1646662+ 5 Extended
/dev/sdb5 4661 4865 1646631 82 Linux swap / Solaris
Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x130f286b
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 19457 156288321 c W95 FAT32 (LBA)
Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa7a3e006
Device Boot Start End Blocks Id System
/dev/sdd1 1 30401 244196001 b W95 FAT32
As you can see XP is on sda1, Linux on sdb1, and sdc1/sdd1 are the SATA drives.
So far, no problem, although I did wonder at the time why the OS's werent on hda/hdb. I thought that would be correct for IDE drives. Anyway, I wanted to set up SAMBA to share some of the directories on the SATA drives with another[XP]machine. I had all kinds of problems - the drives would show up, then not show up after a reboot/startup; EXTREMELY SLOW copy speeds both to and from the Linux box, (for example the machine wanted 70 minutes to copy a 23MB file to the XP machine); and various other problems with the setup. I do have some practice with SAMBA in 7.10 but 8.04 has changed all that.
I researched and read inumerable posts over a three day period and decided to start over and set up SAMBA again. Basically, I installed SAMBA and SMBFS, set the mount points for the two drives in fstab, and slowly worked through smb.conf.
Every time I marked a share, the drive would not automount. I couldn't understand this but kept looking for the problem. After some time I realized that the mount points were shifting[?]/changing[?] on their own-like this:
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x130f286b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 c W95 FAT32 (LBA)
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa7a3e006
Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 b W95 FAT32
Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7bd87bd8
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1530 12289693+ 7 HPFS/NTFS
/dev/sdc2 1531 4865 26788387+ 7 HPFS/NTFS
Disk /dev/sdd: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d6639b6
Device Boot Start End Blocks Id System
/dev/sdd1 1 4660 37431418+ 83 Linux
/dev/sdd2 4661 4865 1646662+ 5 Extended
/dev/sdd5 4661 4865 1646631 82 Linux swap / Solaris
As you can see the output of fdisk is completely different here. This was giving me fits. I would get the shares set, the XP box would see them, and could copy them (VERY SLOWLY), but the next time I booted the machine the mount points would disappear and so would the shares - along with the drives not mounting.
I'm not sure what I'm doing wrong. All I want to do is be able to automount the 2 SATA drives and share some of the directories with the XP machine. I reckon that something I did wrong was also the cause of the slow file operations. If I can get SAMBA set up properly, I can check that next.
[global]
; General server settings
netbios name = OPTERON-185
server string = %h server (Samba, Ubuntu 8.04.1)
workgroup = RBZGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = lmhosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
; path = /var/lib/samba/printers
; browseable = yes
; guest ok = yes
; read only = yes
; write list = root
; create mask = 0664
; directory mask = 0775
#[printers]
; path = /tmp
; printable = yes
; guest ok = yes
; browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
;[MyFiles]
; path = /media/samba/
; browseable = yes
; read only = no
; guest ok = no
; create mask = 0644
; directory mask = 0755
; force user = YOUR_USERNAME
; force group = YOUR_USERGROUP
;My stuff would go here, it isn't there now but will be after I sort this out:
; path = /media/path/to/share
; browseable = yes
; read only = no
; guest ok = yes
if I understand correctly, you have in fact two problems:
One related to samba causing your accesses to be very slow,
and a second one causing your drives not to get predictable device files.
I would work on second one first and gain performance afterwards.
If I understand correctly furthermore, your system does not generate predictable device files on booting time. (E.g. system disk is /dev/sdb one time and /dev/sdd next time).
You have no trouble with your system disk since it is mounted using its UUID. Your fstab shows:
The devices storing your shares are mounted by device files:
Code:
/dev/sdc1 * 1 19457 156288321 c W95 FAT32 (LBA)
/dev/sdd1 1 30401 244196001 b W95 FAT32
If these files (/dev/sdd1 and /dev/sdc1) do not exist, there is nothing to mount.
So how to get out of this...
You can use UUIDs for these devices, too. This way it does not matter what device files your system generates for these devices. UUIDs are unique for any filesystem and do not change - this is what you need.
To determine your devices UUIDs, you can either use a command line tool - but I sadly did forget its name. Another way to determine them is to look at /dev/disk/by-uuis. You find a symbolic link for each device. The link has the UUID as name and points towards the coresponding device. E.g:
according to your smb.conf, there is not one share your XP drives could see...
All share definitions (starting with [SHARENAME]) are commented out...
To check your smb.conf, you can type
Code:
testparm
. This program checks your smb.conf for sanity and prints out all share definitions.
Do you get any?
You mentioned that copy data from your linux box to another xp box took very long time. I assume, that you mounted a share from your xp machine into your linux filesystem. If so, the copy operation does not involve your samba server. In this case, the server is your xp machine.
Please post how you did mount your xp share.
You should propably clarify yourself, that the samba server does not mount anything anywhere.
Your system mounts any local or remote filesystems into its root filesystem to access them. The samba server uses any local mounted directory to present it other machines as mountable filesystem.
--
The samba server can use any directory - and this includes everything your system mounted from anywhere - and export it to remote machines.
Remote machines can use these exported directories to mount them locally, then.
--
The remote (client) machine uses a filesystem as smbfs to mount any shared samba directory.
The local machint (server) does use the samba server to export any directories.
I realize, that I did write the same thing three times and stop for not becoming too boring... ;-)
Ok, thanks for answering. I'll see if I can clear up your questions and maybe you will have some advice.
Quote:
Originally Posted by Clemente
if I understand correctly, you have in fact two problems:
One related to samba causing your accesses to be very slow,
and a second one causing your drives not to get predictable device files.
Yes, that's correct.
Quote:
Originally Posted by Clemente
I would work on second one first and gain performance afterwards.
My feelings as well.
Quote:
Originally Posted by Clemente
The devices storing your shares are mounted by device files:
Code:
/dev/sdc1 * 1 19457 156288321 c W95 FAT32 (LBA)
/dev/sdd1 1 30401 244196001 b W95 FAT32
If these files (/dev/sdd1 and /dev/sdc1) do not exist, there is nothing to mount.
I understand. I just don't understand why it only happens when I mark a share.
Quote:
Originally Posted by Clemente
Another way to determine them is to look at /dev/disk/by-uuis. You find a symbolic link for each device. The link has the UUID as name and points towards the coresponding device. E.g:
I have that directory, but I can't see anything in it..."ll" isn't a command I know. Here's the contents of the directory:
Code:
thunderrd@OPTERON-185:/dev/disk/by-uuid$ ls
4889-5BE5 78209B95209B58C8 e4e7a3e8-1a47-434d-89b9-27791d79be88 ll
6b80dd2e-1943-4a6b-a432-452160ac8c12 C874268774267878 E8C8-82D7
If you can tell me how to look at what you want, I'll do it ASAP. Now, my question. When I know the uuid for say, sdd1, do I simply edit fstab and replace the /dev/sdd1 identification with the uuid?
EDIT: Duh. Figured it out, and here's the output. Now what do I do?
So sda1 and sda2 are the NTFS partitions for windows on the master IDE.
sdb1 and sdb5 are Linux partitions on the slave.
sdc1 is SATA 160GB - there will be shares on this one
sdd1 is SATA 250GB - there will be shares on this one
Quote:
Originally Posted by Clemente
according to your smb.conf, there is not one share your XP drives could see...
All share definitions (starting with [SHARENAME]) are commented out...
Yes, that is correct. I removed the lines from the file after I discovered that the mount points were shifting every time I marked a share. So yes, I know that at this time there are no shares marked.
Quote:
Originally Posted by Clemente
You mentioned that copy data from your linux box to another xp box took very long time. I assume, that you mounted a share from your xp machine into your linux filesystem. If so, the copy operation does not involve your samba server. In this case, the server is your xp machine.
Well, the shared directory is on the Linux box[server?]. I wanted to copy files to the XP machine[client?]. At the time I did this, I could see the shared Linux directory in XP's filemanager. However, it copied so slowly that it was useless.
There is nothing on the XP machine that I want to share on the Linux machine[for now, at least].
I hope that this will help you to understand my problem, and thank you for spending your time with me.
It looks ok, and the drives automount, but we have to change the permissions somehow so that mount and unmount are not restricted to root. Right now I can't unmount them unless I'm a superuser. How can I change this?
I'll try to edit smb.conf now, to set up the shares.
I took a plunge and edited smb.conf to see if the shares would be seen on the XP machine:
Code:
[global]
; General server settings
netbios name = OPTERON-185
server string = %h server (Samba, Ubuntu 8.04.1)
workgroup = RBZGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
; path = /var/lib/samba/printers
; browseable = yes
; guest ok = yes
; read only = yes
; write list = root
; create mask = 0664
; directory mask = 0775
#[printers]
; path = /tmp
; printable = yes
; guest ok = yes
; browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
;[MyFiles]
; path = /media/samba/
; browseable = yes
; read only = no
; guest ok = no
; create mask = 0644
; directory mask = 0755
; force user = YOUR_USERNAME
; force group = YOUR_USERGROUP
[file_archive]
path = /media/FAT32_ARCH/file_archive
available = yes
browsable = yes
public = yes
writable = yes
[REPO_TEST_SHARE]
path = /media/FAT32_REPO/REPO_TEST_SHARE
available = yes
browsable = yes
public = yes
writable = yes
...and they are. So that is good. I tried to copy some files. They copied at full speed, both to and from the Linux box, so I thought that my problems were nearly over. I wanted to check though, so I re-booted the Linux box. When it came up, the shares could still be seen on the XP box, so everything looked good.
But...file copying is back to super slow speeds again. I can't think of why this could be happening. All I did was reboot the machine.
At this point I have 3 problems: 1- the SATA drives mount automatically as I wish, but can't be unmounted except for superuser. 2- I can't write to the shares, except as superuser, so I can't write to them from the XP box[related to #1]. And 3- Slow copy speeds again, in both directions.
Thanks again!
PS the command you were thinking of before is blkid:
Notice that the "user" statement changed to "users".
This way, non-privilieged users can umount the device with following commands:
Code:
umount /media/FAT32_REPO
umount /media/FAT32_REPO
And they can remount the same way - do only replace umount by mount.
Quote:
2- I can't write to the shares, except as superuser, so I can't write to them from the XP box[related to #1].
Do you mean, that only root can locally write on the mounted devices (that should be shared via sambe)? Means: Root is sitting in front of the linux box.
Or do you mean, that you only can write into the sambe share, if you access the share as root or administrator or similar? Means: Root is sitting in front of the XP machine.
Hopefully that you mean first - this one is propably easier to solve, hehe - you can check
Code:
man mount
for any mount options you can use with any filesystem.
Using vfat, you can apply following options to specify access rights of your mounted device:
This fstab entry causes your device to be mounted with owner set to the user with id 1000, group set to "staff" (usually id 50) and access rights set to:
owner: read, write, execute
group: read, write, execute
others: no access
The umask option does determine what rights are NOT to be granted.
Keep in mind, that vfat does not know any real access rights. They are all "virtual". Even if any file appears to be unaccessable by any user, on next remount things can look completely different.
You can list all user and group ids known to the system using following commands:
Code:
getent passwd
getent group
If you do not manage to set access rights to something useful, please post the output of
Code:
ls -l /to/your/mountpoint # with device mounted
and the content of your fstab.
Quote:
And 3- Slow copy speeds again, in both directions.
Let's do 1 and 2 first.
A last thing: Do you plan to share removable devices with samba? If yes, you should make sure, that you do not produce funny situations. E.g. one user does a large write job using network while another user unmounts the filesystem. I am not sure about what samba feels about getting it's shares unmounted.
If all is set up, you propably should do some testing...
Well, thanks to you I *think* that I have it under control now. I played with the permissions and was able to accomplish what I wanted - to mount and umount teh devices and access them from the remote machine(s). Since it's only my home office network and I really the only user it makes it fairly easy; I don't have to be too concerned with security at this level.
And the good news is that after I got the proper permissions set the copy speeds were back to normal, and after rebooting it stayed that way.
I remember going through all of this before when I installed Gutsy but the upgrade to Hardy and the newer kernel broke all of that work. I'm not alone. Many users have been experiencing the same kinds of Samba problems after upgrading. I didn't document for myself what I had done to get it right the last time but you can be sure that I won't make that mistake again.
In any case I think that Samba is like a bunch of rubber bands and duct tape that everyone uses to fix stuff. It isn't really that great a fix for windows networking, and it's not terribly intuitive in setup. I hope that ultimately a better way will come along.
Many thanks again for the tips and the help. I'll ask again if I need something more, but I have a feeling that it's ok now.
Today the file copy speed is gone again. It had been ok since my last post, and I have changed nothing. I am totally confused as to why this would happen. I'll post the relevant files here; if anyone needs something more just let me know what will help the troubleshooting process.
Code:
thunderrd@OPTERON-185:~$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x130f286b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 c W95 FAT32 (LBA)
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa7a3e006
Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 b W95 FAT32
Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7bd87bd8
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1530 12289693+ 7 HPFS/NTFS
/dev/sdc2 1531 4865 26788387+ 7 HPFS/NTFS
Disk /dev/sdd: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d6639b6
Device Boot Start End Blocks Id System
/dev/sdd1 1 4660 37431418+ 83 Linux
/dev/sdd2 4661 4865 1646662+ 5 Extended
/dev/sdd5 4661 4865 1646631 82 Linux swap / Solaris
[global]
; General server settings
netbios name = OPTERON-185
server string = %h server (Samba, Ubuntu 8.04.1)
workgroup = RBZGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = yes
printing = CUPS
printcap name = CUPS
syslog = 1
syslog only = yes
; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/
; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no
; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no
; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
; path = /var/lib/samba/printers
; browseable = yes
; guest ok = yes
; read only = yes
; write list = root
; create mask = 0664
; directory mask = 0775
#[printers]
; path = /tmp
; printable = yes
; guest ok = yes
; browseable = no
; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes
;[MyFiles]
; path = /media/samba/
; browseable = yes
; read only = no
; guest ok = no
; create mask = 0644
; directory mask = 0755
; force user = YOUR_USERNAME
; force group = YOUR_USERGROUP
[file_archive]
path = /media/FAT32_ARCH/file_archive
available = yes
browsable = yes
public = yes
writable = yes
[REPO_TEST_SHARE]
path = /media/FAT32_REPO/REPO_TEST_SHARE
available = yes
browsable = yes
public = yes
writable = yes
Code:
thunderrd@OPTERON-185:~$ ls -l /media/FAT32_ARCH
total 16
drwxrwxrwx 13 thunderrd thunderrd 16384 2008-07-30 18:08 file_archive
Again, I'm not concerned with user security since I'm the only user; any way that will get me normal speeds of file operations is OK for me. I need to be able to copy both to and from the shares from the XP box. Now, I'm back to 45 minutes for a 100Mb file;( It's far faster to use a thumb drive.
Hi again.
Bad news. So we have to look for the reason of this slow transfer rate - I hope we wil find it, and we will find it fast...
I would take a look on your ethernet connection first.
1)
Do you use a realtek gigabit network adapter (RTL8169 IIRC)?
2)
On your ubuntu machine, please install iftop, dstat and htop:
Code:
sudo apt-get install iftop dstat htop
These are small monitoring tools that propably become handy later.
3)
Do you know netio? This is a little tool to check network transfer rates at somewhat low level. You can get it here: netio
Usage is quite simple: Start the tool in server mode on one machine
Code:
netio -s -t
and run it as cient on the other machine:
Code:
netio -t $(SERVER_IP)
You have to run it within command line environment on the windows machine. To get an overview of all options, run netio without any parameters.
If possible, run netio while having trouble with samba speed and another time while having no trouble.
Please post the output.
4)
Pease do following: While transferring some files at very slow speed using samba,
a) run iftop on ubuntu command line as root. You will see nice statistics about current network traffic. Find the meter, that represents the data stream that copies your file.
b) In another terminal, do ping the XP client. Does the connection gain speed significantly while executing the ping?
5)
While running a very slow transfer, please start htop on ubuntu. You will see some CPU and memory usage snapshots (much more nice than odd top). Is the CPU kind of busy (between 90% and 100%)? If yes, what are main COU cycle consumers? (Should mean - what processes give heavy load...).
That's all for now. Perhaps we find some hints so far.
1 - I have all the tools you asked for but I'm not sure how to compile netio...when I figure it out I'll let you know.
2 - After a reboot, the file copy speeds have returned. I don't know why it's doing this. We made fdsik look at the UUID for these drives; is it possible that something is still "shifting" at the reboot? Most likely, the next reboot hoses the speeds again.
I already wrote by pm - just for the archives: The netio zip file linked above contains a folder "bin". Within this folder are binaries for linux and Windows - if applicable, no compiling is necessary.
Without knowing too much about your systems, I don't think that there is any problem with Samba. In fact, my problems with samba file sharings did always concern any problems outside of sambe. I once had serious performance trouble - and this is what I thought about when I asked you for your network adapter - while transfering big or a lot of files (more than 15 files, more than 20 MB). This resolved to a major driver problem with F*$&!(§ Realtek 1000MB cards I never get fixed... I replaced that card. ;-)
4) Please do following: While transferring some files at very slow speed using samba,
a) run iftop on ubuntu command line as root. You will see nice statistics about current network traffic. Find the meter, that represents the data stream that copies your file.
b) In another terminal, do ping the XP client. Does the connection gain speed significantly while executing the ping?
The result of the test was: file copy speed increased from 391Kb to 586Kb. Doesn't seem too significant to me. Both speeds are terribly slow.
Quote:
Originally Posted by Clemente
5)
While running a very slow transfer, please start htop on ubuntu. You will see some CPU and memory usage snapshots (much more nice than odd top). Is the CPU kind of busy (between 90% and 100%)? If yes, what are main COU cycle consumers? (Should mean - what processes give heavy load...).
Nothing is using cpu cycles. The highest usage was X, using 9%. Total around 12-13%.
I hope this can tell you something, but I don't know.
I'm going to reboot, re-mount, and see if the speeds will come back as before.
======>EDIT:<======
Fdisk is still reporting the mount points of attached drives differently at times. When fdisk looks like this, everything is OK:
Code:
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7bd87bd8
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1530 12289693+ 7 HPFS/NTFS
/dev/sda2 1531 4865 26788387+ 7 HPFS/NTFS
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d6639b6
Device Boot Start End Blocks Id System
/dev/sdb1 1 4660 37431418+ 83 Linux
/dev/sdb2 4661 4865 1646662+ 5 Extended
/dev/sdb5 4661 4865 1646631 82 Linux swap / Solaris
Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x130f286b
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 19457 156288321 c W95 FAT32 (LBA)
Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa7a3e006
Device Boot Start End Blocks Id System
/dev/sdd1 1 30401 244196001 b W95 FAT32
But when it looks like this, speeds are slow:
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x130f286b
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 c W95 FAT32 (LBA)
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa7a3e006
Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 b W95 FAT32
Disk /dev/sdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7bd87bd8
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1530 12289693+ 7 HPFS/NTFS
/dev/sdc2 1531 4865 26788387+ 7 HPFS/NTFS
Disk /dev/sdd: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d6639b6
Device Boot Start End Blocks Id System
/dev/sdd1 1 4660 37431418+ 83 Linux
/dev/sdd2 4661 4865 1646662+ 5 Extended
/dev/sdd5 4661 4865 1646631 82 Linux swap / Solaris
This seems to happen *sometimes* [but not always] on reboot. The drives mount OK, and they are browsable on the XP box either way. But the slow speed only happens when /sdd1 /sdd2 /sdd5 are the linux partitions. When the linux partitions are /sdb1 /sdb2 /sdb5, all is OK. What do you think?
Last edited by ThunderRd; 08-02-2008 at 04:09 AM.
Reason: NEW INFO
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.