HowToEnableSCSIEmulationWithHoaryKernel26

Differences between revisions 3 and 4
Revision 3 as of 2005-09-23 18:56:56
Size: 4212
Editor: ip68-107-227-12
Comment:
Revision 4 as of 2006-06-19 16:06:25
Size: 85
Editor: 127
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Linux used to have SCSI emulation enabled by default. SCSI emulation was removed from the 2.6 kernel. Unfortunately, older applications (including wine) seem to need SCSI emulation in order to burn cd's.

SCSI emulation is where linux sees your ide CD-ROM, and creates a virtual SCSI interface for it. This fools your applications into thinking you have a SCSI drive. I've had some trouble burning CDs in Ubuntu with both cdrecord and wine. Since 2.6 changed the IDE support, we have to re-enable the scsi layer to get some things working. BE VERY CAREFUL, as the wrong typos could cause serious problems.

1. Go to the applications menu and run the application "gksudo gedit". This will give you the text editor with root privileges. Close the default blank document.

2. Open filesystem > etc > fstab

3. Look for line(s) similar to this, where it says "media/cdrom". Those lines designate your CD burner(s). Later, we'll be changing this to SCSI emulation. For now, however, just copy down the bit where it says "hd" with a trailing letter. Here's an example line from my fstab file. I have just one burner at "/dev/hdc" .
{{{
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
}}}

4. Open filesystem > boot > grub > menu.lst

5. Go down where it says "End default options". Look for the next line that starts with "kernel". It should look similar to this.
{{{
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda1 ro quiet splash
}}}

6. You have to modify this to tell Linux you want your CD-rom to use "ide-scsi" emulation. After the bit that says "root= whatever", add "hdx=ide-scsi" . "hdx" will be whatever it said in your fstab above. For example, mine is "hdc=ide-scsi". Remember, everything on the "kernel" line has to stay on one line. Here is my menu.lst with the change added.
{{{
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda1 hdc=ide-scsi ro quiet splash
}}}

7. Save the menu.lst file. Again, remember, everything on the "kernel" line has to stay on one line.

8. Open filesystem > etc > modules

9. Now we have to tell linux to actually load the ide-scsi module. You'll see several lines indicating ide, along with some other items. In order to enable scsi emulation, we have to add the "ide-scsi" kernel module. Place this right after the ide lines. Here is my example snippet of the "modules" file with ide-scsi added.
{{{
ide-cd
ide-disk
ide-generic
ide-core
ide-scsi
lp
mousedev
psmouse
}}}

10. Make sure your "modules" and "menu.lst" files are saved.

11. Reboot. When your system boots up, your cd drives should now be running under SCSI emulation. However, we still need to make a few changes.

12. Go into your /dev directory. You'll still have your root and swap partitions starting with "hd". However your CD drives should no longer be listed as "hd" . Instead, look for items starting with "scd". These are your CD-rom drives, now changed to SCSI emulation. My drive used to be "hdc", now it is "scd0". Note down all the "scd" items that you have.

13. We're almost done. Now, we have to edit your fstab again. Run "gksudo gedit" and open /etc/fstab , just like in steps 1-4 above.

15. You'll still have the "/dev/hdx" line just like you did before. Now this has to be changed to "scd0" instead of "hdc". Look for the "/dev/hdx" line. Copy and paste it so it's listed twice, like this.
{{{
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
}}}

17. Comment out the original cd-rom line with a # at the beginning of the line. Then change the "hdx" bit to read "scd" and the number. Add one "scd" line for each CD drive you have. The "scd" entries have to match whatever's listed in the /dev directory. Here is my fstab for example:
{{{
#/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
}}}

18. Reboot

19. You're done! Congratulations, you're now running your CD burner under SCSI emulation. Now, all your older apps needing SCSI emulation should work fine.

CategoryDocumentation CategoryCleanup CategoryKernel
#REFRESH 0 http://help.ubuntu.com/community/HowToEnableSCSIEmulationWithHoaryKernel26

HowToEnableSCSIEmulationWithHoaryKernel26 (last edited 2008-08-06 16:13:40 by localhost)