|
sherm
sherman
Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
scsi emulation in Debian
#3699456 - 01/29/05 06:35 PM (19 years, 7 months ago) |
|
|
i have the ide-scsi module enabled.
i changed the symlink
#rm /dev/cdrom #ln -s /dev/scd0 /dev/cdrom
i'm using grub, i'm not sure how to edit menu.lst
i tried adding
hdb=scsi hdc=scsi
and
hdc=ide-scsi
at the the end of the kernel line
either way, #cdrecord -scanbus says cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
yep, the kernel is vmlinuz-2.4.27-1-386 debian version 3.1
any ideas? thanks.
-------------------- shroomery. not even once.
|
delta9
Active Ingredient
Registered: 10/28/04
Posts: 5,390
Loc: California
Last seen: 13 years, 10 months
|
Re: scsi emulation in Debian [Re: sherm]
#3699852 - 01/29/05 08:04 PM (19 years, 7 months ago) |
|
|
Quote:
i'm using grub, i'm not sure how to edit menu.lst
Follow the yellow brick road... Code:
$ head -3 /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub
Quote:
i tried adding
hdb=scsi hdc=scsi
and
hdc=ide-scsi
at the the end of the kernel line
So, uh, why are you doing this?
Quote:
either way, #cdrecord -scanbus says cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver. cdrecord: For possible targets try 'cdrecord -scanbus'. cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Did you check Code:
$ more /usr/share/doc/cdrecord/README.ATAPI.setup
or other documentation?
Quote:
yep, the kernel is vmlinuz-2.4.27-1-386 debian version 3.1
Also include the release, i.e. sarge or sid (both are 3.1 right now)
Quote:
any ideas?
Friendly #debian bot on freenode says
Quote:
21:33 <delta9> any ideas 21:33 <dpkg> Yeah, I have an idea! But I'll need a drawer full of rutabagas, a little WD-40, and 42 rabid hamsters. And keep the CIA off my back for the next few hours!
Quote:
thanks.
Don't mention it.
dpkg also had this to say:
Quote:
21:49 <delta9> ide cdr scsi 21:49 <dpkg> You need to disable (or compile as a module) ide-cdrom support and enable idescsi (block devices), scsi, scsi cdrom, scsi generic support in a 2.2.x onwards kernel. Check for similar options on a 2.0.x kernel
Don't know if this applies to 2.4 still, the factoid is as old as woody.
... Also, you never explained what it was you are actually trying to do (though I can guess... still, one must never assume).
-------------------- delta9
|
sherm
sherman
Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
Re: scsi emulation in Debian [Re: delta9]
#3705180 - 01/30/05 11:28 PM (19 years, 7 months ago) |
|
|
READ THE FUCKING MANUAL .............
haha, sorry yea, i should have looked at the answer it put if front of my face.
at least i googled it.
now i have to bother you some more.
Ok , the output from #grep hd.: /var/log/kern.log says.
hda: WDC WD200EB-00CPF0, ATA DISK drive hdc: SAMSUNG CD-R/RW SW-248F, ATAPI CD/DVD-ROM drive hda: attached ide-disk driver. hda: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=38792/16/63, UDMA(100) hdc: attached ide-cdrom driver. hdc: ATAPI 48X CD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33) ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
the cdrecord README says
3. Find a line where you can append additional kernel parameters, eg. "append=" in lilo.conf or the loadlin-line in the batch file. 4. Append sth. like this: "hdb=ide-scsi hdc=ide-scsi max_scsi_luns=1" The hdX-parameters defines devices that should be mapped to SCSI latter. You may do it with non-writers too, since the emulation layer is almost complete. Or omit some so the devices will use their native drivers (eg. ide-cd).
What does it mean "Append sth." what does it mean "sth."
Do i change my grub entry like this?
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda1 ro hdb=ide-scsi hdc=ide-scsi max_scsi_luns=1
or should i just add this because the drive is hdc
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda1 ro hdc=ide-scsi max_scsi_luns=1
i'll try both, no better way to learn than to break somthing.
what do you think? Do i have the right idea?
-------------------- shroomery. not even once.
|
delta9
Active Ingredient
Registered: 10/28/04
Posts: 5,390
Loc: California
Last seen: 13 years, 10 months
|
Re: scsi emulation in Debian [Re: sherm]
#3707071 - 01/31/05 10:38 AM (19 years, 7 months ago) |
|
|
Quote:
sherm said: READ THE FUCKING MANUAL .............
At least YOU said it... This is the first thing any debian user will tell you. The way to counter it is make sure you actually read the manual and prove so when asking your questions by referencing it ... Why people get all bitchy that we force people to do this, I don't know as it just makes them better in the end . Lazy sods is what I think.
Quote:
haha, sorry yea, i should have looked at the answer it put if front of my face.
at least i googled it.
Yes, you should always do several things on a linux system. Generally I do them in this order: I check the manpage (`man programname'), check the info page (`info programname'), google. On debian systems you also have the (awesome, one reason why I *love* debian) option to check in /usr/share/doc/packagename. This is guaranteed to exist for most every package, as it is a violation of policy for a package to NOT have entries there. Of course, how helpful it is depends on the maintainer, but that's why there's man, info, and google as well. Generally, unless I'm in a fix for time, I *only* ask (and believe me, I ask plenty of questions, too!) after doing all of that. It usually helps you better articulate your problem and it shows the people helping you that you did some research, which makes them feel more like they are helping you than GIVING you the answer...[/rant]
On to things
Quote:
hdc: SAMSUNG CD-R/RW SW-248F, ATAPI CD/DVD-ROM drive hdc: attached ide-cdrom driver. hdc: ATAPI 48X CD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33) ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
These are all we're concerned about, and the lack of error messages is a Good Thing
Quote:
3. Find a line where you can append additional kernel parameters, eg. "append=" in lilo.conf or the loadlin-line in the batch file. 4. Append sth. like this: "hdb=ide-scsi hdc=ide-scsi max_scsi_luns=1" The hdX-parameters defines devices that should be mapped to SCSI latter. You may do it with non-writers too, since the emulation layer is almost complete. Or omit some so the devices will use their native drivers (eg. ide-cd).
What does it mean "Append sth." what does it mean "sth."
Ok, a couple things to note about the nature of debian. Every package has a maintainer who is personally responsible for that package. Often, they make mistakes in language, especially if english is their second language. "Joerg Jaspert" maintains the cdrtools package, in which cdrecord is included. Joerg also has been using debian for some time, as his information only contains information for LILO and not GRUB (which is now the default debian bootloader). So what does he mean? I think he meant "append it", which in GRUB is accomplished as passing commandline paramaters to the kernel image (that is, the way you have been doing it is fine). Report a bug (lowest priority) or contact a maintainer if you are interested in helping (but I would think this could have been reported by now, as it has been quite a while). Also, check bugs from time to time.
Quote:
Do i change my grub entry like this?
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda1 ro hdb=ide-scsi hdc=ide-scsi max_scsi_luns=1
or should i just add this because the drive is hdc
kernel /boot/vmlinuz-2.4.27-1-386 root=/dev/hda1 ro hdc=ide-scsi max_scsi_luns=1
i'll try both, no better way to learn than to break somthing.
what do you think? Do i have the right idea?
You should only need to map hdc to scsi, as this is the drive in question. And yes! I think you certainly have the right idea and were on the right track to begin with, just needed a little push or point (as we all do) in the right direction
Also, while I'm ranting about debian, if you haven't already, I highly recommend the package "apt-listbugs" be installed. It will alert you about current bugs in a program when you install with apt, which can be useful as sometimes you may encounter the same issue but you already knew about it so you don't freak out .
-------------------- delta9
|
MarioNett
Stranger
Registered: 07/21/03
Posts: 354
|
Re: scsi emulation in Debian [Re: sherm]
#3711040 - 01/31/05 11:39 PM (19 years, 7 months ago) |
|
|
In kernel 2.6 this sort of scsi emulation isn't needed; you can record properly on the /dev/hdc or whatever device. So in case you were considering upgrading, there's one more reason.
|
sherm
sherman
Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
Re: scsi emulation in Debian [Re: MarioNett]
#3711372 - 02/01/05 12:52 AM (19 years, 7 months ago) |
|
|
upgrading the kernel sounds like a whole new adventure!!!! i'm not sure if i'm up to that yet
-------------------- shroomery. not even once.
|
sherm
sherman
Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
Re: scsi emulation in Debian [Re: delta9]
#3711441 - 02/01/05 01:25 AM (19 years, 7 months ago) |
|
|
i got it working if you don't mind, could you tell me if i did this corectly?
the ATAPI setup says
Setup cdrecord's environment - edit /etc/default/cdrecord: CDR_DEVICE=cdrw cdrw=1,0,0 4 8m cdrom=1,2,0 0 0m Insert the right values, the fields are described in the manpage of cdrecord. Alternatively, you may use this values as cdrecord-parameter or take a frontend with an own configuration scheme, then you don't need to modify /etc/default/cdrecord. The columns must be separated by tabs.
ths is the output of #cdrecord -scanbus
scsibus0: 0,0,0 0) 'SAMSUNG ' 'CD-R/RW SW-248F ' 'R602' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) *
the cdrecord defaut enviroment looked like this
# drive name device speed fifosize driveropts
teac= 1,3,0 -1 -1 "" panasonic= 1,4,0 -1 -1 "" plextor= 1,4,0 -1 -1 "" sanyo= 1,4,0 -1 -1 burnfree yamaha= 1,5,0 -1 -1 "" cdrom= 0,6,0 2 1m ""
i changed i tto look like this
# drive name device speed fifosize driveropts # SAMSUNG= 0,0,0 -1 -1 "" #teac= 1,3,0 -1 -1 "" #panasonic= 1,4,0 -1 -1 "" #plextor= 1,4,0 -1 -1 "" #sanyo= 1,4,0 -1 -1 burnfree #yamaha= 1,5,0 -1 -1 "" #cdrom= 0,6,0 2 1m ""
have i done this correctly?
-------------------- shroomery. not even once.
|
nife
I'm Dead
Registered: 12/26/03
Posts: 225
Last seen: 3 months, 26 days
|
Re: scsi emulation in Debian [Re: sherm]
#3724877 - 02/03/05 02:06 PM (19 years, 7 months ago) |
|
|
My advice, get the 2.6 kernel. its worth it Great kernel, I use Linux 2.6.9-ck3
-------------------- Protect Your Rights Freedom Card
|
sherm
sherman
Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
|
Re: scsi emulation in Debian [Re: nife]
#3731469 - 02/04/05 04:32 PM (19 years, 7 months ago) |
|
|
i reinstalled debian with the 2.6* kernel and it fucked firefox up it took forever to load anything. I had to use Konquerer. it sucked i tried twice, no go.............. and back to 2.4*
-------------------- shroomery. not even once.
|
delta9
Active Ingredient
Registered: 10/28/04
Posts: 5,390
Loc: California
Last seen: 13 years, 10 months
|
Re: scsi emulation in Debian [Re: sherm]
#3731571 - 02/04/05 04:52 PM (19 years, 7 months ago) |
|
|
You shouldn't need to reinstall to try new kernels. Just `apt-cache search kernel-image-2.' and install one of those. Run `update-grub' and reboot.
-------------------- delta9
|
|