How to Copy Contents from CD to Hard disk


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to Copy Contents from CD to Hard disk
# 1  
Old 07-01-2003
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  
Old 07-01-2003
mount the cd then

cp <location/of/file> <destination/of/file>
# 3  
Old 07-01-2003
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
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-06-2003
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 12:02 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Use 'dd' to copy boot disk to larger target disk

Hi, I'm looking to copy a boot disk on an old Solaris 8 system using dd. I'll bring the system down to single user mode and begin from there. I'm copying my source disk to a larger target disk. Do I need to do anything other than the 'dd' command below because the target disk is bigger? ... (2 Replies)
Discussion started by: sparcman
2 Replies

2. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

3. SCO

declare disk driver for IDE hard disk

hi I've a fresh installation of SCO 5.0.7 on the IDE hard disk. For SCSI hard disk I can declare, for example blc disk driver using: # mkdev hd 0 SCSI-0 0 blc 0but it works for IDE hard disk? (3 Replies)
Discussion started by: ccc
3 Replies

4. UNIX for Dummies Questions & Answers

What is in-core copy and disk-copy of i-node table?

I have found a question from the exercises of my study mat. The question is "Why are there a in-core copy and a disk-copy of i-node block and super block?" If any one know the proper answer then please send me..... (1 Reply)
Discussion started by: dearanik
1 Replies

5. SCO

Make a Copy Entire Hard Disk

Dear All, I have a standalone desktop with SCO Openserver V 5, this is used to control a machine with custom written software. The problem is that the machine manufacturer has closed shop (bankruptcy) and there is no support on software. As a precaution I would want to make a complete backup of... (3 Replies)
Discussion started by: iqbal_siddiqui
3 Replies

6. Filesystems, Disks and Memory

Erasing hard disk contents using dd or dcfldd

Hi, I am writing a script to wipe my hard disk, in a relatively secure manner by over-writing the disk with 3 patterns. So, I run the dd/dcfldd command 3 times with a sync call in between each command call in the script. #!/bin/sh dcfldd pattern=99 conv=notrunc of=/dev/sda sync dcfldd... (7 Replies)
Discussion started by: jake24
7 Replies

7. UNIX for Dummies Questions & Answers

Hard Disk at 99% Help!

:eek: I use this Solaris to run CMS a call acounting software package for my job. No one could run reports today because it said the this when you logged on "The following file systems are low, and could adversely affect server performance: File system /: 99%full" Can some one please explain... (9 Replies)
Discussion started by: mannyisme
9 Replies

8. Solaris

how to reformat a hard disk

hi i need help on how to reformat a hard disk. what should i do since i don't have any bootable disk. i'm using solaris 1 & 2 and also need to make a backup copy of the current hard disk. appreciate all the help i can get... (14 Replies)
Discussion started by: mr_balodoy
14 Replies

9. Shell Programming and Scripting

Script that can Copy a Range of files from Tape to Hard disk

Hi: I am a trying to write a script using a loop i guess. What I need to do is write a script that can allow my users to load a tape and copy a range of files from a tape to the hard disk. By range I mean, I would like the users to pick a range of numbers like files 3 - 8 and the script will... (0 Replies)
Discussion started by: msjazzie
0 Replies

10. UNIX Desktop Questions & Answers

Hard Disk

I have a cuestion. How Can I to add other hard disk to my computer? I need to configurate anyone? (4 Replies)
Discussion started by: hmaraver
4 Replies
Login or Register to Ask a Question