LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't copy from cdrom (https://www.linuxquestions.org/questions/linux-newbie-8/cant-copy-from-cdrom-442271/)

Goalswish 05-06-2006 02:53 PM

Can't copy from cdrom
 
Hello, I am Extremly new to Linux I am using SUSE 9

Logged in as regular user and can not copy from /media/cdrom/

I want to copy a directory and all its files but it won't let me here's what I'm trying

cp /media/cdrom/utils /home/goalswish/utils

I think it may be permission related
I get the message
cp: omitting directory '/media/cdrom/utils'

I realy am stumped
Thanks to anyone who can help.

Gogul 05-06-2006 04:01 PM

It may be possible that you need to change the user permissions to enable you do this.

Try logging on as root first typing "su" at command line then your root password and copy the files

I remember having a similar problem with Vector Linux myself

Goalswish 05-06-2006 04:10 PM

mkdir
 
thanks yes it works in root,I still can not make directories
example of what i'm typing
mkdir /fun/time
any ideas?


Thank You

ioerror 05-06-2006 05:05 PM

Quote:

cp: omitting directory '/media/cdrom/utils'
cp will not copy directories recursively by default, you need the -r option. Also, you don't need to specify the destination 'utils' directory as cp will use the existing name anyway (but it doesn't hurt). Thus, this should do what you want:

Code:

cp -r /media/cdrom/utils /home/goalswish
Quote:

mkdir /fun/time
Does /fun exist? mkdir will only create the last directory, any parent directories must exist already. If you want to create multiple subdirectories at once, you can use the -p flag, e.g.

Code:

mkdir -p /fun/time
Of course, you will need to be root to create a directory immediately under /.

Goalswish 05-06-2006 09:28 PM

Thanks

This helps alot, using the -r helped.


All times are GMT -5. The time now is 04:07 AM.