LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2002, 03:51 PM   #1
Jason Brawner
LQ Newbie
 
Registered: Mar 2002
Posts: 5

Rep: Reputation: 0
mount that stays after reboot


I did a mount to a Win2000server box running Services for Unix like the following:

mount 192.168.100.1:/mySharedDir

It works fine but when I reboot the unix box the mount is gone. How do I create a mount that will reconnect when the box is restarted?

Thanks,

Jason
 
Old 03-20-2002, 04:18 PM   #2
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
hrmm... well, the simple answer is that you could simply put the mount command in startup script - make sure it's executed after the network is initialized.

i don't know what the "correct" way to mount a remote drive is - have you tried it on fstab?
 
Old 03-20-2002, 06:07 PM   #3
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
First of all, something is missing from that mount command. Specifically, where are you mounting it on the Linux box?

Anyway, putting it in /etc/fstab will do the trick. Just make sure you specify it as NFS. The entry will look something like this:

192.168.100.1:/mySharedDir /mnt/mySharedDir nfs soft 0 0
 
Old 03-21-2002, 08:51 AM   #4
Jason Brawner
LQ Newbie
 
Registered: Mar 2002
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the replies.

Sorry, I did forget the destination of the mount. Does fstab work for all flavors of Unix? I have some Linux, Solaris, and SG boxes that need this functionality.

Thanks,

JEB
 
Old 03-21-2002, 11:25 AM   #5
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
don't know about solaris and sg... /etc/fstab is a file that defines the mount points for the system. i wasn't sure if it would allow a remote mount, but i'd be surprised if it didn't. try just tossing sixpax's line into the file and see how it takes it.
 
Old 03-21-2002, 12:59 PM   #6
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
Most SysV type flavors of UNIX use /etc/fstab. I'm pretty sure Solaris does, but I doubt SG does. Usually doing a "man mount" will give you that information though.
 
Old 03-27-2002, 03:13 PM   #7
Jason Brawner
LQ Newbie
 
Registered: Mar 2002
Posts: 5

Original Poster
Rep: Reputation: 0
I tried putting the following in the /etc/fstab file and it didn't work on a Solaris box:

192.168.100.1:/mySharedDir /mnt/mySharedDir nfs soft 0 0

(What does the 'soft 0 0' mean?) When I rebooted the mount didn't exist. Also, the Solaris box does have another nfs mount that does reconnect at startup (to a redhat box) and there was nothing in the fstab file when I opened it. So, is there another way? How does that mount reconnect?


Thanks
 
Old 03-28-2002, 01:39 AM   #8
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
Even though Solaris uses /etc/fstab for local mounts, it must have some other setup for nfs mounts (obviously). I haven't messed with Solaris in ages so I can't recall how it's done. You might check for some file in /etc that might give a clue (ls /etc/*nfs* ??).

Did you check the man page for mount? Maybe even check "man -k mount" to see if anything pops up.

Sorry I can't be more help.
 
  


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
libpam-mount gdm shutdown reboot problem pohl886 Debian 0 07-22-2005 12:39 PM
keep mount point after reboot deus1 Linux - General 3 06-21-2005 07:10 PM
After reboot LVM2 partitions will not mount sendas4 Linux - General 0 10-12-2004 05:35 PM
windows mount not staying after reboot - fstab looks OK ScottUT Linux - Newbie 5 01-21-2004 08:01 PM
Mount points are gone after reboot w102jsd Linux - General 1 06-19-2003 01:58 PM


All times are GMT -5. The time now is 12:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration