The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 08:58 AM
Script that can Copy a Range of files from Tape to Hard disk msjazzie Shell Programming and Scripting 0 08-13-2007 03:47 PM
Automatic Copy of File Contents to Clipboard ilak1008 Shell Programming and Scripting 5 10-10-2006 11:43 AM
Copy selected contents from file misenkiser Shell Programming and Scripting 4 10-05-2006 11:12 AM
copy folder contents robsk8_99 UNIX for Dummies Questions & Answers 1 02-22-2005 06:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-01-2003
vr76413 vr76413 is offline
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
  #2 (permalink)  
Old 07-01-2003
WIntellect's Avatar
WIntellect WIntellect is offline
Registered User
  
 

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

cp <location/of/file> <destination/of/file>
  #3 (permalink)  
Old 07-01-2003
vr76413 vr76413 is offline
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 (permalink)  
Old 07-01-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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 (permalink)  
Old 07-06-2003
norsk hedensk norsk hedensk is offline Forum Advisor  
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 11:02 AM..
Closed Thread

Bookmarks

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0