Click to See Complete Forum and Search --> : some debian trouble


Phunky511
02-03-2001, 02:10 PM
i've recently made to move from SuSe to Gnu/Debian. it too a little tweaking durring the install but I eventually got most of it upm, even X. my problem now lies in the post-install.

i used to binary cd to install the minimal system and i got the latest packages via apt. after having everything was all done, i pop in a cd of the backup data a ihad from my SuSe install and i am told /dev/cdrom doesn't exist. i also have a sony crx140e cd-rw that doesn't exist either. my cdrom is an Lite-On LTN483S 48X Max cdrom.

any ideas on a solution?

Strike
02-03-2001, 02:13 PM
I have that CD burner too, and you have to make sure it is the master on the IDE chain for it to get recognized. Check dmesg to see if they are getting recognized:

dmesg | grep hd

If they are getting recognized, see what /dev/cdrom points to:

ls -l /dev/cdrom

Mine yields this result:

[ddipaolo@half-life ddipaolo]$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 4 Jan 16 01:49 /dev/cdrom -> scd0
Because my /dev/cdrom points to my Sony CD burner (same as yours). But it's scd0 instead of hdc because I'm using SCSI emulation stuff. So yours should probably be something like hdc instead of scd0.

Phunky511
02-03-2001, 02:32 PM
thank you very much, Strike. you pointed me in the right direction. the solution i came up with was to link /dev/cdrom to /dev/hdc and the same for my cd-rw. now all is well. :)

[ 03 February 2001: Message edited by: Phunky511 ]

Phunky511
02-03-2001, 02:48 PM
actually..one litle problem still, how do you enable scsi emu on your drive. i want to have my cdrw as cdrom2. i tried ln -s /dev/scd0 /dev/cdrom2 but hat doesn't work.

reeze
02-03-2001, 02:56 PM
why would you do/want that?

just mount the device to /cdrom2.

mkdir /cdrom2
mount /dev/scd0 /cdrom2

and you need scsi emu enabled in your kernel, so look there.

debiandude
02-05-2001, 05:06 PM
Ok you are going to need to recompile your kernel. In your kernel source tree do a make oldconfig. Then do a make xconfig. These are the options you will want to change:
Block devices -> Include IDE/ATAPI CDROM support = n
Block devices -> SCSI Emulation support = y
Block devices -> Loopback devier = m
SCSI -> SCSI Support = y
SCSI -> SCSI CDROM support = y
SCSI -> Enable vendor specific = y
SCSI -> Enable SCSI generic support = y
FS -> iso9660 CD-ROM filesysem = y

now save and do your make dep && make && clean && make bzImage && make modules && make modules_install to set up your new kernel.

When all that is set up you need to reboot. As root do this:
rm -rf /dev/cdrom
If your cdrw is the first cdrom drive do this:
ln -s /dev/sr0 /dev/cdrw
If your cdrom is the second cdrom drive do this:
ln -s /dev/sr1 /dev/cdrom

Next change the group of /dev/sr0 and /dev/sr1 to audio. Next do adduser yourname audio

Now you should be set. Email me if you still need help.

Strike
02-05-2001, 06:16 PM
Relevant portions of my kernel .config:

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDESCSI=m

CONFIG_BLK_DEV_LOOP=m

#
# SCSI support
#
CONFIG_SCSI=m

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m

I think that ought to do it.

Relevant info from /dev:
lrwxrwxrwx 1 root root 4 Jan 16 01:49 cdrom -> scd0
lrwxrwxrwx 1 root root 4 Jan 16 01:49 dvdrom -> scd1
brw-rw-rw- 1 root cdrom 11, 0 Dec 31 02:04 scd0
brw-rw-rw- 1 root cdrom 11, 1 Dec 31 02:04 scd1
lrwxrwxrwx 1 root root 4 Dec 31 02:04 sr0 -> scd0
lrwxrwxrwx 1 root root 4 Dec 31 02:04 sr1 -> scd1


/dev/cdrom - my CD burner (formerly /dev/hdc)
/dev/dvdrom - my DVD-ROM (formerly /dev/hdd)

[ 05 February 2001: Message edited by: Strike ]