LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-10-2009, 03:40 PM   #1
yhabani
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
whats the deal with ubunutu 9.10 shares on ntfs disk


i have upgraded to 9.10
but it seems that the share i had on ubuntu9.04 is not working anymore
i used to have a nice partition of ntfs which was mounted manually every time i logon .
1. how can i do the auto mount ?
2. how can i roll back or fix the share problem ( ive tried to change the smb.conf to share the dev/sda2 but it seems not working)
many thanx in advance
the ja
 
Old 11-10-2009, 05:01 PM   #2
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by yhabani View Post
1. how can i do the auto mount ?
2. how can i roll back or fix the share problem ( ive tried to change the smb.conf to share the dev/sda2 but it seems not working)
Samba is not the ultimate problem, I would guess. Make sure you have 'ntfs-config' (your package might be different) installed.

Add to /etc/fstab something like:

/dev/sda2 /mnt/ntfs ntfs ro 1 3
 
Old 11-10-2009, 06:44 PM   #3
yhabani
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Question fstab is not helpful somehow

i tried as you suggested to auto mount it with fstab using ntfs-3g
but it didn't auto mount it ...
i guess its because of the DeviceKit project ...
whats up with that ? how do i cancel the authentication each time i try to mount the ntfs disk?
 
Old 11-12-2009, 10:32 AM   #4
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
I probably misinterpreted what you were originally saying, sorry.

Let me ask, is the "share" to which you refer on a remote windows host? Is this a partition on your local drive that just happens to be ntfs?

What I'm driving at is if you were using samba to mount this share from a remote server before you upgraded, or was this local to your filesystem?

Generally speaking, if this is a remote filesystem shared by another samba server or a windows machine, you are going to mount it "automagically" by using 'smbfs' in your fstab. If this is a local filesystem which is formatted ntfs, then you are going to do as earlier suggested and use 'ntfs' in your fstab. The way it was worded, I thought you were mounting a local filesystem, but that might not be what you were saying.

If it is a remote windows share, then you will need to authenticate on the domain to which the windows server belongs.

Start by looking for the server or share:

Code:
smbclient -L <servername> // (NOTE: Don't type a Password...just <CR> to get list of available shares)
That should list the shares available on the server. Another diagnostic step is the following:

Code:
smbclient //<servername>/<shared directory> // (prompts for password)
( use current account name )
(returns 'smb>' prompt)
Something like this should work from the command line.

Code:
mount -t smbfs -o username=myname,password=mypass\$ //domainname/sharename /mnt/myshare
As for your fstab, something like:

Code:
//domainname/sharename /mnt/myshare smbfs password=mypass,username=myname,setuid=501,setgid=501,fmask=664 0 0
 
Old 11-14-2009, 04:09 PM   #5
yhabani
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Wink my fstab wont mount

hi again
it's as you first thought a partition of ntfs in my file system ( i am using dual boot- and its working just fine)
i am trying to shrae the ntfs partition ( and auto mount it ) with another vista computer on the network i secceded to do so with the previos ubuntu edition but now they put some kind of authentication method that seems to intrrupt the all precces of sharing.
in edition i tried auto mount the partition via fstab using ntfs-3g but it wont auto mount it . every time o log on i have to mount it manually and enter my user passfrase ...
i couldnt find any thing on ubuntu forum regarding my problems.
thanx to whom may answer my questions ...
yariv
 
Old 11-14-2009, 11:24 PM   #6
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by yhabani View Post
it's as you first thought a partition of ntfs in my file system...i am trying to shrae the ntfs partition ( and auto mount it ) with another vista computer on the network
Here are some notes on joining a Windoze domain with your Samba server.

-----------------------------------------------
Add server "rebpdc 10.1.0.15" to /etc/hosts

smbpasswd -j RE-DOMAIN -r rebpdc -U<domainadmin>%<adminpasswd>
-or-
net join member -U -U<domainadmin>%<adminpasswd>

- where <domainadmin> = name of administrator on PDC
<adminpasswd> = password for <domainadmin>

( If the above fails, then log onto PDC and start "Server Manager for Domains"

Add server "Filebox" // adds host NETBIOS name to the domain
Stop all Samba daemons on "Filebox"

smbpasswd -j <domainname> -r rebpdc )

If successful...

"smbpasswd: Joined domain RE-DOMAIN"

-or-

net join member -w <domainname> -U <domainadmin>
-----------------------------------------------
Quote:
Originally Posted by yhabani View Post
tried auto mount the partition via fstab using ntfs-3g but it wont auto mount it . every time o log on i have to mount it manually and enter my user passfrase
If you want help, you're going to need to post what you are adding to your fstab.

Code:
//domainname/sharename /mnt/myshare smbfs password=mypass,username=myname,setuid=501,setgid=501,fmask=664 0 0
It should be similar to the above.
 
  


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
Whats the deal with UTC anyway?? tekhead2 Linux - General 3 07-27-2009 10:30 AM
Whats the deal with GNU? Controlpanel Linux - Newbie 4 09-13-2007 05:37 PM
Whats the deal with bootstrap? tsunami_imcool Linux - Software 3 07-11-2007 05:35 PM
ok... whats the deal with permissions??? trey85stang Linux - Enterprise 4 07-14-2004 06:22 PM
kernel 2.6 whats the deal demmylls Linux - General 2 09-11-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:48 AM.

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