site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
1946
Share Topic
Posting?
Post a:
Post a:
Links: ·Forum FAQ ·Attitude Adjustment ·Linux docs ·DistroWatch ·OPLM ·FreeBSD Handbook
AuthorAll Replies


NETSH
Go Gators
Premium
join:2002-11-06
united state
Reviews:
·Comcast
·AT&T U-Verse

Make a file system mount stick after reboot?

I have two Linux RH servers running different applications. I need to share a folder on one of the servers so that the other server can mount it. On the one server called "Track" I created the following directory:

\\track\u\CDList (I then made it a samba share so that PC users can drop files into it)

On the other server called "Classpag" I want to mount this folder that is on the track server...I can do it by the following:

#mkdir /z
#mount //track/u/CDList /z

This will mount the remote folder to the /z file system

Now once I reboot this mount will disappear.

What would I need to place into the /etc/fstab file so this will mount every time the server is rebooted?

Being on a different server I think the options in the fstab file need username and password as well.
--
=="I am the embodiment of IT"==

pablo
MVM
join:2003-06-23
kudos:1

I'm going to assume you tried reading the man page and got stuck?

If not: man mount

If so:

//zorra/c   /mnt/zorra   smbfs    username=friendly_user,password=friendly_passwd,sockopt=IPTOS_LOWDELAY,TCP_NODELAY,ro
 

:)

--
pablo
openSUSE 10.2/KDE
ISP: TekSavvy DSL; backhauled via a 6KM wireless link


NETSH
Go Gators
Premium
join:2002-11-06
united state
Reviews:
·Comcast
·AT&T U-Verse

Here is what I have in the fstab file and it still isnt working. What could I be missing? See entry in bold. The other entries are pre existing.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/u /u ext3 defaults 1 2
LABEL=SW-cciss/c0d0p3 swap swap defaults 0 0
LABEL=//track/CDList /z smbfs username=****,password=****,sockopt=IPTOS_LOWDELAY,TCP_NODELAY,ro
--
=="I am the embodiment of IT"==



powerhog
Stinkin' up the joint
Premium
join:2000-12-14
Owasso, OK

I'd drop the LABEL= part of that line and see what happens.



NETSH
Go Gators
Premium
join:2002-11-06
united state

1 edit

nope...still not working. I cant believe how hard this is. Maybe a startup script is the answer instead.
--
=="I am the embodiment of IT"==


salahx

join:2001-12-03
Saint Louis, MO

reply to NETSH

said by NETSH:

Here is what I have in the fstab file and it still isnt working. What could I be missing? See entry in bold. The other entries are pre existing.
LABEL=//track/CDList /z smbfs username=****,password=****,sockopt=IPTOS_LOWDELAY,TCP_NODELAY,ro
This should be "cifs" not "smbfs", unless you are connecting to a 9x/ME machine.

Tuesday, 29-May 02:41:27 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 12.5 years online © 1999-2012 dslreports.com.
Most commented news this week
Hot Topics