Results 1 to 5 of 5
first- i tried, and read, and tried and read
note: trying to learn how to do tasks via command structure as I want to become RHCSA in the future.....i am ...
- 12-04-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 3
cp command help!
first- i tried, and read, and tried and read
note: trying to learn how to do tasks via command structure as I want to become RHCSA in the future.....i am newbie
problem: i am trying to copy from (Ubuntu) a driver folder from a CD to another partition so that I can access the internet on CentOS .( which is the OS on another partition on my HD)
i have done this so far:
mkdir /disk1
mount /dev/sda1 /disk1
if i do
df -k
i can see the other drive ( the one with Centos)
now i did this after putting in cd and finding the file
$ cp /media/G71-MAD1015/Network/Atheros/8131 /dev/sda1/
and i get " accessing ..... not a directory"
then i added /root/home/Desktop
and got same response
I am confused
- 12-04-2010 #2
You are getting the 'not a directory' error because /dev/sda1 is a device not a directory.
Looks like you mounted /dev/sda1 to /disk1 so /disk1 is the directory to which you should copy:Code:$ cp /media/G71-MAD1015/Network/Atheros/8131 /disk1
- 12-04-2010 #3forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,099
Hello and welcome to the forums!
Once you get past this issue, and if you haven't done so already, check out LinuxCommand.org for some quick and easy lessons on learning the command line under Linux. It should help you to achieve your goal.
Let us know how you are progressing with it.oz
→ new members/users: read this first | new member faq
→ no private messages requesting computer support - post them on the forums!
→ please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.
- 12-04-2010 #4Just Joined!
- Join Date
- Nov 2010
- Posts
- 3
thank you,
it worked!! but I have encountered more problems... i will see if i can navigate my way through it!
goal is to get ndiswrapper to work so i can access internet, but apparently ndiswrapper needs internet to access mirrors!
haha
- 12-06-2010 #5Just Joined!
- Join Date
- Dec 2010
- Posts
- 3
Hi .../dev/sda is partition.
keep in mind..everytime u do a copy
CP "source" to"destination" for file
CP -R "source" to destination for a directory
source===media
destination==disk1
cp -r /media/....path... /disk1


Reply With Quote
