home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 136,289 of 138,051   
   William Unruh to Carlos E. R.   
   Re: USB automount   
   14 May 17 00:28:51   
   
   From: unruh@invalid.ca   
      
   On 2017-05-13, Carlos E. R.  wrote:   
   > On 2017-05-13 19:55, Sidney_Kotic wrote:   
   >> I have three computers running Leap(current version fully patched).  My   
   >> problem is that all of them have USB devices on them (a 1TB, or a 3TB,   
   >> or a 4TB drive) that I need to have mounted at boot, not at login.  All   
   >> of the machines can reboot depending on the results of a cronjob which   
   >> runs very early in the morning and I might not be in the country.   
   >   
   > You can write fstab entries so that they are mounted at boot, same as   
   > any other entry in that file. However, if the disk can not be mounted   
   > for some reason (like disk unplugged), the system con not boot normally.   
   > At best it will continue to emergency mode, depending on your distro,   
   > thus waiting for your manual action. I don't know if in that mode you   
   > can ssh in.   
   >   
      
   You just have to make sure that one of the options is "nofail"   
   Then after the system has booted up, run a job (eg from /etc/rc.local)   
   to test if the mount succeeded and send you an error message by email,   
   so you can ssh in and fix the problem.   
      
      
      
   > You can use the option "nofail", in which case if the external media can   
   > not be mounted, it will not produce an error and the boot procedure will   
   > continue.   
      
   Note that that disk will not be mounted  if you do mount -a after boot. You   
   have   
   mount that entry specifically.   
      
      
      
   >   
   > Or you can create a cron job that sends you an email if there is a problem.   
      
   Or you could not have any entry for that disk in /etc/fstab and run a script    
   just after   
   bootup to try to mount the disk and email you with the information.   
      
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca