LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-25-2005, 06:11 PM   #1
byz78
LQ Newbie
 
Registered: Aug 2005
Location: Springfield, Missouri
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
A really dumb question about copying files...


I'm pretty new to Linux, and I have a question that is probably pretty rudimentary, but I can't find the answer anywhere.

I am trying to copy some files on my main bootable partition to a logical partition I created. They are just backup files that I save when I have to reformat my computer. This partition is on another hard drive. Basically, I need to copy them from /home/myname/Desktop to /dev/hdb5. How do I do this?

Thank you.
 
Old 08-25-2005, 06:20 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
where is hdb5 mounted?

to copy all you do is
cp /home/myname/Desktop/<whatever file> /<where>/<hdb5>/<is mounted>

Last edited by bosewicht; 08-25-2005 at 06:22 PM.
 
Old 08-25-2005, 06:22 PM   #3
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
the man page can tell you the switches you can use also............
Code:
man cp
http://man.linuxquestions.org/?query...ction=0&type=2

example:..........
Code:
cp -Rav /LFS /home/LFS_backup
I used this to back up my newly made LFS partition.........I used the -Rav switches to keep the permissions/attributes/path_structure unchanged from how it was built......

Last edited by freakyg; 08-25-2005 at 06:26 PM.
 
Old 08-25-2005, 07:15 PM   #4
byz78
LQ Newbie
 
Registered: Aug 2005
Location: Springfield, Missouri
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
I guess that's part of the problem. I don't know where /dev/hdb5 is mounted. How do I find that out?
 
Old 08-25-2005, 07:55 PM   #5
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
well, is it a partition you are currently using?

To list mounted partitions:
$ df -h
To list all partitions:
$ cat /proc/partitions

if it isn't mounted, you need to take a look at /etc/fstab and see if there is something in there for it.



Last edited by bosewicht; 08-25-2005 at 07:56 PM.
 
  


Reply



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
need help with copying files Earl Parker II Linux - General 8 09-12-2005 08:54 AM
question on copying files alexchannell Linux - Software 6 08-07-2004 04:14 PM
Here is a dumb question. How do I implement .bin files? beatupbilly Linux - Newbie 2 01-07-2004 10:46 AM
copying files Sol0 Linux - Software 7 08-18-2003 10:40 AM
Copying Files... viperquest Linux - Software 3 03-07-2003 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 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
Open Source Consulting | Domain Registration