Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to copy a file from cd in linux

Status
Not open for further replies.

dgc813

MIS
Jul 7, 2004
7
US
I have a file on a cd I need to copy to the hard drive and do not know how to do it.
 
by gui or command line?
wich linux?



M. Knorr

MCSE, MCTS, MCSA, CCNA
 
When you put the CD in, does it auto mount or do you need to do that manually?
 
this should work in any variant of linux.

from the command line su to root.
then;
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom -- this might be /dev/cdrom0 or cdrom1 etc.
cd /mnt/cdrom
cp <fileName> <toDestination>
 
I can't recall right now (I'm at work and w/o my Linux PC) but I think Ubuntu has the CD in /media/cdrom (not /dev/cdrom).

_________________
Bob Rashkin
 
FYI, [blue]/dev/cdrom[/blue] is the device and [green]/media/cdrom[/green] is the mount point, two different areas of the filesystem. Most recent *nix desktops use /media/{device} as automatic mount points for onboard devices.

[pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top