[DLC]Re: [UFO Chicago] network not ready when fstab is processed
Politik Durden <politikdurden-/[email protected]> Fri, 18 Jun 2010 16:38:14 -0700 (PDT)
| Newsgroups | gmane.org.user-groups.linux.depaul-lug |
|---|---|
| Message-ID | <[email protected]> |
--- On Tue, 6/15/10, Brian Sobolak <[email protected]> wrote: > From: Brian Sobolak <[email protected]> > Subject: Re: [UFO Chicago] network not ready when fstab is processed > To: ufo-Y4FUXIRBYHQvUt+Q7UkouvU/[email protected] > Date: Tuesday, June 15, 2010, 11:02 PM > > On Tue, June 15, 2010 6:38 pm, Politik Durden wrote: > > --- On Mon, 6/14/10, Politik Durden <politikdurden-/[email protected]> > wrote: > > > >> From: Politik Durden <politikdurden-/[email protected]> > >> Subject: network not ready when fstab is > processed > >> To: ufo-Y4FUXIRBYHQvUt+Q7UkouvU/[email protected] > >> Cc: "Depaul Linux" <[email protected]> > >> Date: Monday, June 14, 2010, 3:20 PM > >> > Message: 4 > >> > Date: Mon, 14 Jun 2010 09:59:25 -0700 (PDT) > >> > From: "Matthew T. Gibbs" <mtgibbs-/[email protected]> > >> > Subject: Re: [UFO Chicago] [DLC]allowable > characters > >> for > >> > group names > >> > on Xubuntu > >> > To: UFO Mail list <ufo-Y4FUXIRBYHQvUt+Q7UkouvU/[email protected]> > >> > Message-ID: <203383.23440.qm-h7syUA/[email protected]> > >> > Content-Type: text/plain; charset="us-ascii" > >> > > >> > Are you using the _netdev option in fstab? > It may > >> be > >> > trying to mount the shares before the network > is > >> available. > >> > > >> > Matt > >> > >> Thanks Matt, > >> > >> Since the mounting worked manually from the > command line, I > >> kinda figured that something (my guess was a > protocol) > >> wasn't ready/loaded when fstab is being processed > at start > >> up. > >> > >> I tried using the _netdev option in fstab but the > drives > >> still won't mount at boot up. I am using cifs and > this link > >> > >> > >> https://help.ubuntu.com/community/Fstab > >> > >> says _netdev is only available with NFS. NFS would > require > >> installing/running and NFS server on the XP side > so I'm > >> trying to stick with CIFS. Is there any other way > to delay > >> the mounting of the network shares until after the > network > >> comes up ? This would be the ideal solution. > >> > >> Some people have fixed this issue by running a > cron job > >> that checks to see if the share is mounted, and if > not, run > >> a script to mount it. This could potentially > require a user > >> to wait for the cron job to run in order to access > the > >> share, or mount it manually if they don't want to > wait till > >> the job runs. Plus I'd have to somehow mentally > connect the > >> cron job with the network share. Too cumbersome. > >> > >> Others have made a script that runs "sudo mount > -a" after > >> everything in the OS is loaded. Not exactly > elegant, and it > >> kinda defeats the purpose of putting the commands > in fstab. > >> > >> > >> What if instead of the script running "sudo mount > -a", > >> which remounts everything again, the script > contains only > >> commands to mount the network shares ? > >> > >> > >> > > > > Someone on linuxquestions.org suggested using netfs to > mount the shares at > > startup. Couldn't find much info on netfs. Wikipedia > doesn't even have an > > entry for it. One web site described netfs as a peer > to peer system. > > Doesn't sound like what I'm looking for. Any thoughts > ? > > > > I usually prefer what works. I'd figure that the cron > job would work > within 5-10 minutes of booting up, which you probably > shouldn't be doing > that often anyway. For most users, sure, there might > be a gap but it's > not likely. > > brian > > So now I'm trying to add mount commands to /etc/rc.local, but so far no luck. The very first line of rc.local is : #!/bin/sh -e and the comments in rc.local say that by default, the script does nothing. Do I need to uncomment the line #!/bin/sh -e for anything to work ? I did "chmod +x rc.local" to make it executable, but still no run at boot up. Any ideas ? _______________________________________________ DLC mailing list [email protected] http://mailman.depaul.edu/mailman/listinfo/dlc Use the Above Link to Unsubcribe!! http://linux.depaul.edu/