Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: how to go in external hard drive with terminal

  1. #1
    Join Date
    Jul 2008
    Beans
    23

    how to go in external hard drive with terminal

    greeting everyone..
    how can i explore my external hard drive using terminal ?...it seem i can only access things in filesystem...anyone can help me with this ?....im new to the ubuntu....please help...with command and stuff...

    aisar ...

  2. #2
    Join Date
    Jun 2008
    Beans
    289

    Re: how to go in external hard drive with terminal

    Look for the external hard drive in the directory /media

  3. #3
    Join Date
    Jul 2008
    Beans
    23

    Re: how to go in external hard drive with terminal

    Quote Originally Posted by mikjp View Post
    Look for the external hard drive in the directory /media
    how do i go there through terminal ?

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: how to go in external hard drive with terminal

    https://help.ubuntu.com/8.04/basic-commands/C/
    http://ubuntuforums.org/showthread.php?t=777147

    use the cd command (change directory) and ls (list files and folders)
    Code:
    cd /media
    Code:
    ls
    cdrom cdrom0 disk
    Code:
    cd disk
    Last edited by sisco311; August 8th, 2008 at 12:33 PM.

  5. #5
    Join Date
    Oct 2008
    Beans
    3

    Re: how to go in external hard drive with terminal

    greeting everyone...thank you for the tips~
    Carpet Cleaning

  6. #6
    Join Date
    Jan 2009
    Beans
    1

    Re: how to go in external hard drive with terminal

    I've researched an external hard drive (MyBook500gstudio)
    However coming up with confusion. I'm new to ubuntu studio.

    My book does not mount. I get "Can not mount" errors.

    At the command line the ls code returns.

    cdrom cdrom0 cdrom 1

    no disk.. =(

    I'll keep looking but I just wanted to post in case someone had a quick answer..

    Thanks in advance.

  7. #7
    Join Date
    Sep 2006
    Beans
    20

    Re: how to go in external hard drive with terminal

    I don't know what the issue could be. Other people (see [ubuntu] Western Digital My Book Studio Edition II w/8.04.1) can use the drive without any problems.

    Other readers: think it's worth trying to manually mount it through the address in /etc/mtab? It might give some useful error messages...

  8. #8
    Join Date
    Oct 2007
    Location
    United States
    Beans
    182
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: how to go in external hard drive with terminal

    If it is mounted, a nice gui way to find information that is of use on the command like is 'gnome-system-monitor'. Run it from a terminal by typing 'gnome-system-monitor'. The 4th tab in the window that will come up is "file systems". Under file systems, a simple observation is to find the hard drive with the "Total" equal to the size of your disk. "Directory" will tell you where it is mounted.

    from there you can just "cd <DIRECTORY>"

    If it isn't mounted, that's another issue, but if you can get to it in nautilus, this helps me.
    If all else fails, read the documentation. There's nothing sissy about a MAN page.

  9. #9
    Join Date
    Nov 2005
    Beans
    79
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: how to go in external hard drive with terminal

    external you mean USB? if it's mounted it will show up under Places > Removable Media (or just select Computer) In here you will see all your media on the left column. If your drive do not have a orange usb icon on top of them, then they are not mounted yet. Clicking on it will mount it, and might even popup a browser window.

    then go back to the command line, cd /media/nameofdrive, ls etc. YOu can check if the drive is available by typing df -h .

    If not:
    otherwise check dmesg for the device name, /dev/sdb1 in my case for example.

    If you see it in dmesg but not in df, then run the mount command, but first make a place to mount it to:
    sudo mkdir /media/mydrivename

    then mount your drive to this location:
    sudo mount -t vfat /dev/sdb1 /media/mydrivename

    now try in terminal cd /media/mydrivename and ls etc.

    If you want to unmount just use this command and make sure you are not in the directory or have any shell sitting in the /media/mydrivename directory
    sudo umount /media/mydrivename

    I get this error from time to time, but the gui always mounts for me and also convienently also allows me to unmount the media (by clicking the eject icon next to the media in the GUI)

    It's rare I have to go to the command line for every step but those are the steps.

    In theory, there's no difference between theory and practice, but in practice there is.

  10. #10
    Join Date
    May 2009
    Location
    UK
    Beans
    2

    Re: how to go in external hard drive with terminal

    Is the external device large enough to hold the files extracted?

Page 1 of 2 12 LastLast

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
  •