Find the answer to your Linux question:
Results 1 to 3 of 3
On a new installation of 7.10 it put two drives on desktop, one that I use, and the other useless. How can I tell Ubuntu that that drive does not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2007
    Location
    Villa Nueva, Argentina
    Posts
    108

    [SOLVED] Unmount drive


    On a new installation of 7.10 it put two drives on desktop, one that I use, and the other useless.

    How can I tell Ubuntu that that drive does not to be mounted, and even less put on the desktop?

    Many thanks,

    Josť

  2. #2
    Linux User
    Join Date
    Jan 2006
    Posts
    414
    Hi José,

    You will need to edit /etc/fstab and remove the drive you don't want mounted from there.

    Open a terminal and run:
    Code:
    mount
    This will return a list of all mounted file systems. Find the device you don't want mounted (it'll be something like /dev/hda4) and unmount it:
    Code:
    sudo umount /dev/hda4
    check you haven't unmounted the wrong thing, if it's the right one then open /etc/fstab in an editor:
    Code:
    sudo vi /etc/fstab
    Find the line for the drive you don't want mounted, and move the cursor to it with the up/down arrow keys
    Then delete the line by pressing d twice
    Save and exit by typing:
    Code:
    :wq
    and the drive won't mount automatically anymore.

  3. #3
    Linux Newbie
    Join Date
    Jun 2007
    Location
    Villa Nueva, Argentina
    Posts
    108
    Many thanks for the very clear explanation of what to do. Problem solved.

    Josť

Posting Permissions

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