LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Can't mount /media/cdrom0 - Ubuntu:Feisty 7.04 (https://www.linuxquestions.org/questions/linux-hardware-18/cant-mount-media-cdrom0-ubuntu-feisty-7-04-a-568457/)

misstajah 07-11-2007 11:23 AM

Can't mount /media/cdrom0 - Ubuntu:Feisty 7.04
 
Hello folks!

There are a lot of threads on cdrom mounting, but none of them had the solution I need, so I decided to post a new thread.

I can't mount my cdrom drive. On with the outputs:
Code:

misstajah@MJhost:~$ mount /media/cdrom0
mount: special device /dev/hda does not exist

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
.
.
.
/dev/hda        /media/cdrom0  udf,iso9660 user,noauto    0      0

Code:

misstajah@MJhost:~$ ls -l /dev | grep hda
/*NOTHING*/

What can I do? :( Thanks in advance.

masinick 07-11-2007 11:57 AM

What kind of devices do you have? IDE, SCSI?
 
Quote:

Originally Posted by misstajah
Hello folks!

There are a lot of threads on cdrom mounting, but none of them had the solution I need, so I decided to post a new thread.

I can't mount my cdrom drive. On with the outputs:
Code:

misstajah@MJhost:~$ mount /media/cdrom0
mount: special device /dev/hda does not exist

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
.
.
.
/dev/hda        /media/cdrom0  udf,iso9660 user,noauto    0      0

Code:

misstajah@MJhost:~$ ls -l /dev | grep hda
/*NOTHING*/

What can I do? :( Thanks in advance.

First figure out what kind of devices you have.

more /proc/partitions to find out what kind of disks you use.

more /proc/devices to find out which devices are used by your system.

From there, we'll get a better idea of whether you have IDE or SCSI devices. /dev/hda is the first IDE device - usually a DISK, not a CDROM. /dev/hdc or /dev/hdd are commonly the CDROM or CD/RW device when IDE naming conventions are used. When SCSI naming conventions are used, the devices begin with sd, for example /dev/sda, /dev/sdc, etc.

Find out what you have by examining the files in /proc, and that will help determine what you are using, and then we can adjust the file system table, fstab, accordingly.

misstajah 07-11-2007 01:48 PM

Code:

misstajah@MJhost:~$ more /proc/partitions
major minor  #blocks  name

  8    0  156290904 sda
  8    1    5120000 sda1
  8    2  93773824 sda2
  8    3    1052257 sda3
  8    4    5245222 sda4

Code:

misstajah@MJhost:~$ more /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  6 lp
  7 vcs
 10 misc
 13 input
 14 sound
 21 sg
 29 fb
 81 video4linux
 99 ppdev
116 alsa
128 ptm
136 pts
171 ieee1394
180 usb
189 usb_device
216 rfcomm
254 usb_endpoint

Block devices:
  1 ramdisk
  8 sd
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd

I believe I'm using SCSI. My hard drive is a SATA one.

Kahless 07-12-2007 12:08 AM

what is the manufacture an model number for the computer?


if we assume the drive is ide, there are a very finite number of commands that should mount it sucessfully. try these


mount /dev/hda /mnt
mount /dev/hdb /mnt
mount /dev/hdc /mnt
mount /dev/hdd /mnt
mount /dev/hde /mnt
mount /dev/hdf /mnt


If your cdrom is ide (most likley) and you dont have more than 3 ide channels (very unlikley) one of these commands mount your disk on /mnt.

If you want to mount it somwhere other than /mnt feel free to substitue /media/, /media/cdrom, or whatever you want for the /mnt in the command.

If none of these work, then you have a scsi or sata drive. If thats the case, one of these will work.
mount /dev/sda /mnt
mount /dev/sdb /mnt
mount /dev/sdc /mnt
mount /dev/sdd /mnt
mount /dev/sde /mnt
mount /dev/sdf /mnt
mount /dev/sdg /mnt
mount /dev/sdh /mnt



If this seems like senseless hacking, thats because it is. but since I dont know your system, i gotta give you some good guesses :)

Let us know how you make out, and if none of this works, try to give us more info.


By the way, you can copy/paste these into the console by highlighing the command here, and clicking your middle mouse button in your xterm window.

misstajah 07-12-2007 03:53 AM

Well, aparently only /dev/sda exists... But that's for the hard drive :confused:

My guess is that the CD drive (which is an ASUS DVD+/- RW DL) is like it's not there... it's not in any folder of interest, no hdc, no sdc, no nothing :S

The /etc/fstab refers to sda1, sda2, sda3 and sda4, which are the four partitions I have on the hard drive :S

nx5000 07-12-2007 04:40 AM

This should tell you if linux recognized your cd/dvd (looks like it didn't..)
Code:

egrep "CD|DVD" /var/log/messages

Kahless 07-12-2007 10:41 AM

Another possible cause of the problem....


check your bootloader to see if there is a line in it as follows:

Code:

append="hdc=ide-scsi"
If it does, try removing it, if your using lilo running lilo again to re-write the boot record, and reboot.


What might have happened is if you have that append line in, which is needed for a 2.4 kernel to burn cds, but you are running a 2.6 kernel, it could break things :)



Let us know if thats the case :p

misstajah 07-12-2007 02:05 PM

Code:

misstajah@MJhost:~$ egrep "CD|DVD" /var/log/messages
Jul 12 09:45:27 MJhost kernel: [  127.760000] Unable to identify CD-ROM format.

the append line is not included and I am using 2.6 kernel...

:confused:

misstajah 07-18-2007 05:07 AM

I still haven't figured the problem out, anyone can help me?

I tried to append the drive on boot but I don't know how to do it permanently :S

michaelk 07-18-2007 07:04 AM

Look at the output of the console command dmesg. Is your cdrom detected?
dmesg | grep CD (remember linux is case sensitive)

gridl0ck 07-18-2007 07:26 AM

Cdroms and dvd drives are identified as /dev/scd[X] in Feisty, due to the new libata drivers in 2.6.20 kernel. All drives are seen as scsi. In your case, that would be /dev/scd0 :)

misstajah 07-18-2007 11:02 AM

michaelk: nothing appears on CD, just an acpi thing not regarding CD units...

gridl0ck: /dev/scd0 doesn't exist either :S it just won't recognize my CD drive :cry: what can I do with this? I'm starting to become annoyed with all this :confused: :cry:


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