Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    3

    Angry 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

  2. #2
    Just Joined! VanHalenMan's Avatar
    Join Date
    Aug 2008
    Posts
    49
    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

  3. #3
    oz
    oz is online now
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by jbduvall View Post
    note: trying to learn how to do tasks via command structure as I want to become RHCSA in the future.....i am newbie
    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.

  4. #4
    Just 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

  5. #5
    TSR
    TSR is offline
    Just 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

Posting Permissions

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