Results 1 to 4 of 4

Thread: How can I mount a drive using terminal?

  1. #1
    Join Date
    Apr 2011
    Location
    Currently on earth.
    Beans
    45
    Distro
    Ubuntu 11.04 Natty Narwhal

    How can I mount a drive using terminal?

    I want to mount a drive using terminal or a run command, but how can I do this?

    Please help.
    Thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    Milton Keynes, UK
    Beans
    1,141
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How can I mount a drive using terminal?

    Create directory to mount dive to. Mount point must exist & be read write by user. ie /home/user/external

    In terminal run

    Code:
    sudo fdisk -l
    enter password

    Work out which is the drive you want to mount & it's filesystem. ie /dev/sdb & ntfs

    Then in terminal

    Code:
    sudo mount /dev/sdb /home/user/external ntfs
    This will mount a drive /dev/sdb formatted to ntfs to /home/user/external

    This needs to be adjusted to suit your needs.

    There are loads of options to the mount command, for details see the manual page

    Code:
    man mount
    When done with drive unmount with this

    Code:
    sudo umount /home/user/external
    Linux Registered User #443947 Ubuntu Regestered User #12604

    Hakunamatata ...... No worries !

  3. #3
    Join Date
    Apr 2011
    Location
    Currently on earth.
    Beans
    45
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How can I mount a drive using terminal?

    Quote Originally Posted by IcarusR View Post
    Create directory to mount dive to. Mount point must exist & be read write by user. ie /home/user/external

    In terminal run

    Code:
    sudo fdisk -l
    enter password

    Work out which is the drive you want to mount & it's filesystem. ie /dev/sdb & ntfs

    Then in terminal

    Code:
    sudo mount /dev/sdb /home/user/external ntfs
    This will mount a drive /dev/sdb formatted to ntfs to /home/user/external

    This needs to be adjusted to suit your needs.

    There are loads of options to the mount command, for details see the manual page

    Code:
    man mount
    When done with drive unmount with this

    Code:
    sudo umount /home/user/external
    I liked your Idea (but didn't try it). Sorry I forgot to tell you that I want a command to add it on startup so that the drive will be mounted automatically.
    Thanks.

  4. #4
    Join Date
    Oct 2006
    Location
    Milton Keynes, UK
    Beans
    1,141
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How can I mount a drive using terminal?

    Thanks, you could have been more precise with your question.
    Try using google, the following page comes high up.

    https://help.ubuntu.com/community/Au...ountPartitions
    Linux Registered User #443947 Ubuntu Regestered User #12604

    Hakunamatata ...... No worries !

Bookmarks

Posting Permissions

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