Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th July 2004, 05:03 AM
ddellis Offline
Registered User
 
Join Date: Jun 2004
Posts: 12
umount drive upon reboot/shutdown

I am trying to use captive-ntfs to mount ntfs drives. It works well but I need to unmount the drives before shutting down or rebooting.
Is there a way that I can put the umount commands in a script somewhere so that these drives get unmounted automatically. I tried putting it in .bash_logout but that did not work.



Please forgive me if this is a dumb question. I am just getting started with Linux.

Dave
Reply With Quote
  #2  
Old 2nd December 2005, 12:27 PM
zellis's Avatar
zellis Offline
Registered User
 
Join Date: Dec 2005
Location: South Africa
Posts: 23
You can either use one of the following
umount /mnt/<directory name>
umount /dev/<device> e.g. umount /dev/hda1
Reply With Quote
  #3  
Old 2nd December 2005, 03:54 PM
mndar's Avatar
mndar Online
Registered User
 
Join Date: Feb 2005
Posts: 1,101
The bash shell uses the file .bash_logout . I think the others use the file .logout.
In .bash_logout have you put the first line as

#!/bin/bash
Reply With Quote
Reply

Tags
drive, reboot or shutdown, umount

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F8 : No Shutdown in menu, Login Screen is weird, Can't Shutdown only reboot megat Using Fedora 5 19th November 2007 11:00 AM
Shutdown -h vs. Poweroff / Shutdown -r vs. Reboot aab45 Using Fedora 1 19th July 2005 01:29 PM


Current GMT-time: 05:44 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat