|
|
Re: External disk problem. |
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
[Older Fedora Users] [Fedora Announce] [Fedora Package Announce] [EPEL Announce] [Fedora News] [Fedora Cloud] [Fedora Advisory Board] [Fedora Education] [Fedora Security] [Fedora Scitech] [Fedora Robotics] [Fedora Maintainers] [Fedora Infrastructure] [Fedora Websites] [Anaconda Devel] [Fedora Devel Java] [Fedora Legacy] [Fedora Desktop] [Fedora Fonts] [ATA RAID] [Fedora Marketing] [Fedora Management Tools] [Fedora Mentors] [SSH] [Find Someone Special] [Fedora Package Review] [Fedora R Devel] [Fedora PHP Devel] [Kickstart] [Fedora Music] [Fedora Packaging] [Centos] [Fedora SELinux] [Fedora Legal] [Fedora Kernel] [Fedora QA] [Fedora Triage] [Fedora OCaml] [Coolkey] [Virtualization Tools] [ET Management Tools] [Yum Users] [Tux] [Yosemite News] [Yosemite Photos] [Linux Apps] [Maemo Users] [Gnome Users] [KDE Users] [Fedora Tools] [Fedora Art] [Fedora Docs] [Maemo Users] [Asterisk PBX] [Fedora Sparc] [Fedora Universal Network Connector] [Libvirt Users] [Fedora ARM]
![]() |
![]() |