LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-27-2008, 05:12 PM   #1
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Rep: Reputation: 0
want to copy file onto my comuter


I have a txt file on a usb stick that I would like to put onto my computer that has Linux Fedoroa installed. Would someone please explain to me how I can get the file off the stick and onto my computer. I have no experience with command lines.

thanks
 
Old 03-27-2008, 05:26 PM   #2
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
If your are using Fedora 8, just click on the Computer icon on the desktop, then on storage media, and our usb stick should be show as an icon. Just click on that and it will be mounted and you should see the files. Then just drag and drop whereever you want to put it.

No need to do it from the command line (though that is possible too.)

Hope this helps

Bob
 
Old 03-27-2008, 05:32 PM   #3
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I think I only have a shell command line. I dont have a desktop.
 
Old 03-27-2008, 05:33 PM   #4
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I am using Fedora 7
 
Old 03-27-2008, 05:42 PM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Type this into your command line:

Code:
ls -l /dev/disk/by-id
Also

Code:
lsusb
and post the results back
 
Old 03-27-2008, 05:46 PM   #6
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Original Poster
Rep: Reputation: 0
When I type the first code I get the message "cannot access, no such file or directory"

When I type lsusb I get the message "Bus 001 Device 001: ID 0000:0000
 
Old 03-27-2008, 06:03 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How recent is the hardware, what make and model is the motherboard?



Cheers,
Tink
 
Old 03-27-2008, 06:06 PM   #8
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Original Poster
Rep: Reputation: 0
the computer is a Compaq and I think it is old. I dont know about the motherboard
 
Old 03-27-2008, 06:09 PM   #9
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
OK type this into the command line:

Code:
fdisk -l
and post the results.

You see, if your working from the command line, you will need to identify how the system is recognizing the device. It will be sda or sdb (possibly with a number after the sda or sdb). It must then be "mounted" to a mount point. So, once it is identified, the typical command would be something like:

mount -t /dev/sda vfat /mnt/ (not the exact command, but an example)

I will give you the exact command when you post back the results of the above command.

Bob
 
Old 03-27-2008, 06:15 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
And "df -hT" while you are there.
 
Old 03-27-2008, 06:16 PM   #11
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I did it and here are the results:

disk /dev/sda


Device Boot
/dev/sda1
 
Old 03-27-2008, 06:35 PM   #12
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
OK, based on your last post, it looks like the usb device is /dev/sda1.
Your hard drive in the computer is /dev/sda.

Try this command:

Code:
mount /dev/sda1 /mnt
If you get an error that says "cannot mount to /mnt; no such directory",

then type:

Code:
mkdir /mnt
and run the mount command again. if you get no error, the type:

Code:
cd /mnt/sda1
then type #:

Code:
ls
At this point you should see the file your are looking for. You can then copy it to whereever you want with the following:

Code:
cp yourfile.txt /home/me
You will then have your file copied to your computer.

Hope this helps

Bob
 
Old 03-27-2008, 06:46 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by BobNutfield View Post
OK, based on your last post, it looks like the usb device is /dev/sda1.
Your hard drive in the computer is /dev/sda.
Ummm ... sorry, but if /dev/sda is the internal HDD
then /dev/sda1 is the first partition on it.

No two physical units will share the same name.



Cheers,
Tink
 
Old 03-27-2008, 06:54 PM   #14
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,477

Rep: Reputation: 51
Ooops..... You are very right, Tinkster. Should have paid better attention. Whenever I need to determine the id of a usb df -h is all I have needed to determine what I needed.

steffmark: Please note this that Tinkster has corrected me on. Please post the EXACT results of

df -h
 
Old 03-27-2008, 07:05 PM   #15
steffmark
LQ Newbie
 
Registered: Mar 2008
Posts: 15

Original Poster
Rep: Reputation: 0
I ran df -h and here are results:

Size Used Avail Use Mounted on
/dev/ida/c0d0p3 131G 1.4G 123G 2% /
/dev/ida/c0d0p1 97M 23M 69M 25% /boot
tmpfs 252M 0 252M 0% /dev/shm
 
  


Reply


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
squirrel Could not move/copy file. File not attached mrlinux2000 Linux - Software 4 05-24-2010 04:41 AM
Accessing my grandma's comuter remotely BlahBlah_X Linux - Networking 3 10-07-2007 12:31 AM
Copy File While File is Creating in Disk suhas7860 Linux - General 4 04-03-2007 09:38 AM
copy vid tape to file and burn file to DVD jim mann Linux - Software 4 01-24-2006 10:57 PM
Is arrangement of file systems will differ if we copy a file from FAT 32 to ext 3 ? anindyanuri Linux - Software 2 02-20-2005 12:39 PM


All times are GMT -5. The time now is 07:57 PM.

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