Find the answer to your Linux question:
Results 1 to 9 of 9
Fedora Core 5 keeps automatically unmounting my external USB drive when it's not in use. This is annoying because all of my mp3s are on it and my media player ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    11

    Permanently mount external drive.


    Fedora Core 5 keeps automatically unmounting my external USB drive when it's not in use. This is annoying because all of my mp3s are on it and my media player gets confused when it can't find the files. Is there a way to PERMANENTLY mount the drive on startup and stop it from automatically unmounting without my approval? It's FAT32 btw.

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Posts
    11
    Nobody has any idea? Sorry for bumping my own thread, but I've searched everywhere and can't seem to find a solution. Thanks.

  3. #3
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Open up /etc/fstab with an editor:
    Code:
    /dev/sda1   /mnt/usb  vfat   noatime  0 0
    I'm assuming that your USB drive is located at /dev/sda1, however.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  4. #4
    Just Joined!
    Join Date
    Jun 2006
    Posts
    11
    Thanks for your reply,
    Adding that to fstab prevented me from mounting the drive, stating that I did not have privileges to it. The drive is usually mounted at /media/disk rather than /mnt/usb, should I change it to that or does it not matter?

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729

    Smile

    u can edit fstab as a root only.
    create a mount point using mkdir in media directory... like mkdir /media/USB_drive etc...

    in fstab use correct mount point.
    Last edited by devils casper; 07-23-2008 at 12:55 PM.

  6. #6
    Just Joined!
    Join Date
    Jun 2006
    Posts
    11
    I always log in as root. devils_casper, could you further explain how to set up the arguments for the mkdir command, it seems a bit confusing to me. Thanks.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    /media/disk is a default mount-point when u mount your drive manually.

    Create a folder in media
    Code:
     mkdir /media/usb_drive
    Add this line in /etc/fstab file :
    Code:
    /media/disk   /media/usb_drive  vfat   noatime  0 0
    Last edited by devils casper; 07-23-2008 at 12:57 PM.

  8. #8
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110
    What if I want the drive to mount as something like /backup in the filesystem?
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  9. #9
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Same thing applies ... create folder to mount drive partition to and issue mount command ... check you have the desired result and add entry to fstab if you want to mount the drive every time the system boots.

Posting Permissions

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