LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-17-2004, 01:15 PM   #1
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Rep: Reputation: 15
Mounting Cdrom - (Only sees my SATA. No IDE)


Hi there,

I'm trying to mount my CD-ROM but couldn't find it at /dev/cdrom or /dev/hdc or /dev/hdd etc.

When i run dmesg | grep hd

Code:
debian:/home/azri# dmesg | grep hd
SCSI device sda: 488397168 512-byte hdwr sectors (250059 MB)
I don't even see my hda. Please help. Thanks.

Last edited by Underhill; 09-19-2004 at 04:58 AM.
 
Old 09-17-2004, 06:05 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
Do you have the module ide-cd/cdrom (kernel 2.6 name) loaded and is there an entry in fstab for the cdrom?
 
Old 09-17-2004, 09:49 PM   #3
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
No entry for Cd-Rom in fstab, i'm trying to create one. When i lsmod, i found this:

ide_cd 38916 0
ide_core 127448 2 piix,ide_cd
cdrom 35360 1 ide_cd
 
Old 09-17-2004, 09:56 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Okay what device is the CD on? Try grepping for CD-ROM or CDROM.
 
Old 09-17-2004, 10:00 PM   #5
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
Sorry, how do i do that. My CD drive is IDE.
 
Old 09-17-2004, 10:17 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
To know what device you CDROM is under this will help:
hda is Primary Master ( usually your Hard disk )
hdb is Primary Slave
hdc is Secondary Master ( Normally where your CD is )
hdd is Secondary Slave

first login as root, and then create a mount point for the CDROM. Usually the install has made one for you, either /cdrom /mnt/cdrom or /media/cdrom. If you dint have one of these too create one use the command mkdir.

i.e.
mkdir /mnt/cdrom

Next place a CD in the drive and type

mount -t iso9660 /dev/hdc /mnt/cdrom

( Adjusting /dev/hdc and the mount point appropriately ). If it fails you may have the wrong device so try another.

Once you get this working you'll know what line to enter in the /etc/fstab file. for instance this is mine

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

If your wondering iso9660 is simply the file format for data cd's. Its important to note you don't mount music CD's. These are played directly from the device.

Last edited by leonscape; 09-17-2004 at 10:18 PM.
 
Old 09-17-2004, 10:49 PM   #7
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
I've tried that before.

mount: special device /dev/hdc does not exist
mount: special device /dev/hdd does not exist

I couldn't even mount my hda. Seems like it only sees my sda.
 
Old 09-17-2004, 10:55 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
try sda, what might be going on is that you have scsi emulation enabled for this device, so Linux is treating it as scsi and not ide.

This is used mainly for CDRW. look in /etc/lilo.conf or /boot/grub/menu.lst for something that reads hdc=scsi-ide or similar.
 
Old 09-17-2004, 11:48 PM   #9
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
i am having similar problem....burning CD is fine....using scsi emulation with 2.6 kernel ...even thou IDE is recommended i could never get it to work....however i cannot mount ISO cds...
 
Old 09-18-2004, 12:10 AM   #10
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by leonscape
try sda, what might be going on is that you have scsi emulation enabled for this device, so Linux is treating it as scsi and not ide.

This is used mainly for CDRW. look in /etc/lilo.conf or /boot/grub/menu.lst for something that reads hdc=scsi-ide or similar.
Couldn't find that hdc=scsi-ide or similar. Here it is:

Code:
title		Debian GNU/Linux, kernel 2.6.7-1-386 
root		(hd1,6)
kernel		/boot/vmlinuz-2.6.7-1-386 root=/dev/sda7 ro 
initrd		/boot/initrd.img-2.6.7-1-386
savedefault
boot
Here's my /etc/fstab if that help:

Code:
/dev/sda7               /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/sda6               swap                    swap    defaults        0 0
/dev/floppy/0	/media/hal/Floppy	auto	noauto,user,exec 0 0
/dev/scsi/host0/bus0/target0/lun0/part5	/media/hal/Data	vfat	noauto,user,exec 0 0
/dev/scsi/host0/bus0/target0/lun0/part2	/media/hal/disk-8-2-	auto	noauto,user,exec 0 0
/dev/scsi/host0/bus0/target0/lun0/part6	/media/hal/disk-8-6-	swap	noauto,user,exec 0 0
/dev/scsi/host0/bus0/target0/lun0/part1	/media/hal/disk-8-1-	ntfs	noauto,user,exec 0 0
/dev/scsi/host0/bus0/target0/lun0/part7	/media/hal/disk-8-7-	ext3	noauto,user,exec 0 0
I should have my hda (my Windows XP) and Cdrom, but nadha.

Thanks
 
Old 09-18-2004, 10:06 AM   #11
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
hmmmm no reply

Anyway, where can i see the boot log?
 
Old 09-18-2004, 04:38 PM   #12
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
The boot log are usually in /var/log/ are you sure its not scsi?

use dmesg | grep CD

Should return any CD-ROM drives.

hdc: TOSHIBA DVD-ROM SD-M1502, ATAPI CD/DVD-ROM drive
hdd: CD-W54E, ATAPI CD/DVD-ROM drive

is what I get.
 
Old 09-18-2004, 11:42 PM   #13
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
I get nothing with dmesg | grep CD. I'm sure it's not SCSI, i put this drive by myself. And furthermore, i couldnt see my hda (80 IDE).

With fdisk -l

Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       11937    95883921    7  HPFS/NTFS
/dev/sda2           11938       30401   148312080    f  W95 Ext'd (LBA)
/dev/sda5           11938       25051   105338173+   b  W95 FAT32
/dev/sda6           30274       30401     1028128+  82  Linux swap
/dev/sda7           25052       30273    41945683+  83  Linux
Where's my other IDE drive? Do i have to load some module or something?

I saw when booting, something like proc cat /media/*/ide no such file or directory. Could it be the problem? Couldn't find the exact message in /var/log

Last edited by Underhill; 09-19-2004 at 12:18 AM.
 
Old 09-20-2004, 01:01 AM   #14
Underhill
Member
 
Registered: Aug 2004
Location: Kuala Lumpur, Malaysia
Distribution: Debian Etch
Posts: 58

Original Poster
Rep: Reputation: 15
bump
 
Old 09-20-2004, 02:42 PM   #15
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Okay, this is strange as you seem to be using a standard Kernel which does have IDE stuff already built in, your scsi disk is showing though. hmmm.

try

dmesg | grep ide

to see if you get anything from it.
 
  


Reply


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 mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 05:46 PM
cdrom mounting simcox1 Slackware 1 09-18-2005 11:00 AM
mounting cdrom binboy35 Debian 8 11-06-2004 12:22 AM
about mounting cdrom rabside Linux - Newbie 1 04-23-2004 02:51 PM
mounting a cdrom PlatinumRik Linux - Networking 6 05-27-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration