<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mount error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039631#M5982</link>
    <description>Hi Frank!&lt;BR /&gt;&lt;BR /&gt;By-the-way thanks for the additional infor regarding proc.. it's helpful.&lt;BR /&gt;&lt;BR /&gt;The "other scripts" is just copying a file in the other drive.&lt;BR /&gt;&lt;BR /&gt;Is it possible to set a delay to unmount the drive?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;LAT&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Aug 2003 16:27:32 GMT</pubDate>
    <dc:creator>Leovino A. Trinidad, Jr</dc:creator>
    <dc:date>2003-08-01T16:27:32Z</dc:date>
    <item>
      <title>mount error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039629#M5980</link>
      <description>Hi! &lt;BR /&gt;&lt;BR /&gt;I have a problem unmounting a drive when running it in a script:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;mount /dev/hda1 /x&lt;BR /&gt;&lt;OTHER scripts=""&gt;&lt;BR /&gt;umount /dev/hda1&lt;BR /&gt;&lt;BR /&gt;In some point umount does not run. If I check the mounting after the script run the drive (dev/hda1) is still mounted.&lt;BR /&gt;&lt;BR /&gt;Hope you could help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;LAT&lt;/OTHER&gt;</description>
      <pubDate>Fri, 01 Aug 2003 16:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039629#M5980</guid>
      <dc:creator>Leovino A. Trinidad, Jr</dc:creator>
      <dc:date>2003-08-01T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: mount error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039630#M5981</link>
      <description>Hi LAT,&lt;BR /&gt;&lt;BR /&gt;This &lt;OTHER scripts=""&gt;, run some process that are still running when you try to umount it?&lt;BR /&gt;&lt;BR /&gt;If there are process running, it is not possible to umount the drive.&lt;BR /&gt;&lt;BR /&gt;Verify the processes with a &lt;BR /&gt;ps ax | grep mount_point&lt;BR /&gt;or &lt;BR /&gt;ps ax | grep /dev/hda1, to see what process are running.&lt;BR /&gt;&lt;BR /&gt;Frank.&lt;/OTHER&gt;</description>
      <pubDate>Fri, 01 Aug 2003 16:22:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039630#M5981</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-08-01T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: mount error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039631#M5982</link>
      <description>Hi Frank!&lt;BR /&gt;&lt;BR /&gt;By-the-way thanks for the additional infor regarding proc.. it's helpful.&lt;BR /&gt;&lt;BR /&gt;The "other scripts" is just copying a file in the other drive.&lt;BR /&gt;&lt;BR /&gt;Is it possible to set a delay to unmount the drive?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;LAT&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Aug 2003 16:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039631#M5982</guid>
      <dc:creator>Leovino A. Trinidad, Jr</dc:creator>
      <dc:date>2003-08-01T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: mount error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039632#M5983</link>
      <description>Hi LAT,&lt;BR /&gt;&lt;BR /&gt;Inside the scripts you can execute a command if the previous one has finished succesfully or not, this is made by the &amp;amp;&amp;amp; and || operators. &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;echo "Hi" &amp;gt; /tmp/dump &amp;amp;&amp;amp; echo "Correct"&lt;BR /&gt;&lt;BR /&gt;This outputs the word "Correct" in the standard output and create a new file in /tmp directory with the word Hi.&lt;BR /&gt;&lt;BR /&gt;On the other hand, suppose the following:&lt;BR /&gt;&lt;BR /&gt;chmod 000 /tmp/dump  # no write permission in file&lt;BR /&gt;&lt;BR /&gt;echo "Hi" &amp;gt; /tmp/dump || echo "Correct"&lt;BR /&gt;&lt;BR /&gt;this outputs the following:&lt;BR /&gt;&lt;BR /&gt;bash: /tmp/dump: Permision denied&lt;BR /&gt;Correct&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The "Correct word is output because the first echo fails.&lt;BR /&gt;&lt;BR /&gt;Well, this means that you can make the &lt;OTHERS scripts=""&gt; in a subprocess and follow with the &amp;amp;&amp;amp; command with the umount.&lt;BR /&gt;&lt;BR /&gt;This is only a idea.&lt;BR /&gt;&lt;BR /&gt;About the delay, you can do a delay with the command sleep.&lt;BR /&gt;&lt;BR /&gt;sleep 5   # sets a 5 seconds delay before continue.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;Frank.&lt;BR /&gt;&lt;BR /&gt;&lt;/OTHERS&gt;</description>
      <pubDate>Fri, 01 Aug 2003 16:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039632#M5983</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-08-01T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: mount error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039633#M5984</link>
      <description>You can't umount an fs with open processes.&lt;BR /&gt;&lt;BR /&gt;I don't even know if this command is in Linux but you need the equivalent.&lt;BR /&gt;&lt;BR /&gt;fuser -cu  fsname&lt;BR /&gt;&lt;BR /&gt;lists processes.&lt;BR /&gt;&lt;BR /&gt;fuser -cuk fsname  kills the suckers.&lt;BR /&gt;&lt;BR /&gt;Then you can umount.&lt;BR /&gt;&lt;BR /&gt;There is a Linux equivalent.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 01 Aug 2003 16:45:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039633#M5984</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-08-01T16:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: mount error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039634#M5985</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;What you need is fuser -uc &lt;MOUNT point=""&gt;&lt;BR /&gt;You will get the PIDs that use the mount point&lt;BR /&gt;then run ps aux | grep PID&lt;BR /&gt;and you will see who use the mount point.&lt;BR /&gt;&lt;BR /&gt;Caesar&lt;/MOUNT&gt;</description>
      <pubDate>Sat, 02 Aug 2003 17:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mount-error/m-p/3039634#M5985</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-08-02T17:51:18Z</dc:date>
    </item>
  </channel>
</rss>

