• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Help me with samba shares  (Read 1924 times)
mushroom
Newbie
*

Karma: 0
Posts: 9


View Profile
« on: January 30, 2011, 01:49:39 PM »

Hi
Wanna share my two external usb drives with samba but only the one is shared. Both drives are normally mounted at boot.
Here is my smb.conf regarding these drives

[external]
   comment = WD
   browseable = yes
   writeable = yes
   path = /media/wd
   guest ok = yes

[external2]
   comment = seagate
   browseable = yes
   writeable = yes
   path = /media/500gb
   guest ok = yes

Any ideas?
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #1 on: January 30, 2011, 02:44:30 PM »

Have you looked at the File Permissions of both drives.

The File Permission override the share Permissions, you could share what you can`t see .
Logged

mushroom
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #2 on: January 30, 2011, 03:10:47 PM »

i get this on dmesg :

Code:
scsi 4:0:0:0: Direct-Access     WD       My Book          1028 PQ: 0 ANSI: 4
sd 4:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Mode Sense: 10 00 00 00
sd 4:0:0:0: [sdc] Assuming drive cache: write through
sd 4:0:0:0: [sdc] 976773168 512-byte hardware sectors (500108 MB)
sd 4:0:0:0: [sdc] Write Protect is off
sd 4:0:0:0: [sdc] Mode Sense: 10 00 00 00
sd 4:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 4:0:0:0: [sdc] Attached SCSI disk
sd 4:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
usb 1-1.7: USB disconnect, address 6
usb 1-1.7: new high speed USB device using ehci_marvell and address 7
usb 1-1.7: configuration #1 chosen from 1 choice
scsi5 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
input: Western Digital My Book as /class/input/input1

chmod 777 /media/500gb    gives me thischmod 777 /media/500gb/
chmod: changing permissions of `/media/500gb/': Read-only file system

maybe i need to format this drive

Logged

Abra
Newbie
*

Karma: 1
Posts: 29


View Profile
« Reply #3 on: January 30, 2011, 03:36:26 PM »

Or maybe you mounted it read-only.
Could you give the results of 'mount' and 'ls -ld /media/500gb'?
Also samba should write some stuff in a log file, look in all relevant logs in /var/log.
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #4 on: January 30, 2011, 03:47:35 PM »

I think the drive is in NTFS !!!
that`s why it is so slow and why you are in read only.
It all depends on what kernel and modules installed, if you can mount it read/write

If the drive is only for linux and not going between linux and windows , format it ex3 
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #5 on: January 30, 2011, 04:57:10 PM »

Sorry can`t edit my last post !!!!

o.k ,just been doing a little testing to show my point :-

Esata drive formatted ex3

dd if=/dev/zero of=/mnt/sda1/output.img bs=8k count=256k         
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 32.921 s, 65.2 MB/s

usb drive formatted ntfs

dd if=/dev/zero of=/mnt/tmp/output.img bs=8k count=256k
262144+0 records in
262144+0 records out
2147483648 bytes (2.1 GB) copied, 316.165 s, 6.8 MB/s

The slow speed is mostly down to ntfs and not usb, but ntfs and usb looks a real killer .
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #6 on: January 31, 2011, 06:46:10 PM »

Using USB for both (rather than esata for ext3 and USB for ntfs) I get slightly closer figures - 27.8MB/s (for ext4) vs 8.5 MB/s (for ntfs).
Perhaps not too surprising, given that ntfs is a Windows, rather than a Unix, file system, and that it's running through fuse.

The read rates were closer - 28.0MB/s vs 24.4MB/s
Logged

Pages: [1]
Print
Jump to: