LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-06-2007, 10:44 PM   #1
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Rep: Reputation: 15
perm mount LAN ntfs share, have to remount on reboot


Using the command...

Quote:
mount -t cifs //192.168.1.101/Music-Bands /windows/bands -o username=<user>,password=<pw>
Where...
192 is the windows box (SAMBA still won't allow a browse,unless through kongeror location bar)
and
/windows/bands is the mnt point

I access the shares without issue.

However upon reboot, all the shares are no longer there (mnt points are still, of course).

My understanding was that this command would result in a permanent mount.

I've tried any number of commands to get this working properly, I'm close I know.

Ideas?
 
Old 05-07-2007, 09:52 AM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
mount only lasts 'til the next reboot. You need to put the share mounting info in /etc/fstab in the correct format.

BTW, I don't know if fstab can accommodate the username, password info.; or, more important, if it would be safe to put them in fstab. (On my system, fstab is world readable.)
 
Old 05-07-2007, 12:52 PM   #3
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Original Poster
Rep: Reputation: 15
DOH

That makes sense.

Now, I just have to wait for someone to help with the correct format...
 
Old 05-07-2007, 01:10 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
unrlated to networking. moved to Linux - Newbie.
 
Old 05-07-2007, 02:10 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by daTerminehtor
Now, I just have to wait for someone to help with the correct format...
Why wait when the answer is right in front of you..

man mount
man fstab

google.com

 
Old 07-11-2007, 11:48 AM   #6
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Original Poster
Rep: Reputation: 15
Adding the following to fstab...

//192.168.1.101/Movies /mnt/movies smbfs credentials=/root/creds,noatime,rw 0 0

Using the above, I now find the remote shares on my desktop (they ARE simply icons, right?) and in myComputer.

However, I get a 'permissions denied' error, which makes sense I guess. As I have noatime disabled locally, I'm sure the above permissions part is wrong... no username/password found in that line.

Is that right?

In the above line, is /root the issue?
 
Old 07-11-2007, 01:26 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
fstab is a "suck-ass" way to mount network drives, who's presence you can never quite guarentee. i'd very very strongly suggest you look over autofs which can mount defined locations on access, not on boot. as such you're much less likely to have filesystems hanging on the remote machien going awol etc...
 
Old 07-11-2007, 03:19 PM   #8
daTerminehtor
Member
 
Registered: Jan 2006
Location: Great White North
Distribution: openSUSE 10.2, openSUSE 10.3 (VM)
Posts: 44

Original Poster
Rep: Reputation: 15
I'd prefer to have access through fstab, particularly for music.

autofs is more for mounting when needed, isn't it?

You're saying that the filesystems (rather than the access) would hang at times? That makes sense, similar to shares that are removed yet linger in network places (windows)? But, if mounted properly (with correct permissions set), wouldn't that lesson a possibility?
 
Old 07-12-2007, 03:30 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
read up on autofs, the use is absolutely no different, you will always see fiels in the right place when you look for them, whether they are msuic or films or anything.

if you mount a network file system, if that network file system becomes unreachable for some reason, then the client system often hangs whilst it tries and tries to reach that remote node, which has been stolen and chucked in the back of dodgy pete's van. if you use autofs then when you aren't directly using it, the connection is unmounted, so when it's stolen, the kernel on your system doesn't still think it's there, so there's no problem, other than the theft report to the police.
 
  


Reply



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
Samba share ntfs mount sqrt Linux - Software 2 11-22-2006 03:40 PM
Can I remount '/' partition without a reboot? benr77 Linux - General 8 08-22-2006 01:26 AM
How do I remount a network SMB share (on reboot) requiring a username & password BuckRogers01 Linux - Networking 1 07-09-2005 11:53 AM
Mount NTFS Partition on LAN dwarf007 Linux - Networking 6 02-27-2005 03:32 AM
howto? samba share NTFS mount to W2K client slintz Linux - Software 0 06-02-2003 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:04 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