Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux    |    Getting to be as bloated as Windows!    |    107,822 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 107,348 of 107,822    |
|    Lew Pitcher to Java Jive    |
|    Re: Problem With Old Zyxel NSA 221 NASs     |
|    06 Jun 25 12:45:13    |
   
   XPost: uk.comp.os.linux   
   From: lew.pitcher@digitalfreehold.ca   
      
   On Fri, 06 Jun 2025 12:25:35 +0100, Java Jive wrote:   
      
   [snip]   
      
   > I now have this fully working. If it's of any interest here's the code   
   > from rcS. If on first boot, less than 2 HDs are found, it's sets a flag   
   > in the U-boot environment, which survives a reboot, and then does a   
   > reboot. On the second boot, it wipes the reboot flag and carries on the   
   > boot regardless of how many HDs are found. In my case, the reboot   
   > allows the second HD to be detected during the second boot, so the XFS   
   > storage area spread across both HDs becomes available.   
      
   [snip]   
   > ${SETENV} ${REBOOTFLG} true   
   > ${ECHO} "Rebooting to try to pick up slow-spin-up drives ..."   
   > # The following command is valid according to the help parameter, but fails   
   > # ${UMOUNT} -a   
      
   Yah, assuming ${UMOUNT} resolves to something like /bin/umount, then   
    ${UMOUNT} -a   
   probably would fail here. Primarily while trying to umount the filesystem   
   that has your scripts cwd, and (because the umount failure left that   
   filesystem still mounted) the root filesystem.   
      
      
   Remember, umount can't unmount an active mountpoint (one with mountspoints,   
   open files or directories on it), and   
      
   a) your script's cwd is most likely located in one of the filesystems   
    mentioned in /etc/mtab (and, of course, open, because your active   
    process lives in that cwd),   
      
   b) / is probably in your /etc/mtab, and can't be umounted until all   
    the filesystems that reside on it are umounted, and   
      
   c) your use of the -a option effectively asks umount to unmount /all/   
    filesystems listed in /etc/mtab ("except the proc filesystem")   
      
   [snip]   
      
   HTH   
   --   
   Lew Pitcher   
   "In Skills We Trust"   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca