How to copy files from CD-ROM to hard disk?

电灯泡 2010-12-02 01:29:53
hi all,
My OS is RHEL5.5 with graphics. I just insert music cd into cd drive, I am sure the system has identified the cd, and I have already listened to the music. Curiously, when I enter command "df", the screen just displays /, /boot,/dev/shm without /cdrom. Could you tell me why? How to mount CD-Rom? Personally thinking, for redhat text mode, we need manually mount cd-rom, for redhat graphics mode, we don't need. Am I right for this view?

ps:sorry about above context, I don't have chinese input method.
...全文
243 24 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
24 条回复
切换为时间正序
请发表友善的回复…
发表回复
电灯泡 2010-12-07
  • 打赏
  • 举报
回复
[Quote=引用 23 楼 lvqqrainbow 的回复:]

首先输入mount命令看下你的cdrom是否挂载,如果没有,就
mount -o loop /dev/cdrom /mnt
这样应该可以拷贝。
[/Quote]
像光盘的挂载,以前试了一下,不用指定-t iso9660也可以挂载,为什么呢?什么时候要指定-t iso9660
lvqqrainbow 2010-12-06
  • 打赏
  • 举报
回复
首先输入mount命令看下你的cdrom是否挂载,如果没有,就
mount -o loop /dev/cdrom /mnt
这样应该可以拷贝。
电灯泡 2010-12-06
  • 打赏
  • 举报
回复
所以现在,非音乐光盘挂载并copy里面的文件,是可以的。但音乐光盘不行。咋办捏?
电灯泡 2010-12-06
  • 打赏
  • 举报
回复
[Quote=引用 13 楼 steptodream 的回复:]

既然你已经挂载了 看样子你也不知道挂载到哪儿的 那就这样
1.先umount
umount /dev/cdrom

2.再挂载
mount /dev/cdrom /media/

3.光盘已经挂载到/media/下了 去/media/下复制你要的文件到你需要的目录 比如复制到/home/user下
cp /media/some-file /home/user


这下明白了……
[/Quote]
谢谢主席详细的解答。我星期天下午又做了几次,发现了一些问题。如果拿一张一般的光碟(非音乐CD),照你的做法完全没问题,当然我也就不会发帖了。但我一旦插入音乐CD,就会有问题。
[root@kunxu ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
35613404 3214368 30560752 10% /
/dev/sda7 101054 12579 83258 14% /boot
tmpfs 1011272 0 1011272 0% /dev/shm
当我插入音乐CD后,命令“df”结果表明我还没有载入CD。ok,接下来,开始挂载:

[root@kunxu ~]# mount /dev/cdrom /media/guitarA/
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /media/guitarA/ busy
以上是音乐CD的显示结果,命令“df”和/meida/guitarA下面也没有任何结果,遂挂载失败。

如果此时我插入“非音乐CD”,那么不会出现第二条粗体提示,再通过"df"结果显示已经挂载成功。很奇怪,但我注意了一点,一旦插入音乐CD时,一个CD Player的播放器会自动的弹出来,而“非音乐CD”不会。这可能就是两者不一样的原因。
电灯泡 2010-12-06
  • 打赏
  • 举报
回复
[Quote=引用 16 楼 lin648446067 的回复:]

引用 9 楼 xukunddp 的回复:
引用 5 楼 steptodream 的回复:

#mount /dev/cdrom /media
#cp /media/somefile /your-path/


[root@kunxu media]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-pr……
[/Quote]
刚安装了语言包,可以输入中文了,对,是这个问题造成的busy
steptodream 2010-12-03
  • 打赏
  • 举报
回复
还有16楼说的 你既然要挂到/media下 你自己干嘛也要切换到/media下去?
steptodream 2010-12-03
  • 打赏
  • 举报
回复
[root@kunxu ~]# umount /dev/cdrom
umount: /dev/cdrom: not mounted
----------------
这说明你没有挂载而已 继续执行后续的命令即可。

我那个示范执行了umount /dev/cdrom 是怕/dev/cdrom已经挂载了 所以先卸载
但是如果没有挂载 执行卸载成功与不成功 结果都是/dev/cdrom没是没挂载?
继续进行就得了。

出来问题 自己动动脑子 多尝试。
电灯泡 2010-12-03
  • 打赏
  • 举报
回复
[Quote=引用 13 楼 steptodream 的回复:]

既然你已经挂载了 看样子你也不知道挂载到哪儿的 那就这样
1.先umount
umount /dev/cdrom

2.再挂载
mount /dev/cdrom /media/

3.光盘已经挂载到/media/下了 去/media/下复制你要的文件到你需要的目录 比如复制到/home/user下
cp /media/some-file /home/user


这下明白了……
[/Quote]

I know the mount process, but strange things always happened. When I am listening to the CD music,I enter the command to follow your step 1.

[root@kunxu ~]# umount /dev/cdrom
umount: /dev/cdrom: not mounted

Listening to the cd music that can illustrate I have mounted cd-rom, but when I use "umount /dev/cdrom" command, it shows "not mounted", could you tell me why?
lin648446067 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 xukunddp 的回复:]
引用 5 楼 steptodream 的回复:

#mount /dev/cdrom /media
#cp /media/somefile /your-path/


[root@kunxu media]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-protected, mounting read-……
[/Quote]
请你退出media目录,再挂载,你在media目录中,又把光盘挂载到这个目录下,当然显示/media busy
啊!
struggle1 2010-12-02
  • 打赏
  • 举报
回复
oh , no!
please, dont say english
李迟 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 xukunddp 的回复:]
引用 2 楼 subfate 的回复:

Some linux system can auto mount CD-ROM, but some cannot.

try this cmd:
#mount /dev/cdrom /home/yourhome/path.(in my system, /dev/cdrom)


I've entered the command you ad……
[/Quote]
/home/quinton is you home!

you can mount cdrom to /mnt or other dir.
or just follow zhuxi。
steptodream 2010-12-02
  • 打赏
  • 举报
回复
既然你已经挂载了 看样子你也不知道挂载到哪儿的 那就这样
1.先umount
umount /dev/cdrom

2.再挂载
mount /dev/cdrom /media/

3.光盘已经挂载到/media/下了 去/media/下复制你要的文件到你需要的目录 比如复制到/home/user下
cp /media/some-file /home/user


这下明白了没有 好 我们来示范一遍
[root@rhel6 ~]# umount /dev/cdrom <------先umount
[root@rhel6 ~]# mount /dev/cdrom /media/ <------挂载
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@rhel6 ~]# ls /media/ <--------看看/media/下 看吧 光盘里的文件都在这里吧!
EULA RELEASE-NOTES-es-ES.html RELEASE-NOTES-ru-RU.html
GPL RELEASE-NOTES-fr-FR.html RELEASE-NOTES-si-LK.html
HighAvailability RELEASE-NOTES-gu-IN.html RELEASE-NOTES-ta-IN.html
images RELEASE-NOTES-hi-IN.html RELEASE-NOTES-te-IN.html
isolinux RELEASE-NOTES-it-IT.html RELEASE-NOTES-zh-CN.html
LoadBalancer RELEASE-NOTES-ja-JP.html RELEASE-NOTES-zh-TW.html
media.repo RELEASE-NOTES-kn-IN.html repodata
Packages RELEASE-NOTES-ko-KR.html ResilientStorage
README RELEASE-NOTES-ml-IN.html RPM-GPG-KEY-redhat-beta
RELEASE-NOTES-as-IN.html RELEASE-NOTES-mr-IN.html RPM-GPG-KEY-redhat-release
RELEASE-NOTES-bn-IN.html RELEASE-NOTES-or-IN.html Server
RELEASE-NOTES-de-DE.html RELEASE-NOTES-pa-IN.html TRANS.TBL
RELEASE-NOTES-en-US.html RELEASE-NOTES-pt-BR.html


另外 挂载是只读模式很正常 因为你光驱不一定是可以擦除并刻录的 那光盘也不一定是可以多次读写的
而且你只是把光盘的文件复制出来而已 只读模式又何妨?
steptodream 2010-12-02
  • 打赏
  • 举报
回复
[root@kunxu media]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-protected, mounting read-only
------------
说明已经被只读方式挂载了
现在已经可以从里面复制文件出来了 你还想怎样?
freetstar 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 xukunddp 的回复:]

引用 5 楼 steptodream 的回复:

#mount /dev/cdrom /media
#cp /media/somefile /your-path/


[root@kunxu media]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-protected, mounting rea……
[/Quote]
这不是已经提示你挂载上了,而且是写保护,你可以重新挂载一下
mount -o rw,remount /mnt/cdrom(或者是你之前写的挂载点)
freetstar 2010-12-02
  • 打赏
  • 举报
回复
mount /dev/cdrom /mn/cdrom 即可

电灯泡 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 steptodream 的回复:]

#mount /dev/cdrom /media
#cp /media/somefile /your-path/
[/Quote]

[root@kunxu media]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /media busy
电灯泡 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 hx04072210 的回复:]

frist I'm a linux ABC user ,I use command "df",the screen don't display /cdrom either,but i can mount the cdrom manually,so you should be right.
[/Quote]

Now I find my OS could be mounted automatically,but where is mount point?
电灯泡 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 subfate 的回复:]

Some linux system can auto mount CD-ROM, but some cannot.

try this cmd:
#mount /dev/cdrom /home/yourhome/path.(in my system, /dev/cdrom)
[/Quote]

I've entered the command you advised,relevant feedback is as follows:
[root@machine ~]# mount /dev/cdrom /home/quinton
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: /dev/cdrom already mounted or /home/quinton busy

From the information above, I can figure out that cd has been automatically mounted. Now that I intend to copy files from cd to my home directory. unfortunately, I can't find the mount point, both /media and /mnt haven't any sub-directories. So how to copy files from cd now?
Laputa_Island 2010-12-02
  • 打赏
  • 举报
回复
这个可以有,这个真没有,LS是的马甲,它已经回答你了,不就是copy个小文件嘛
steptodream 2010-12-02
  • 打赏
  • 举报
回复
#mount /dev/cdrom /media
#cp /media/somefile /your-path/
加载更多回复(4)

19,620

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧