LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   CentOS 5.1 does not find cdrom nor pendrive after installation (https://www.linuxquestions.org/questions/linux-distributions-5/centos-5-1-does-not-find-cdrom-nor-pendrive-after-installation-637819/)

Pastorino 04-25-2008 01:10 PM

CentOS 5.1 does not find cdrom nor pendrive after installation
 
Hi everyone,

I have been using Red Hat based distributions since RH 7.3. I always install the "base" installation, and then up2date/yum the packets I need for a particular server.

In CentOS 5.1, I perform the "base" installation by selecting only the following packet groups during installation:
  • Base System
    • Base
Well, in other distributions that I used, like Red Hat 7.3, Red Hat 9.0, Fedora Core 1, Fedora Core 3, Fedora Core 6, and Red Hat Enterprise 4, the cdrom is always installed correctly, with mount point /mnt/cdrom or /media/cdrom, depending on the distribution. The /etc/fstab and /etc/mtab files show the cdrom correctly.

Also, on those distributions, when I insert the pendrive, it is detected and the mount point created.

But on CentOS 5.1, the cdrom and pendrive are not detected automatically.

Any clues why?

Cheers.

BittaBrotha 05-02-2008 04:57 AM

Quote:

But on CentOS 5.1, the cdrom and pendrive are not detected automatically.
Maybe whatever automounter Cent uses is not installed. Have you checked for it?

Pastorino 05-02-2008 07:49 AM

Quote:

Maybe whatever automounter Cent uses is not installed. Have you checked for it?
Well, autofs is installed and started.

But I figured it out. I've found this page on Red Hat:

http://www.redhat.com/archives/redha.../msg00185.html

where it says:

Quote:

What are the major changes b/w RHEL4 and RHEL5?
(...)
Removable media is handled differently. There's no more fstab-sync and updating of /etc/fstab file. Likewise, mount points under /media don't seem to be static like in the RHEL4. Instead gnome-mount is used (for both text and graphical interfaces).
So, as it turns out, /etc/fstab must be edited manually on CentOS 5.1 and RHEL5, in case one doesn't want to install gnome-mount and its ridiculous number of dependencies.

Cheers!

unSpawn 05-02-2008 09:29 AM

Quote:

Originally Posted by Pastorino (Post 3139809)
So, as it turns out, /etc/fstab must be edited manually on CentOS 5.1 and RHEL5, in case one doesn't want to install gnome-mount and its ridiculous number of dependencies.

Disk-(like) devices are also visible in for instance /dev/disk/by-label, so if you have an USB stick with a partition labelled PENDRIVE it'll show up consistently as /dev/disk/by-label/PENDRIVE. Granted, it's no fstab-sync but at least you can point your fstab line to that and know it'll work. As for CDROM/DVDROM devices Udev should point those to /dev/cdrom and they're also in /dev/disk/by-id.

Pastorino 05-02-2008 04:20 PM

Quote:

Originally Posted by unSpawn (Post 3139951)
Disk-(like) devices are also visible in for instance /dev/disk/by-label, so if you have an USB stick with a partition labelled PENDRIVE it'll show up consistently as /dev/disk/by-label/PENDRIVE.

Indeed! Thanks for the info. I actually didn't know about this feature. Too many features, so little time to study them all.

Cheers!


All times are GMT -5. The time now is 02:08 PM.