how to amount CD and see its contents in command line


 
Thread Tools Search this Thread
Operating Systems HP-UX how to amount CD and see its contents in command line
# 1  
Old 05-08-2006
how to amount CD and see its contents in command line

if I insert the CD in HP Unix 11 how can I amount it and see its contents using command line ??? Smilie Smilie Smilie
# 2  
Old 05-08-2006
MySQL Re:

Try
#mount -F cdfs /dev/dsk/c#t#d# /cdrom

Also see these links.
http://docs.hp.com/en/B3921-90010/mount.1M.html
http://docs.hp.com/en/B3921-90010/mount_cdfs.1M.html

Cheers,

Awadhesh
# 3  
Old 05-08-2006
You would mount the CD-ROM as showed by Awadhesh
(but usually you may omit specifying the filesystem)
The only tricky part is to know the device file of your CD-ROM drive.
ioscan could show you
(you may omit the pipe to more if you have only few disks attached to your box)

# ioscan -knfCdisk | more

Usually the CD drive will appear at the beginning of the ioscan dump.
Read the block device and use it in the mount command.

If you mount an HP-UX application CD there will be usually an ASCII file called
CD_TABLE_OF_CONTENTS
which lists all the programs on the CD set along with their depot specifyer,
a short description, and probably most important on which CD it is on.
Then you will have to
# umount /cdrom
(note, cd / if you get device busy)
and repeat the mount after having inserted the right CD.
Note the CD tray will be locked as long as the CD is mounted.
So to open it you need to first umount the CD.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to make awk command faster for large amount of data?

I have nginx web server logs with all requests that were made and I'm filtering them by date and time. Each line has the following structure: 127.0.0.1 - xyz.com GET 123.ts HTTP/1.1 (200) 0.000 s 3182 CoreMedia/1.0.0.15F79 (iPhone; U; CPU OS 11_4 like Mac OS X; pt_br) These text files are... (21 Replies)
Discussion started by: brenoasrm
21 Replies

2. Shell Programming and Scripting

Run a command for specific amount of time with an auto key press

Hi, I have been trying to do a small fun project for myself. I want to run a command for 45 seconds. And to get the final output of this command, the script requires I push the "q" key on my keyboard and then the final output file becomes available. I tried the following script. But it... (12 Replies)
Discussion started by: jacobs.smith
12 Replies

3. Shell Programming and Scripting

how to read the contents of two files line by line and compare the line by line?

Hi All, I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Discussion started by: mjavalkar
4 Replies

4. Shell Programming and Scripting

Getting contents of line using a selected one as reference

How do you get the contents of a line directly after a selected one? Also, how about before it? I am using CSH and don't have any GNU products installed. Input file: apple orange plum So say I use grep on orange...how do I get plum (this line can be different so I can't just grep... (4 Replies)
Discussion started by: thibodc
4 Replies

5. Shell Programming and Scripting

using sed command to display contents where line numbers are stored in variables

if i want to display the contents of a file between say line number 3 and 10 then i use the following command sed -n '3,10p' filename if this 3 was contained in x and 10 was contained in y then how wud this command modified? sed -n '$x,$yp' filename does not work..please advise (2 Replies)
Discussion started by: arindamlive
2 Replies

6. UNIX for Dummies Questions & Answers

How to read contents of a file from a given line number upto line number again specified by user

Hello Everyone. I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below: if ; then if ; then tail +$1 $3 | head -n $2 else ... (5 Replies)
Discussion started by: grc
5 Replies

7. Shell Programming and Scripting

Script to change file contents line by line

Hi, I'm struggling to write a script to do the following, -will go through each line in the file -in a specific character positions, changes the value to a new value -These character positions are fixed througout the file ----------------------- e.g.: file1.sh will have the following 3... (4 Replies)
Discussion started by: vini99
4 Replies

8. UNIX for Dummies Questions & Answers

read contents of a line

How to read the contents of a file line by line the command line returns only one line from the file. (2 Replies)
Discussion started by: sethunath
2 Replies

9. Shell Programming and Scripting

how to echo the file contents LINE BY LINE

hello, i have a listing (let say ABC) consists of the below: : public database link public synonym role rollback segment : when i run the below for loop, for i in `more ABC` do echo "$i" done it gives me, : public database (4 Replies)
Discussion started by: newbie168
4 Replies

10. UNIX for Dummies Questions & Answers

delete contents from command line

How might I delete the contents of a file from the command line? (not delete the file) (4 Replies)
Discussion started by: juanbro
4 Replies
Login or Register to Ask a Question