How to mount a removable USB drive from a script

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

 



I have a removable USB drive on my system.  When KDE starts an icon
appears on the desktop that allows the drive to be mounted in the /media
directory; as a side effect the directory /media/usb-disk/ is created on
which to mount the drive.  This is done by right clicking the icon and
clicking on the desired action in the popup menu.

There must be some way to have a shell script perform the same operation
that clicking on the icon/popup line mount makes happen.  What is it?

If I create the directory /media/usb-disk and then "$
mount /dev/sda1 /media/usb-disk", everything works fine till I unmount
the disk, as can be done using the icon; but then an attempt to remount
the drive by clicking on the "Open" line in the popup fails with the
message:
	The mount point '/media/usb-disk' is already occupied

which is, of course, not correct.  I think I've filed a bug on this, but
I have so many bugs outstanding that I'm not sure.

Thanks - jon

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [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]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux