Re: External disk problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 30, 2012 at 11:01:53AM +0100, Bryn M. Reeves wrote:
> On Mon, 2012-07-30 at 06:48 -0300, Fernando Cassia wrote:
> > On Mon, Jul 30, 2012 at 6:32 AM, Bryn M. Reeves <bmr@xxxxxxxxxx> wrote:
> > > Do you see that happen a lot?
> > 
> > Do you mean the error, or the sharing of scripts?
> 
> The error: it's an abnormal condition so if you are seeing that,
> especially if it is happening frequently, there is a problem.
> 
> When a device is removed the kernel issues remove uevents that should be
> picked up by udev and cause the device nodes to be removed.
> 
> Bryn.

Well, FWIW, and at the risk of showing off my rather meager talents at bash
scripting (lol), my script simply checks that the drives aren't busy, and
then unmounts them before suspending.  I still have to manually remount them
after I resume. 

#! /bin/bash
umount /mnt/Ptec
if [ -e "/mnt/Ptec/Gentoo" ]; then
    echo "Device Ptec Busy"
    exit
else
        umount /mnt/USB
fi
if  [ -e "/mnt/USB/icons" ]; then
   echo "Device USB Busy"
   exit 
else
      /usr/sbin/hibernate-ram
fi

Terry
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux