Find the answer to your Linux question:
Results 1 to 5 of 5
I have a NTFS drive that is mounted by root. When root logsout, the drive automatically unmounts and is not visible on the GUI. How can the drive stay mounted ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    2

    CentOS unmount issues


    I have a NTFS drive that is mounted by root. When root logsout, the drive automatically unmounts and is not visible on the GUI. How can the drive stay mounted after root logsout?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    Hi and welcome.

    Define the mountpoint in /etc/fstab.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    2
    the drive is not identified in /etc/fstab. We mounted it after booting the system while logged on as root. When root logsout, the drive automatically unmounts. Is this normal?

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    I meant: Add the line to /etc/fstab.

    Something like
    Code:
    mkdir -p /mnt/windowsdata
    
    In /etc/fstab:
    /dev/<NTFSPARTITION> /mnt/windowsdata        ntfs    defaults,umask=007 0 0
    
    Then
    mount /mnt/windowsdata
    Replace <NTFSPARTITION> with an appropiate device.

    Also, different/additional mountoptions like uid or gid might be of interest.
    The man page has more details.
    You must always face the curtain with a bow.

  6. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,709
    Quote Originally Posted by generye View Post
    the drive is not identified in /etc/fstab. We mounted it after booting the system while logged on as root. When root logsout, the drive automatically unmounts. Is this normal?
    Normal, yes. That's why you need to add it to fstab if you want it to be available all the time.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •