Find the answer to your Linux question:
Results 1 to 7 of 7
Experts out there, I am a newbie who recently get my hands on a ubuntu unit. This is my first interface with a linux os. I have a blade server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3

    How to copy files from usb in ubuntu os?


    Experts out there,

    I am a newbie who recently get my hands on a ubuntu unit. This is my first interface with a linux os. I have a blade server here with ubuntu 8.04 os. I would like to copy some files to this blade unit but i am not able to do so as i cannot seem to copy the desired files from the os?

    Other than usb copy, ftp does not work. What other methods can i copy files (from windows) to ubuntu?

    Please kindly advice me.

    Thank you very much.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    The easiest way would probably be SCP, you can download a program called winscp which provides a GUI for transferring files, but the server has to be running SSH.

  3. #3
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I'm not clear on what exactly you're doing.

    You want to copy files from a USB drive to the hard drive?

    What have you tried? Where does it fail? Are there error messages? What sort of files are these?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3
    Hi there,

    I have connect my usb drive to the blade server and accessed /dev/disk/by-label for which i can see my usb drive name vish SSH. However, i am not able to access the usb contents at all which i intend to copy to the local drive in the blade unit.

    Here is an illustration:

    root:/dev/disk/by-label# ls
    MYUSBdrive
    root:/dev/disk/by-label# cd MYUSBdrive
    bash: cd: MYUSBdrive: Not a directory

    From youtube, there seems to have a GUI application that will allow user to add and eject the usb drive. But i am not sure how this can apply here.

    Thank you very much.

  6. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You need to mount the drive first.

    Code:
    sudo mkdir /mnt/MYUSBdrive
    sudo mount -t vfat /dev/sd(x) /mnt/MYUSBdrive
    Where /dev/sd(x) is the /dev name of your USB. You can generally find that with
    Code:
    sudo fdisk -l
    Also the -t vfat assumes the drive is formatted as FAT/FAT32.

  7. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Oh, I should add.

    You should unmount the drive before removing
    Code:
    sudo umount /mnt/MYUSBdrive
    And to be clear, once it's mounted, /mnt/MYUSBdrive would be the directory you would cd into.
    Code:
    cd /mnt/MYUSBdrive

  8. #7
    Just Joined!
    Join Date
    Dec 2009
    Posts
    3
    Quote Originally Posted by reed9 View Post
    You need to mount the drive first.

    Code:
    sudo mkdir /mnt/MYUSBdrive
    sudo mount -t vfat /dev/sd(x) /mnt/MYUSBdrive
    Where /dev/sd(x) is the /dev name of your USB. You can generally find that with
    Code:
    sudo fdisk -l
    Also the -t vfat assumes the drive is formatted as FAT/FAT32.
    Hi guru reed9,

    Yes, my usb drive is fat32 format.

    Thanks for the information.

    I will check it out.


Posting Permissions

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