LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-19-2002, 07:17 PM   #1
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Rep: Reputation: 15
CD-RW drive install in Slackware


Hi. I'm new to this forum and relatively new to Linux. (Have been using Slackware 8.1 for about a month and a half now)
I have a Plextor Plexiwriter 40x12x40. To tell you the truth I don't really know how to aproach the installation of the cd-rw. I've been told that I'll have to comile the kernel and emulate scsi (or somehting along those lines). Can anybody offer any help?
 
Old 11-19-2002, 07:44 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
If you are using the stock kernel, you don't need to recompile at all, just pass an option onto the kernel at boot time. Edit /etc/lilo.conf and add this line:

append="hdX=ide-scsi"

Where X is whatever your cdrom is, probably hdc; re-run lilo so it writes to the MBR again, reboot and there should be a scsi device scan in your "dmesg" with the drive now listed as "/dev/scd0"

Pick you favorite GUI burning front-end like Xcdroast, compile it and have fun!

Cheers,

Finegan
 
Old 11-19-2002, 08:03 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Hi,
Fin, I am a bit puzzled, remember in some other thread regarding scsi emulation we had a discussion about /dev/scd0 and /dev/sr0, I still cannot figure them out yet, in old RH setup I had my CD-R/RW listed as /dev/scd0, now with Slackware it is /dev/sr0, do you know the difference between the two, or it is just a name convention?
 
Old 11-19-2002, 08:09 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Yeah, honestly man I have no idea... the kernel assigns the /dev/ entry that it gets registered under. I remember from Slack 8.0 it was /dev/sr0, now I get /dev/scd0, but they were both 2.4.x kernels... really, beats the heck out of me. I disabled scsi emulation on my machine recently because the cdrw was an actual scsi burner and I had some issues with the dvdrom being under scsi emulation not playing dvds right.

Thanks for reminding me of that though, so if the device shows up as /dev/sr0 for the other guy he won't get lost.

Cheers Neo,

Finegan
 
Old 11-19-2002, 08:13 PM   #5
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
thanks fin but I can't get it to work.
I have two kernels. The original one (stock), and a modified one which I sometimes play around with. I added append="hdc=ide-scsi" to both in the lilo.conf and none worked.(yes, my cd-rw drive is hdc)

In the slackware startup I managed to catch some message assigning the writer to some /dev/... but I didn't catch it. I tried both /dev/scd0 and /dev/sr0. No result.

Any ideas?

ps. what is the "dmesg". All the text that comes out in the startup? Is there any log file for that?
 
Old 11-19-2002, 08:26 PM   #6
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
i've managed to catch this sentence at the begining.
"Attached sr0 at scsi0 channel 0 id 0 lun 0"
then it says something along the lines of
sr0: (info about my writer)

---
so i try
mount /dev/sr0
it says this:
mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab

so what i'm thinking is that i can manually modify /etc/fstab, right?
if so, what is the syntax in that file. i can't recognize which # is channel or id and all that.
 
Old 11-19-2002, 08:46 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
well it is a straight forward concept
/dev/sr0 /mnt/cdrom iso9660 noauto,user,owner,ro 0 0
for simlicity you can create a symlink in to /dev/cdrom or /dev/cdrw whichever suits you better in your /dev/ directory
ln -s /dev/sr0 /dev/cdrom
and adjust /etc/fstab
/dev/cdrom /mnt/cdrom iso9660 noauto,user,owner,ro 0 0
Make sure also that mount point - /mnt/cdrom in this case - exists
 
Old 11-20-2002, 01:55 PM   #8
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
i'm a little confused though. If i assign the cd-rw to mount in /mnt/cdrom, where will I mount my other cd drive?
 
Old 11-20-2002, 07:00 PM   #9
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
Assign one to /mnt/cdrom and the other to /mnt/cdrom2.

BTW if you want to see what happened on boot check out the logs in /var/log
 
Old 11-20-2002, 07:11 PM   #10
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
I managed to get the drive to read disks after adding the append line to lilo.conf and that other stuff to fstab. My question is, why does it only work with the stock kernel like fin said it would?
 
Old 11-20-2002, 07:17 PM   #11
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Its not that it would only work with a stock kernel, its just that a lot of people get bad advice and compile their own and don't know what support to include so they leave it out and then end up stuck with a kernel that can't do the job when the stock was fine... heck all of the modules necessary to properly use a burner have been part of Slackware default kernel since 7.0, 2+1/2 years ago, and maybe older... that's just the oldest I've used.

Cheers,

Finegan
 
Old 11-20-2002, 07:22 PM   #12
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
right, but what about my sound? I had to recompile the kernel to get my sound working. As I mentioned I have both kernels to choose from at startup. But, the options I use don't work in my "sound kernel".
 
Old 11-20-2002, 08:00 PM   #13
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Recompile the "sound kernel" to support ide-scsi emulation:

ATA/IDE/MFM/RLL support --->
IDE, ATA and ATAPI Block devices --->
„_<M> SCSI emulation support


also at the top tree:

SCSI support --->

--- SCSI support type (disk, tape, CD-ROM) „_ „_
„_ „_ <*> SCSI disk support „_ „_
„_ „_ (40) Maximum number of SCSI disks that can be loaded as modules „_ „_
„_ „_ <M> SCSI tape support „_ „_
„_ „_ <M> SCSI OnStream SC-x0 tape support „_ „_
„_ „_ <*> SCSI CD-ROM support „_ „_
„_ „_ [ ] Enable vendor-specific extensions (for SCSI CDROM) „_ „_
„_ „_ (2) Maximum number of CDROM devices that can be loaded as modules „_ „_
„_ „_ <*> SCSI generic support

Most importantly SCSI cdrom support and generic support.

If I remember right that's everything.

Cheers,

Finegan
 
Old 11-20-2002, 08:32 PM   #14
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
thanks fin. I'll work on this tomorrow cause I'm kinda busy at the moment. I'll keep you guys posted on my results.
 
Old 11-21-2002, 04:25 PM   #15
Schizo265
Member
 
Registered: Nov 2002
Distribution: Slackware 8.1, 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
ok i got it all working. thanks everyone who helped.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.1 Install on External USB Drive SlammedDime Slackware 11 06-21-2005 02:40 AM
Easy way to install Slackware 10 on SATA hard drive Swift&Smart Slackware 7 12-20-2004 12:46 PM
Slackware 9.1 Install onto SATA Drive drigz Linux - Hardware 8 05-01-2004 08:40 PM
Slackware Install without a Floppy Drive? neilcpp Slackware 5 01-25-2004 09:38 PM
Install 2nd drive for Slackware? rurbaniak Linux - Newbie 1 02-13-2002 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration