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
cp can not access HIEUNK Shell Programming and Scripting 5 04-26-2008 10:46 AM
ssh access mm00123 SUN Solaris 8 08-30-2007 04:12 AM
FTP Access sehgalniraj UNIX for Dummies Questions & Answers 3 08-26-2005 05:39 PM
cp: cannot access nguda Shell Programming and Scripting 4 11-07-2003 05:52 PM
Need help to access/mount so to access folder/files on a Remote System using Linux OS S.Vishwanath UNIX for Dummies Questions & Answers 2 07-30-2001 08:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-20-2005
sam71 sam71 is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 25
How to access CD

Hi,

I have to apply service pack from cd. so i have to copy some file from cd to linux directory. Can any body help me what command to use access from cd and copy file.

Thanks

sam71
  #2 (permalink)  
Old 07-20-2005
piltrafa's Avatar
piltrafa piltrafa is offline
Registered User
  
 

Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 77
First, you will have to know if the cd is already mounted.
If so, you should check /mnt/cdrom or /media/cdrom, depending the linux distro.

If it's not mounted at all, you have to know the dev entry of your cd-rom:

eg: /dev/hdc


then do a "mount -t iso9660 /dev/hdc /mnt/cdrom " /mnt/cdrom should be any directory in your disk. (empty, of course).

hope it works!
  #3 (permalink)  
Old 07-20-2005
becket's Avatar
becket becket is offline
Registered User
  
 

Join Date: Jul 2005
Location: Liege / Belgium
Posts: 36
for drive in /proc/ide/hd?
do
if [ $( cat $drive/media ) == cdrom ]
then
echo $( basename $drive ) is a cdrom
mkdir -p /mnt/$( basemane $drive )
mount -t iso9660 /dev/$( basename $drive ) /mnt/$( basename $drive )
echo $( basename $drive ) is mount on /mnt/$( basename $drive )
fi
done
Sponsored Links
Closed Thread

Bookmarks

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:29 AM.


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