LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-20-2006, 01:55 PM   #1
robmool
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
Livecd cannot mount CDROM (/dev/sr0)


Hi,

I'm trying to make my own live CD using the SuSE distribution 10.0.

I build my own kernel which works fine booting from harddisk and I'm able to mount my CDROM (/dev/sr0).

Whenever I boot from CDROM the kernel, initrd are loaded fine. The shell script linuxrc
is invoked but is unable to mount me CDROM, even if I load the modules by hand.

I don't understand what's happening.

Any help would be apreciated.

Rob
 
Old 09-27-2006, 01:05 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I believe that you are experiencing the difference between using the IDE drivers vs. SCSI emulation. When the CDROM/DVD is mapped to /dev/sr0 you are using the SCSI emulation drivers to access the device. When you don't use SCSI emulation then the device will (probably) be mapped to /dev/hd? where the ? is an alphabetic character such as a, or b, or c. So you may find that your CDROM/DVD is mapped to /dev/hdc, for example. You can look around in the proc file system to see if you can find the mapping of the CDROM/DVD. Here is how I can see my CDROM/DVD in the /proc file system.
Code:
root> ls /proc/ide
drivers  hda  hdb  hdc  hdd  ide0  ide1

root> ls -l /proc/ide
total 4
-r--r--r-- 1 root root 0 Sep 27 14:03 drivers
lrwxrwxrwx 1 root root 8 Sep 27 14:03 hda -> ide0/hda
lrwxrwxrwx 1 root root 8 Sep 27 14:03 hdb -> ide0/hdb
lrwxrwxrwx 1 root root 8 Sep 27 14:03 hdc -> ide1/hdc
lrwxrwxrwx 1 root root 8 Sep 27 14:03 hdd -> ide1/hdd
dr-xr-xr-x 4 root root 0 Sep 27 14:03 ide0
dr-xr-xr-x 4 root root 0 Sep 27 14:03 ide1

root> ls -l /proc/ide/ide1
total 0
-r--r--r-- 1 root root 0 Sep 27 14:04 channel
dr-xr-xr-x 2 root root 0 Sep 27 14:04 hdc
dr-xr-xr-x 2 root root 0 Sep 27 14:04 hdd
-r--r--r-- 1 root root 0 Sep 27 14:04 mate
-r--r--r-- 1 root root 0 Sep 27 14:04 model

root> ls -l /proc/ide/ide1/hdc
total 0
-r--r--r-- 1 root root 0 Sep 27 14:04 capacity
-r--r--r-- 1 root root 0 Sep 27 14:04 driver
-r-------- 1 root root 0 Sep 27 14:04 identify
-r--r--r-- 1 root root 0 Sep 27 14:04 media
-r--r--r-- 1 root root 0 Sep 27 14:04 model
-rw------- 1 root root 0 Sep 27 14:04 settings

root> cat /proc/ide/ide1/hdc/model
SONY DVD RW DRU-500A

root>

Last edited by stress_junkie; 09-27-2006 at 01:06 PM.
 
Old 09-28-2006, 02:52 AM   #3
robmool
LQ Newbie
 
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks stress_junkie for yout reply.

I also find out that the module "ata_piix" wasn't loaded which was the main problem.
 
  


Reply

Tags
cdrom, livecd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
mount /dev/hdc /dev/cdrom doesn't work ShrikesHarvest Linux - Newbie 10 02-21-2009 07:05 AM
Can't mount /dev/cdrom umbala Linux - General 11 02-21-2006 07:07 PM
external cdrw assigned to /dev/uba instead of /dev/sr0 gchew Slackware 0 11-14-2004 03:22 AM
can't mount /dev/cdrom no matter what I do a52b52 Linux - General 4 05-14-2004 12:10 AM


All times are GMT -5. The time now is 06:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration