LinuxQuestions.org
Review your favorite Linux distribution.
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-28-2008, 09:16 AM   #1
simonb
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Rep: Reputation: 0
CDROM found in /proc/scsi/scsi but no /dev entry. Trying to make livecd.


I am trying to debug the Mandriva 2009 mklivecd script. It's well known that it has been broken for some time so I am attempting to bring it up to date because I need it to work. I am using kernel 2.6.27.5-desktop-2mnb.

When I boot the ISO in VirtualBox it loads all the modules OK but can't find the cdrom. I suspect there is some module I have missed out but can't guess what it is.

The CDROM ISO is presented as an ide device by VirtualBox (i.e. I'm not doing anything unusual) and appears to be detected as a SCSI device.

I have also attached a virtual IDE disk but that also doesn't show up in /dev.

Code:
cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel:00 Id: 00 Lun: 00
  Vendor: VBOX  Model: CD-ROM  Rev: 1.0
  Type:   CD-ROM               ANSI SCSI
Code:
lsmod (only modules and used by listed since I have no copy/paste from terminal)
Module			Used by
3w_xxxx			Live
usb_storage		Live
ehci_hcd		Live
ohci_hcd		Live
uhci_hcd		Live
usbcore			usb_storage,ehci_hcd,ohci_hcd,uhci_hcd, Live
i2c_piix4		Live
i2c_core		i2c_piix4, Live
scsi_transport_sas	Live
ide_scsi		Live
ide_core		ide_scsi, Live
isofs			Live
mptbase			Live
sd_mod			Live
crc_t10dif		sd_mod, Live
sr_mod			Live
loop			Live
ata_piix		Live
ahci			Live
libata			ata_piix,ahci, Live
scsi_mod		3w_xxxx,usb_storeage,scsi_transport_sas,ide_scsi,sd_mod,sr_mod,libata, Live
dock			libata, Live
Code:
ls /dev
core	fd	null	pts	stderr	stdin	stdout

Last edited by simonb; 11-28-2008 at 09:21 AM.
 
Old 11-29-2008, 04:05 AM   #2
simonb
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
CDROM found in /proc/scsi/scsi but no /dev entry. Trying to make livecd. SOLVED

OK. I'm answering my own post here :-)

The problem turned out to be that udev has depreciated the udevstart command that the initrc script was using to generate the device nodes.

Getting it to work with Mandriva 2009 involves using the start_udev script. This in turn depends on /etc/rc.d/init.d/functions being present which doesn't work with busybox's ash so bash and it's libraries also need to be copied.

Once the new udev start script is happy then the CDROM is available as /dev/sr0 as expected.

I now have a working Live CD so I have posted the patches to this bug report.
https://qa.mandriva.com/show_bug.cgi?id=46068

Last edited by simonb; 11-29-2008 at 04:50 AM.
 
  


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
fatal error - Data for LiveCd not found. Are you using SCSI? dr_zayus69 Linux - Distributions 2 06-07-2005 12:41 PM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 02:28 PM
Some info about '/proc/scsi/scsi' and '/dev' C.Loko Slackware 4 11-27-2003 12:30 PM
allow non root users add devices to /proc/scsi/scsi ? ewto Linux - Newbie 5 10-14-2003 11:36 AM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM

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

All times are GMT -5. The time now is 11:44 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