Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-04-2007, 06:18 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
How to copy file from usb device to hard drive??????

Hi i new to linux here what i need to do it to transfer i file to my usb device to my hard drive all in commad im running on yellow dog...

if it mist some info ask me i do my best to answer so you be able to help me...

thk from some noob
Old 01-04-2007, 07:06 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
In order to do anything with your usb device (I assume you mean a USB Flash memory), you must first mount it in your linux filesystem. All the ones I've seen so far were formatted as FAT filesystems, so as root:
mount -t vfat /dev/sda1 /some/existing/directory
The descriptor for the USB stick is /dev/sdX, where X is 'a', 'b', 'c'.... If you already have a SATA or SCSI drive, it will be sdb, or sdc ( depending on the number of previously installed drives (ATA drives are designated as /dev/hdX). The designator for the partiton on the USB stick will almost certainly be '1', as I used in my example '/dev/sda1'. This would only change if the USB stick had multiple partitions, and if you wanted to use the second or higher partiton number. The mountpoint is any existing directory that you wish to mount the device at. A common practice is to create a '/mnt' directory, under which various specific mountpoints are created, such as '/mnt/cdrom', '/mnt/floppy', or '/mnt/usbstick'. You are free to use whatever mountpoint you see fit. Once mounted, the device can be read or written as if it was any other disk media.

--- rod.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To detect USB drive device file kr123 Programming 0 12-08-2005 12:01 AM
copy files from your hard drive to usb key with Knoppix ziegen Linux - Distributions 1 08-09-2004 01:06 PM
Copy A File Off A CD To The Hard Drive In Command Line nickae77 Linux - Newbie 4 05-21-2004 04:38 AM
slow file copy from linux onto USB device BeckerB Linux - General 9 04-19-2004 02:16 PM
External Hard Drive Device File?/?? indrid Linux - Hardware 2 03-16-2004 02:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration