Unix Technical Forum

SCSI emulation with Slack 10.0

This is a discussion on SCSI emulation with Slack 10.0 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> On Thu, 30 Sep 2004 01:51:03 +0000, Ayaz Ahmed Khan wrote: > "Kiki Novak" typed: > >> title Linux ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-19-2008, 03:59 PM
Franklin
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

On Thu, 30 Sep 2004 01:51:03 +0000, Ayaz Ahmed Khan wrote:

> "Kiki Novak" typed:
>
>> title Linux Slackware 10.0
>> root (hd0,1)
>> kernel=/vmlinuz root=/dev/hda3 hdc=ide-scsi ro

>
> I may be wrong, but shouldn't that be something like
>
> append="hdc=ide-scsi"


I believe you are correct:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdc=ide-scsi hdd=ide-scsi"
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# End LILO global section
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda8
label = Linux
read-only
# Linux bootable partition config ends

This works well with ide-2.4.27 kernel.
ide-scsi is enabled by default according to /etc/rc.modules:

# *** THIS IS STILL LOADED BY DEFAULT ***
# SCSI emulation support. This will provide SCSI host adapter emulation
# for IDE ATAPI devices, and will allow you to use a SCSI device driver
# instead of a native ATAPI driver. This is useful if you have an ATAPI
# device for which no native driver has been written (for example, an ATAPI
# PD-CD or CD-RW drive); you can then use this emulation together with an
# appropriate SCSI device driver. Note that this option does NOT allow you
# to attach SCSI devices to a box that doesn't have a SCSI host adapter
# installed. Also, you'll need to exclude your CD-RW from being grabbed by
# the normal ATAPI driver by passing a flag to the kernel at boot time.
# If you're using LILO, add this: append="hdc=ide-scsi"
# Replace "hdc" with the appropriate device name.
/sbin/modprobe ide-scsi

From fstab:

/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/cdwriter /mnt/cdwriter iso9660 noauto,user,ro 0 0

From /dev (2.4.27 kernel)

lrwxrwxrwx 1 root root 8 2004-08-10 08:20 /dev/cdrom -> /dev/sr0
lrwxrwxrwx 1 root root 3 2004-08-10 23:39 /dev/cdwriter -> /dev/sr1

brw-rw-rw- 1 root cdrom 11, 0 1999-04-13 00:24 /dev/sr0
brw-rw-rw- 1 root cdrom 11, 1 1999-04-13 00:24 /dev/sr1

File permissions:

~$ ls -l /usr/bin/cdrdao
-rws--x--x 1 root root 563540 2004-06-08 15:57 /usr/bin/cdrdao*
~$ ls -l /usr/bin/cdrecord
-rws--x--x 1 root root 317404 2004-09-09 19:41 /usr/bin/cdrecord*

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-19-2008, 03:59 PM
Ivan
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

On Thu, 30 Sep 2004 02:23:46 +0000, Franklin wrote:

> On Thu, 30 Sep 2004 01:51:03 +0000, Ayaz Ahmed Khan wrote:
>
>> "Kiki Novak" typed:


>>> kernel=/vmlinuz root=/dev/hda3 hdc=ide-scsi ro

>>
>> I may be wrong, but shouldn't that be something like
>>
>> append="hdc=ide-scsi"


>I believe you are correct:
> # Start LILO global section
> append="hdc=ide-scsi hdd=ide-scsi"



yes for lilo, but he's using grub, and the way he did it is ok.

i.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-19-2008, 04:00 PM
MikeyD
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

Kiki Novak wrote:

> MikeyD wrote:
>
>> Try uncommenting the scsi related lines in the same file - especially sg
>> and sr_mod. But IIRC slack doesn't have any scsi modules. So you either
>> have to install a kernel with scsi support off the cd

>
> I tried this, but you are right. I only have the stock bare.i kernel.
>
> Two questions to that:
>
> 1) There are three SCSI kernels on the first Slackware CD, in /kernels.
> scsi.s, scsi2.s and scsi3.s. Which one to choose?


Doesn't matter if you don't have any real scsi adapters.
>
> 2) I don't know how to install any of these without having to reinstall
> everything from scratch? Is there a way to do that?
>

Yes. Copy everything from the kernels/name directory into /boot.
Edit /etc/lilo.conf and add a section for /boot/bzImage.
Run /sbin/lilo.
It's a good idea to compile your own kernel at some stage though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-19-2008, 04:00 PM
Kiki Novak
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

MikeyD wrote:

> It's a good idea to compile your own kernel at some stage though.


The question is not: is there some doc about it? D

It's rather: is there one you would recommend for a non-technician with a
reasonable interest in how things work on his PC?

NK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-19-2008, 04:01 PM
+Alan Hicks+
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Ayaz Ahmed Khan dared to utter,
>> title Linux Slackware 10.0
>> root (hd0,1)
>> kernel=/vmlinuz root=/dev/hda3 hdc=ide-scsi ro

>
> I may be wrong, but shouldn't that be something like
>
> append="hdc=ide-scsi"


You're wrong. For one thing he's using GRUB, for another, he's actually
specifying it on the kernel line. The append line tells LILO to "append
this to the kernel line when booting". Basically he's already appended
it.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBXJfalKR45I6cfKARAo/0AJ9XGV5/MXXU0whowRUDnYgpqp47EgCfYCHo
XW8tVNGaBDO83G7N4jjwdgs=
=na7K
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 02-19-2008, 04:01 PM
+Alan Hicks+
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

pgp trash troll delete

Hicks, Alan
188 Shady Dale Dr
Lizella, GA 31052
478-935-8132

+Alan Hicks+ <alan@lizella.network> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In alt.os.linux.slackware, Ayaz Ahmed Khan dared to utter,
>>> title Linux Slackware 10.0
>>> root (hd0,1)
>>> kernel=/vmlinuz root=/dev/hda3 hdc=ide-scsi ro

>>
>> I may be wrong, but shouldn't that be something like
>>
>> append="hdc=ide-scsi"

>
> You're wrong. For one thing he's using GRUB, for another, he's actually
> specifying it on the kernel line. The append line tells LILO to "append
> this to the kernel line when booting". Basically he's already appended
> it.
>
> - --
> It is better to hear the rebuke of the wise,
> Than for a man to hear the song of fools.
> Ecclesiastes 7:5
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQFBXJfalKR45I6cfKARAo/0AJ9XGV5/MXXU0whowRUDnYgpqp47EgCfYCHo
> XW8tVNGaBDO83G7N4jjwdgs=
> =na7K
> -----END PGP SIGNATURE-----

















Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 02-19-2008, 04:03 PM
Ayaz Ahmed Khan
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

"+Alan Hicks+" typed:
> In alt.os.linux.slackware, Ayaz Ahmed Khan dared to utter,
>>> title Linux Slackware 10.0
>>> root (hd0,1)
>>> kernel=/vmlinuz root=/dev/hda3 hdc=ide-scsi ro

>>
>> I may be wrong, but shouldn't that be something like
>>
>> append="hdc=ide-scsi"

>
> You're wrong. For one thing he's using GRUB, for another, he's actually
> specifying it on the kernel line. The append line tells LILO to "append
> this to the kernel line when booting". Basically he's already appended
> it.


Right. Thanks. This is, however, the first time I have come across
someone using GRUB with Slackware.

--
Ayaz Ahmed Khan, <http://fast-ce.org/linux>
"This is Linux Country. On a quiet night, you can hear NT reboot."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 02-19-2008, 04:03 PM
MikeyD
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

Kiki Novak wrote:

> MikeyD wrote:
>
>> It's a good idea to compile your own kernel at some stage though.

>
> The question is not: is there some doc about it? D
>
> It's rather: is there one you would recommend for a non-technician with a
> reasonable interest in how things work on his PC?
>

Just try it. Really. I did. Untar the source, then make menuconfig, make
dep, make bzImage, make modules, make modules_install. Then copy
System.map, .config (rename to config) and arch/i386/boot/bzImage to /boot
(renaming if necessary). Then add lilo entries. Don't remove your old one
at first, in case you've forgotten something important, and read any error
messages you get. When doing the menus, the defaults are usually ok. Select
anything for a periphial or filesystem you are using. If you're not sure
which module your hardware uses, for non-essential stuff e.g. nic just
compile all of them as modules. If you're not sure about an option, include
it - you're not limited to making the kernel fit onto a 1.4mb floppy like
Pat is when making the distribution kernels.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 02-19-2008, 04:03 PM
+Alan Hicks+
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, Ayaz Ahmed Khan dared to utter,
> Right. Thanks. This is, however, the first time I have come across
> someone using GRUB with Slackware.


It's not that uncommon for people coming from another distro to
dual-boot both using GRUB, even though GRUB isn't included in
Slackware.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBXXjwlKR45I6cfKARAouQAJ9K6GyQbylWZXI7slXvVV M3jaUT3wCfSyXD
Jt2bUoOA52YVIoPawVbZrvU=
=gN3U
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 02-19-2008, 04:03 PM
+Alan Hicks+
 
Posts: n/a
Default Re: SCSI emulation with Slack 10.0

NOTE: This message was sent thru a mail2news gateway.
No effort was made to verify the identity of the sender.
--------------------------------------------------------

pgp trash troll delete

Hicks, Alan
188 Shady Dale Dr
Lizella, GA 31052
478-935-8132

+Alan Hicks+ <alan@lizella.network> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In alt.os.linux.slackware, Ayaz Ahmed Khan dared to utter,
>> Right. Thanks. This is, however, the first time I have come across
>> someone using GRUB with Slackware.

>
> It's not that uncommon for people coming from another distro to
> dual-boot both using GRUB, even though GRUB isn't included in
> Slackware.
>
> - --
> It is better to hear the rebuke of the wise,
> Than for a man to hear the song of fools.
> Ecclesiastes 7:5
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
>
> iD8DBQFBXXjwlKR45I6cfKARAouQAJ9K6GyQbylWZXI7slXvVV M3jaUT3wCfSyXD
> Jt2bUoOA52YVIoPawVbZrvU=
> =gN3U
> -----END PGP SIGNATURE-----











Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com