LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-18-2003, 06:43 AM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Ide And Scsi Emulation For Cdrw's ???


I think that I am getting closer to getting my cdrw to work - maybe.

My mandrake install see's the cdrw device as cdrom2, but to get it working and playing audio cd's, I had to open kscd (or grip) and tell it to use /dev/scd0.

So, with my debian install, the system only seems to see the cdrw device as "hdc".

There seems to be no reference to /dev/scd0 or anything like it.

so could someone tell me how I configure/setup/install scsi emulation of IDE for a cdrw device.

I have searched, and the only part that I understand is the bit about including "hdc=ide-scsi" in the append line of lilo.conf (which I have done - but still get nothing)

Many thanks

regards

John
 
Old 09-18-2003, 07:28 AM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
Make sure you have rerun lilo to reinstall LILO with the new configuration. I am not sure however you may have to add a line

options ide ignore=hdc

to your /etc/modules.conf (though I don't think so).

Last edited by nhs; 09-18-2003 at 07:39 AM.
 
Old 09-18-2003, 08:46 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
In /etc/lilo.conf make sure you have:

Code:
append="hdc=ide-scsi"
Rerun /sbin/lilo, then you may have to edit your /etc/fstab entry from /dev/cdrom2 (or whatever) to /dev/scd0. I prefer symlinking /dev/scd0 to /dev/cdrom though, that works fine for me and I don't have to edit the fstab.

Then add your user account to the corresponding group(s). To get full access to the CDRW as a regular user (not as root, that is) I have to add myself to the cdrom and disk groups: Edit /etc/group and add your username to the cdrom and disk lines. Separate usernames with a colon. Those lines look like this on my laptop:

Code:
cdrom:x:24:hw,anders,oofer
(...snip!...)
disk:x:6:hw,oofer
Log out and then log in again and you should be able to access the CDRW as expected. If not, make sure the permissions on the devices are correct. The owner group should have all permissions (chmod g+rwx /dev/scd0; chmod g+rwx /dev/sr0).

hw
 
Old 09-18-2003, 09:12 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
how do I create the symlink from cdrom to scd0 or whatever - I have looked at the man page for symlink, but it doesn't make sense.

would it be something like

ln -s /dev/cdrom /dev/scd0



also, how do I know what the correct nonclamenture is i.e. sg0 or scd0 or sr0 ?

regards

John

Last edited by bigjohn; 09-18-2003 at 09:14 AM.
 
Old 09-18-2003, 10:18 AM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
It would probably be something like this (if you still want your burner to be cdrom2):

# cd /dev
# ln -s scd0 cdrom2

In the example above, cdrom2 is a link to the /dev/scd0 device.
You may have to remove the existing symlink first - just use "rm -i cdrom2".

To see which device that actually is /dev/scd0 (it should be sr0), do a:

$ ls -l --color /dev | grep scd0

Here we want a comprehensive listing in color of the /dev directory. We pipe the output to grep and look for lines that contain the string "scd0". You will probably get a few lines in the output.

The lines that have "(something) -> scd0" in them are symlinks pointing to /dev/scd0. You will probably have sr0 there pointing to scd0. You can access symlinks in exactly the same way as accessing the target file. So /dev/scd0 and /dev/sr0 in the example below are virtually the same thing.

Code:
lrwxrwxrwx    1 root     root            4 2003-09-09 17:32 cdrom -> scd0
brwxrwxrwx    1 root     cdrom     16,   0 2002-03-14 22:54 gscd0
brwxrwxrwx    1 root     cdrom     11,   0 2002-03-14 22:54 scd0
lrwxrwxrwx    1 root     cdrom           4 2003-09-04 00:38 sr0 -> scd0

hw
 
Old 09-18-2003, 10:45 AM   #6
kly546
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian, FreeBSD
Posts: 13

Rep: Reputation: 0
Also, did you compile scsi emulation and generic scsi support into your kernel? You need to.
 
Old 09-18-2003, 02:30 PM   #7
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
drwxr-xr-x 1 root root 0 Jan 1 1970 scsi

and

lr-xr-xr-x 1 root root 13 Sep 18 15:31 cdrom -> cdroms/cdrom0
drwxr-xr-x 1 root root 0 Jan 1 1970 cdroms

seem to be the only things that I can find using "ls -l /dev" - the --color | grep /scd0 addition just dumps me straight back to a #prompt.

Though when I do "lsmod" I can see this

Module Size Used by Tainted: P
ide-cd 26176 0 (autoclean)
sr_mod 11800 0 (autoclean) (unused)
cdrom 27104 0 (autoclean) [ide-cd sr_mod]
scsi_mod 84952 1 (autoclean) [sr_mod]

So I presume that something is there, though what I do with it, god only knows.

I also suspect that it answers kly546's question about including scsi emulation - generic scsi support? Don't know, wouldn't know how to recognise this anyway.

Any other suggestions please ??

regards

John
 
Old 09-20-2003, 09:11 AM   #8
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Out of curiosity, one of the guys at my LUG gave me a copy of knoppix 3.1 burned onto cd.

And as I'm still having mega problems installing/updating/configuring the debian install that I have, I thought I should give it a try.

All I can say is WOW!

Absolutely amazing. If things debian don't get better soon, I might just install it to my hard disc.

anyhow, it seems that knoppix can see my cdrw - it looks like "it" can see it as /dev/scd1 which I presume means as it is a "debian derivative", then I must need to have the scsi emulation to run the cdrw as an audio cd player.

So would/could someone explain how I check what is actually installed and running, and how I can enable the scsi emulation.

I'm actually starting to get quite desperate, I've only been trying to sus this out for about a fortnight - hence any assistance would be very much appreciated.

regards

John
 
Old 09-21-2003, 12:55 AM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
It doesn't seem like anyone has mentioned the ide-scsi module (and you don't have it loaded. If you load that module, you don't have to recompile your kernel. Type modprobe ide-scsi. I'm not sure if it will work straightaway (but I think it will), or if you have to load this a boot time. Regardless of the outcome of the above command, add the line ide-scsi to your /etc/modules file. Should work on every boot from now on. Mind you, the append line still has to be present in lilo.conf.
 
Old 09-21-2003, 04:28 AM   #10
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Wow excellent,

Thanks adz,

And just so if anyone else has the same snag i'll tell you the situation.

The "woody" I used didn't work, because of the driver for my graphics card (generic nvidia geforce 4 m420) so upgraded the distro to "sarge". Got the nvidia driver ok, got the sarge working - sort of.

The system has a cdrw and a dvdrom - the install see's the drives as hdb for the dvdrom - connected as slave to the hard disc and hdc for the cdrw.

The straight hdc recognition doesn't allow for audio cd's it seems that it does actually need scsi emulation for the cdrw. You can see some of the step above that I have taken to try and get audio disc's working - adz's answer is what has worked for me. Though under mandrake the scsi emulation allows for the use of /dev/scd0 (there is also the sg0 option, that apparently comes with "generic scsi" support).

There is also the confusion that kscd defaults to /dev/cdrom - this doesn't work (well in my case) even though if I look round the system with konqueror or list things with ls-l /dev I can see directories with /dev/cdrom/cdroms and if I look in that i can see cdrom0 and cdrom1

Lots and lots of false leads - why I don't know but there you go

Thanks to adz If I list the modules with lsmod I can see this

debian:/home/john# lsmod
Module Size Used by Tainted: P
ide-cd 26176 0 (autoclean)
sr_mod 11800 0 (autoclean) (unused)
cdrom 27104 0 (autoclean) [ide-cd sr_mod]
floppy 44800 0 (autoclean)
agpgart 29472 3 (autoclean)
mousedev 3776 0 (unused)
hid 17632 0 (unused)
usbcore 48160 1 [hid]
input 3296 0 [mousedev hid]
ide-scsi 7360 0
scsi_mod 84952 2 [sr_mod ide-scsi]
emu10k1 52096 1
ac97_codec 9376 0 [emu10k1]
sound 52268 0 [emu10k1]
soundcore 3524 7 [emu10k1 sound]
nvidia 1628160 11
natsemi 14536 1
af_packet 11400 0 (unused)
rtc 5336 0 (autoclean)
ext2 30400 1 (autoclean)
ide-disk 6592 3 (autoclean)
ide-probe-mod 7968 0 (autoclean)
ide-mod 129420 3 (autoclean) [ide-cd ide-scsi ide-disk ide-probe-mod]
ext3 56544 1 (autoclean)
jbd 34968 1 (autoclean) [ext3]
unix 13debian:/home/john# lsmod
Module Size Used by Tainted: P
ide-cd 26176 0 (autoclean)
sr_mod 11800 0 (autoclean) (unused)
cdrom 27104 0 (autoclean) [ide-cd sr_mod]
floppy 44800 0 (autoclean)
agpgart 29472 3 (autoclean)
mousedev 3776 0 (unused)
hid 17632 0 (unused)
usbcore 48160 1 [hid]
input 3296 0 [mousedev hid]
ide-scsi 7360 0
scsi_mod 84952 2 [sr_mod ide-scsi]
emu10k1 52096 1
ac97_codec 9376 0 [emu10k1]
sound 52268 0 [emu10k1]
soundcore 3524 7 [emu10k1 sound]
nvidia 1628160 11
natsemi 14536 1
af_packet 11400 0 (unused)
rtc 5336 0 (autoclean)
ext2 30400 1 (autoclean)
ide-disk 6592 3 (autoclean)
ide-probe-mod 7968 0 (autoclean)
ide-mod 129420 3 (autoclean) [ide-cd ide-scsi ide-disk ide-probe-mod]
ext3 56544 1 (autoclean)
jbd 34968 1 (autoclean) [ext3]
unix 13316 91 (autoclean)
debian:/home/john#

You can see the various items that pertain to cdrom, ide, scsi etc.


For adz,

If you get over this way in your travels - e-mail me I know a marvellous little pub, just opposite Earls court, frequented by aussies, kiwi's and south african's i.e. they KNOW how to chill their beer properly - VB (as in genuine VB and not that shit with australian names, but brewed in the UK piss!).

again many thanks - I'm just enjoying some quality Smith's under debian - Yipppeeee (just never worked out why Morrisey was such a miserable bastard with the Smith's?)


regards

John
 
Old 09-21-2003, 05:05 AM   #11
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Hmmm... I've considered checking out Europe in 2005. Wont be for a while, though (but thanks for the offer). One thing: VB is generally considered crap (regardless of where it's brewed). There are so many good Australian beers I never understood why they always export the bad ones.

As for Morrisey, my impression was that he was always a miserable bastard irrespective of whether he was singing for The Smiths or when he went solo. Talk about depressing. After listening to them for a while I'm about ready to top myself...

...GOODBYE CRUEL WORLD!

Last edited by adz; 09-21-2003 at 05:06 AM.
 
Old 09-21-2003, 01:47 PM   #12
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Ha,

If you think that VB is bad, then you will just have to check out the stuff that's sold as fosters, castlemaine 4x amongst others - talk about rats piss.

Though to be honest, I don't really drink lager beers in the UK - they're all the bloody same.

PISS!

If you do get "up north", then you have to try the beers where they are brewed originally i.e. Heineken in Amsterdam is nice, Carlsberg in Copenhagen is nice, Guiness in Dublin, again, is nice (as opposed to "Park Royal piss" - brewed in London)!

Still, if the "aussie exports" are out, then I reckon that I could easily introduce you to some pretty severe british stuff (though some of it's seasonal, and regional).

I have to say that in general, I agree on "the smiths", well in part, but truthfully, they are just one of those bands, that have influenced lots of others - late last year/early this ? I heard "Idlewild" and just couldn't get rid of the mental image of morrisey "prancing round a stage wearing 2 hearing aids, with a bunch of flowers hanging out of his back pocket". What a prat!

Oh, and before I close, do you know anything about hard disc installs of Knoppix ? I'm given to understand that it becomes "just a normal debian install" ?

And I'm wondering, because both the 3.1 and 3.2 that I have tried in the last 24 hours, look better and seem to detect my hardware far more successfully than what I have managed to do manually with "proper debian"

regards

John
 
Old 09-21-2003, 06:39 PM   #13
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I've never done a hard disk install of knoppix. As to the autodetection, debian simply doesn't really have any. It's pretty much all manual. But yeah, I've hear that you do end up with a fairly standard debian install afterwards.
 
Old 09-23-2003, 10:15 AM   #14
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
I think I shall look further into this, because if it's a better way for "n00bs" to debian to get a usable system - well, that's the way for me.

Lets face it, if, like me, you don't happen to be a debian "boffin" then it would be an excellent way for recommending to n00bs to get going, and something to act as a "base install" that they could then "meddle" with to their hearts content - they would always have the cd version to fall back on or even re-install if they (again, like me) have a habit of screwing things up.

regards

John
 
Old 09-23-2003, 11:26 AM   #15
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Hmmm... Installing debian is remarkably easy. As long as you follow a few simple rules. I understand that a noob can't possibly be expected to know these rules but if one could just direct them to any of the many tutorials on the web then it should be OK. It's remarkable how they all tend to say the same sort of thing. We probably should have a sticky link on the debian forum giving install tips.
 
  


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
ide-scsi emulation RestInPieces Linux - Newbie 3 10-31-2004 04:45 PM
trouble with scsi-ide emulation nard Linux - Laptop and Netbook 1 09-24-2004 08:26 PM
No ide SCSI emulation on 2.6? moger Linux - General 1 01-17-2004 09:42 PM
ide-scsi emulation vabaliukas Linux - Hardware 0 07-09-2003 09:14 AM
ide-scsi emulation vabaliukas Linux - Hardware 2 07-07-2003 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:03 AM.

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