Mount CDROM in CENTOS? Hassle?
What a hassle finding the CD ROM device in Centos. The new release of Centos putting CD ROM device at /dev/sr0. Let look at the below, then you will know what is going on.
[root@localhost proc]# find /dev -name cdrom
/dev/cdrom
/dev/.udev/links/cdrom
[root@localhost proc]# ls -al /dev/cdrom
lrwxrwxrwx. 1 root root 3 May 9 13:46 /dev/cdrom -> sr0
[root@localhost proc]# ls -al /dev/| grep sr0
lrwxrwxrwx. 1 root root 3 May 9 13:46 cdrom -> sr0
lrwxrwxrwx. 1 root root 3 May 9 13:46 dvd -> sr0
lrwxrwxrwx. 1 root root 3 May 9 13:46 scd0 -> sr0
brw-rw----. 1 root cdrom 11, 0 May 9 13:46 sr0
[root@localhost proc]# mount -r -t iso9660 /dev/sr0 /mnt
[root@localhost proc]# cd /mnt/
[root@localhost mnt]# ls -al
total 685
dr-xr-xr-x. 7 root root 4096 Mar 5 10:33 .
dr-xr-xr-x. 22 root root 4096 May 9 13:44 ..
-r--r--r--. 2 root root 14 Mar 5 10:28 CentOS_BuildTag
-r--r--r--. 1 root root 31 Mar 5 10:31 .discinfo
dr-xr-xr-x. 3 root root 2048 Mar 4 17:05 EFI
-r--r--r--. 2 root root 212 Mar 2 09:46 EULA
-r--r--r--. 2 root root 18009 Mar 2 09:46 GPL
dr-xr-xr-x. 3 root root 2048 Mar 4 17:05 images
dr-xr-xr-x. 2 root root 2048 Mar 4 17:05 isolinux
dr-xr-xr-x. 2 root root 649216 Mar 5 10:31 Packages
-r--r--r--. 2 root root 1354 Mar 2 09:45 RELEASE-NOTES-en-US.html
dr-xr-xr-x. 2 root root 4096 Mar 5 10:33 repodata
-r--r--r--. 2 root root 1706 Mar 2 09:46 RPM-GPG-KEY-CentOS-6
-r--r--r--. 2 root root 1730 Mar 2 09:46 RPM-GPG-KEY-CentOS-Debug-6
-r--r--r--. 2 root root 1730 Mar 2 09:46 RPM-GPG-KEY-CentOS-Security-6
-r--r--r--. 2 root root 1734 Mar 2 09:46 RPM-GPG-KEY-CentOS-Testing-6
-r--r--r--. 1 root root 3380 Mar 5 10:33 TRANS.TBL
-r--r--r--. 1 root root 338 Mar 5 10:33 .treeinfo
Voila, I am done. Next remember, you can source for /dev/sr0. For me, this is something new.
No comments:
Post a Comment