PDA

View Full Version : CD/RW and SCSI Emulation?



KOKIDD
03-21-2003, 09:31 AM
I have a few questions which have me confused, first let me say I am a newbie and that may be my problem. I have Knoppix v3.1 hard drive install and I can not get my CDRW (Liteon 40125s) to show up when I cdrecord -scanbus. When I run a scanbus while using the Knoppix CD it detects them fine but when I boot up from the hard drive only my DVD drive shows up, I am using the a floppy as a bootloader the one which was created when I did installed Knoppix to hard drive. I did not want Lilo on my mbr I am using windblows also. I have both my drives as sc0 and sc1. My CDRW is hdc and the DVD is hdd. When I do a ls -l dev/sc0 it shows it up as being a scsi. I am thinking as I have read and looked at my system boot log that scsi emulation starts at startup. This a snippet of my syslog
<------------------------------------------------------------------------------------------------------------------------------------------------>
Mar 4 09:27:05 local kernel: hda: WDC WD600BB-00CAA0, ATA DISK drive
Mar 4 09:27:05 local kernel: hdb: SAMSUNG SV6004H, ATA DISK drive
Mar 4 09:27:05 local kernel: hdc: LITE-ON LTR-40125S, ATAPI CD/DVD-ROM drive
Mar 4 09:27:05 local kernel: hdd: TOSHIBA DVD-ROM SD-M1302, ATAPI CD/DVD-ROM drive
Mar 4 09:27:05 local kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Mar 4 09:27:05 local kernel: ide1 at 0x170-0x177,0x376 on irq 15
Mar 4 09:27:05 local kernel: hda: 117231408 sectors (60022 MB) w/2048KiB Cache, CHS=7753/240/63
Mar 4 09:27:05 local kernel: hdb: 117306000 sectors (60061 MB), CHS=7758/240/63
Mar 4 09:27:05 local kernel: ide-cd: passing drive hdc to ide-scsi emulation.
Mar 4 09:27:05 local kernel: ide-cd: passing drive hdd to ide-scsi emulation.
Mar 4 09:27:05 local kernel: Partition check:
Mar 4 09:27:05 local kernel: hda: hda1 < hda5 > hda2
Mar 4 09:27:05 local kernel: hdb: hdb2 < hdb5 > hdb3 hdb4
Mar 4 09:27:05 local kernel: Floppy drive(s): fd0 is 1.44M
Mar 4 09:27:05 local kernel: FDC 0 is a post-1991 82077
Mar 4 09:27:05 local kernel: RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Mar 4 09:27:05 local kernel: Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Mar 4 09:27:05 local kernel: Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
Mar 4 09:27:05 local kernel: SCSI subsystem driver Revision: 1.00
Mar 4 09:27:05 local kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Mar 4 09:27:05 local kernel: Vendor: LITE-ON Model: LTR-40125S Rev: ZS0K
Mar 4 09:27:05 local kernel: Type: CD-ROM ANSI SCSI revision: 02
Mar 4 09:27:05 local kernel: Vendor: TOSHIBA Model: DVD-ROM SD-M1302 Rev: 1806
Mar 4 09:27:05 local kernel: Type: CD-ROM ANSI SCSI revision: 02
Mar 4 09:27:05 local kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Mar 4 09:27:05 local kernel: Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
Mar 4 09:27:05 local kernel: sr0: scsi3-mmc drive: 145x/48x writer cd/rw xa/form2 cdda tray
Mar 4 09:27:05 local kernel: Uniform CD-ROM driver Revision: 3.12
Mar 4 09:27:05 local kernel: sr1: scsi3-mmc drive: 40x/40x cd/rw xa/form2 cdda tray
<------------------------------------------------------------------------------------------------------------------------------------------->
As I look at it shows my CDRW as a 145x/48x (wtf) it is only a 40x12x48x and I see it lists the DVD drive as a cd/rw on this log also. This is the same log as when I use the Knoppix on CD. I compared it. I also made me a backup floppy using mkboot which uses Lilo and when it boots from that floppy I get no drives to show up (CD/RW and DVD) in cdrecord -scanbus, so obivious the bootup is not the same. I can stil mount these drives with either floppies as use them as normal CD Roms. I have read other posts on the web on how to use scsi emulation and have changed the Lilo.conf file to tell the system to emulate scsi on the CDRW and at the same time I was wondering I think I am already using scsi emulation so this maybe this is useless and it was neither drives showed up. I also was thinking maybe this CDRW was incompatiable with CD Roast, but I doubt it since the Knoppix on CD shows both drives perfectly. I will also put my lilo.conf on here. Also another quick question how can I make a another boot floppy like the one I made during the Knoppix hard drive install. If anyone has any pointers on how I can fix these problems please let me know. Thanks for any help and sorry for being so verbose.

Lilo.conf
<------------------------------------------------------------------------------------------------------------------------------------------------->

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81

#disk=/dev/sda
# bios=0x80

# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hdb3

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hdb3

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
prompt
timeout=150
# prompt
# single-key
# delay=100
# timeout=100

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
append="hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce"

# Boot up Linux by default.
#
default=Linux

image=/boot/vmlinuz-2.4.20-xfs
label=Linux

read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3
other=/dev/hda5
label="Windows(hda5)"

other=/dev/hda2
label="Windows(hda2)"

other=/dev/hdb5
label="Other(hdb5)"

god
03-21-2003, 09:33 AM
lilo allows you to dual boot.... that means you boot up the computer and then decide if you want to use windows or linux with out a floppy...

Stephen
03-21-2003, 07:21 PM
Change the append= line in lilo.conf to ide-scsi for your burner and run /sbin/lilo to commit the changes and re-boot.

Stephen
03-21-2003, 07:37 PM
Also to make things easier with xcdroast you could add the line to your sudoers file ( by running the command visudo as root in a console) :

stephen HappyTux=NOPASSWD: /usr/bin/xcdroast

Under the ( # User privilege specification ) this allows you to run xcdroast as root from your regular user account. Change the stephen to whatever your user name is and the HappyTux to you machine name or ALL will work too.