Actually, this is what the installer looks for.
cat /proc/sys/dev/cdrom/info | grep "^drive name" | cut -f 2 -d ':'|xargs -n 2
Could those of you who are having problems with the cdrom devices please run this line and show me the output
Thanks
EDIT:
I also need you guys to confirm that the right number of devices is being reported
M0E this is the code from text installer to find media which seems to work finding all the drives maybe some clues here:
find_media() {
echo "hosted install"
# Check if SOURCE has been mounted
if [ -r $SETUP_CONF ]; then
infobox "Found mounted media ..."
sleep 2
return 0
fi
# Not found, do hard disk search
TITLE="VECTOR LINUX INSTALL"
infobox "Finding Vector Linux install media ..."
## Find the media on the HD first
## So user's can easily overrides the CD
probepart | grep " FAT" | cut -f 1 -d ' ' > /tmp/dev
if [ $? = 0 ]; then
for dev in `cat /tmp/dev`; do
search_media "Windows HD" "$dev" && return 0
done
fi
probepart | grep -e " *Linux$" | cut -f 1 -d ' ' > /tmp/dev
if [ $? = 0 ]; then
for dev in `cat /tmp/dev`; do
search_media "Linux HD" "$dev" && return 0
done
fi
## try to find it on the CD
drives=$(cat /proc/sys/dev/cdrom/info |grep "drive name"|cut -f2 -d':'|xargs -n 2 2>/dev/null);
for dev in $drives; do
search_media "CDROM" "/dev/$dev" iso9660 && return 0
done
## if that doesnt work try probedisk
probedisk | grep '|cdrom|' | cut -f 1 -d '|' > /tmp/dev
if [ $? = 0 ]; then
for dev in `cat /tmp/dev`; do
search_media "CDROM" "$dev" iso9660 && return 0
done
fi
## blind guess SCSI, maybe SATA
for i in a b c d e f g h; do
if ! probedisk | grep -q "/dev/sd$i"; then
search_media "SCSI" /dev/sd$i iso9660 && return 0
fi
done
## more blind guess SCSI, maybe SATA
for i in 0 1 2 3 4 5 6 7 8 9; do
for j in sr sg; do
if ! probedisk | grep -q "/dev/$j$i"; then
search_media "SCSI" /dev/$j$i iso9660 && return 0
fi
done
done
Vec
ps I would think the probe for sr* devices is probably what is missing