Results 1 to 4 of 4

Thread: how do I access an external drive from terminal

  1. #1
    Join Date
    Aug 2007
    Beans
    163

    how do I access an external drive from terminal

    Hi,

    I want to copy files from the external drive to the pc. since there are some permissions problems I want to do this with sudo.

    With which commands can I find the external drive?

    root@ben-desktop:/# ls
    bin dev initrd lib mnt root sys var
    boot etc initrd.img lost+found opt sbin tmp vmlinuz
    cdrom home initrd.img.old media proc srv usr vmlinuz.old


    Thx,
    Ben

  2. #2
    Join Date
    Apr 2007
    Location
    York, United Kingdom
    Beans
    143

    Re: how do I access an external drive from terminal

    If you type sudo nautilus & it'll give you a root file manager, might make life easier.

    Usually Ubutnu will mount drives as /media/disk-X/, if it doesn't exist, then post back here and someone will help you mount it.

  3. #3
    Join Date
    Jul 2007
    Location
    Brugge, België
    Beans
    2,933

    Re: how do I access an external drive from terminal

    Quote Originally Posted by ben22 View Post
    Hi,

    I want to copy files from the external drive to the pc. since there are some permissions problems I want to do this with sudo.

    With which commands can I find the external drive?

    root@ben-desktop:/# ls
    bin dev initrd lib mnt root sys var
    boot etc initrd.img lost+found opt sbin tmp vmlinuz
    cdrom home initrd.img.old media proc srv usr vmlinuz.old


    Thx,
    Ben
    The easiest way would be to open nautilus as root, that should take care of any permission problems.

    Code:
    gksudo nautilus
    If you want to only use the terminal, I believe it's located in /media/name of harddrive.

    There is a command "cheat sheet" here that might come in handy for the future.

  4. #4
    Join Date
    May 2007
    Beans
    1,383
    Distro
    Ubuntu

    Re: how do I access an external drive from terminal

    Code:
    cd /media
    dir
    cd *name of external hdd here*
    cd to whatsoever directory
    sudo cp *name of file* ~/*name of folder in home directory to copy to*
    If you want to copy a lot of documents file (.doc for instance) you can write:

    Code:
    sudo cp .doc*
    To copy a directory:

    Code:
    sudo cp -dir *name of dir*
    The best in life is free

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
  •