The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
copy contents of one column in another raman1605 Shell Programming and Scripting 4 05-12-2008 05:58 AM
Script that can Copy a Range of files from Tape to Hard disk msjazzie Shell Programming and Scripting 0 08-13-2007 12:47 PM
Automatic Copy of File Contents to Clipboard ilak1008 Shell Programming and Scripting 5 10-10-2006 08:43 AM
Copy selected contents from file misenkiser Shell Programming and Scripting 4 10-05-2006 08:12 AM
copy folder contents robsk8_99 UNIX for Dummies Questions & Answers 1 02-22-2005 03:54 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-01-2003
Registered User
 

Join Date: Jul 2003
Posts: 19
How to Copy Contents from CD to Hard disk

Hello all..

Iam New to Unix Environment. I need to copy .cpio file from CD to a Folder on Sun 5.8 Box.

Can anyone give me the commands to execute this ?..

Thanks in advance
Ron
Forum Sponsor
  #2  
Old 07-01-2003
WIntellect's Avatar
Registered User
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
mount the cd then

cp <location/of/file> <destination/of/file>
__________________
FreeBSD - Opening computers from closed Windows
  #3  
Old 07-01-2003
Registered User
 

Join Date: Jul 2003
Posts: 19
How to tell the Location of the File ?...

In PC's, we say like d:\ .....

What is the equalent command on Unix ?...

thanks
Ron
  #4  
Old 07-01-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
On unix when you mount a disk, you specify a mount point. For example, if I mount /dev/md/dsk/d6 on /opt, then the files would all be under /opt.

Cdrom's under SunOS are usually handled by the volume manager. By default the volume manager will mount under /cdrom/<something> where <something> is a string that it got from the cd.

Try the command:
df -k
and see if you see anything with a "cdrom" in it.
  #5  
Old 07-05-2003
Registered User
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
somethign that migrants from windows to (unix
)'s might find confusing is the concept of one single file system hierarchy ( dont mind the spelling, its late). the different drives in windows, C: D: E:, etc etc, is a mistake left over from something never fixed in earlier versions of DOS. DOS has a merge command that will put and E: drive in a C:\somefolder\E which is similar to the UNIX filesystem. every single device in UNIX, be it the monitor or hardrive in unix will be located in the /dev/ directory. so lets say the first IDE drive which would have been C: in windows is mounted as /. this drive is really /dev/hda. probably /dev/hda2 and /dev/hda1 is the boot partition. anyway, if you wanted to copy a file from a cdrom, well, if I wanted to, i would put it in my home directory. so after executing the command mount /dev/cdrom (that should be in your /etc/fstab for convienience) i would execute, cp /cdrom/myfile /home/user1/myfile
the file located on your cdrom would then be copied to user1's home directory as 'myfile'. i hope that was clear and understandable. i just re read that and it looks alright. i will read it again and fix anything that dosnt make any sense tomorrow. hope that helped!

Last edited by norsk hedensk; 07-06-2003 at 08:02 AM.
Google The UNIX and Linux Forums
Closed Thread

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0