LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-07-2007, 09:53 PM   #1
tbuss
LQ Newbie
 
Registered: Mar 2007
Location: TN
Distribution: Edgy Eft
Posts: 4

Rep: Reputation: 0
Samba and a External HDD


Trying to share files across my network using Samba
3 pc's all using Ubuntu

The files I'm trying to share are located on a external hdd

I have mounted the external hdd and installed ntfs-3g

I can read and write to the external hdd with no problems.
I enabled sharing on the file I want to share (on external hdd)

I'll go to another pc on the network: connect to server -> windows share -> IP address.
I can connect just fine, I even see the folder I want to access. When I try to access the folder it fails. It says:

Quote:
The folder contents could not be displayed.
"Home_Productivity" couldn't be found. Perhaps it has recently been deleted.
I then restarted samba and tried again; same result.

After that I enabled sharing on a folder located on my internal hdd
The share worked.

Is there something special I need to do so that other pc's can access shared files located on my external hdd? I found this, not sure if it will work because my hdd is a firewire connection:

Code:
[usbdisk]
comment = Ekstern harddisk
path = /media/usbdisk
browseable = yes
read only = no
public = yes
Tried changing:
[usbdisk] to [External]
path=/media/usbdisk to path=/media/External
restarted samba: sudo /etc/init.d/samba restart
The share still failed.

If it helps here are the two shares I created as shown in smb.conf

This share fails:

Code:
[Home_Productivity]
path = /media/External/Home_Productivity
available = yes
browsable = yes
public = yes
writable = yes
This share works:

Code:
[docs]
path = /home/tbuss/docs
comment = test share file
available = yes
browsable = yes
public = yes
writable = yes
output from mount:

Code:
tbuss@tbuss-desktop:~$ mount
/dev/hdb5 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.17-11-generic/volatile type tmpfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sda1 on /media/External type fuse (rw,nosuid,nodev,noatime,allow_other,default_permissions)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
tbuss@tbuss-desktop:~$
All I need to do is to be able to access a folder that is stored on a external hdd. Why am I not able to do this. I can write to it, I can read from it (on local pc) but I cannot share the folder on it.
 
Old 04-07-2007, 10:16 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
what are the permissions of the "external" folder ?

what does this show on your linux box:

Code:
smbclient -L //IP.OF.LINUX.BOX
 
Old 04-08-2007, 08:00 AM   #3
tbuss
LQ Newbie
 
Registered: Mar 2007
Location: TN
Distribution: Edgy Eft
Posts: 4

Original Poster
Rep: Reputation: 0
permissions on external hdd

I tried smbclient -L //IP.OF.LINUX.BOX
I can't get in: session setup failed: NT_STATUS_LOGON_FAILURE

I don't remember setting a password for this? Tried the password I use to log-in didn't work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External HDD MattJUK Linux - Newbie 4 01-05-2007 05:10 PM
just got a new external hdd MrSako Linux - Hardware 1 09-04-2006 01:12 PM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
External HDD Help jorasmi Slackware 1 05-09-2005 10:36 PM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration