View previous topic :: View next topic |
Author |
Message |
williamenck n00b
Joined: 08 Nov 2004 Posts: 38
|
Posted: Thu Nov 25, 2004 2:51 am Post subject: can't mount /dev/cdrom |
|
|
when I try to mount /dev/cdrom it says that it is not a valid block device. I was able to install from my dvdrom but now I am unable to mount it now that the installation is done.
Any ideas |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Thu Nov 25, 2004 2:56 am Post subject: |
|
|
Most likely, you do not have cd/dvd support loaded into your kernel. If you compiled it as a modules, you may need to load it, but I would guess you did not compile it in at all.
What does your .config file have for CONFIG_BLK_DEV_IDECD? |
|
Back to top |
|
|
pwehrwein n00b
Joined: 30 Jan 2004 Posts: 24
|
Posted: Thu Nov 25, 2004 3:03 am Post subject: |
|
|
can you post the output from ls -AF /dev/cd*
/dev/cdrom may be the wrong name _________________ Take a deep breath.
I run (alphabetically): Gentoo, OpenBSD, Mac OS X, and Windows XP. |
|
Back to top |
|
|
giodegas n00b
Joined: 17 Jul 2004 Posts: 17 Location: ITALY
|
Posted: Thu Jan 06, 2005 9:46 pm Post subject: cdrom not a valid block device |
|
|
I have hdc listed in dmesg:
ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdc:pio, hdd:pio
(it is a CD/RW-DVD combo drive)
udev cdsymlinks.conf:
OUTPUT="CD CDRW DVD"
50-udev.rules:
BUS="ide1", KERNEL="hdc", PROGRAM="/etc/udev/scripts/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
but still can not mount /mnt/cdrom having the error:
mount: /dev/cdrom is not a valid block device
why? |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Thu Jan 06, 2005 10:58 pm Post subject: |
|
|
What is the output of the command
If it points to /dev/cdroms/... Also do the same for what it points to. |
|
Back to top |
|
|
giodegas n00b
Joined: 17 Jul 2004 Posts: 17 Location: ITALY
|
Posted: Fri Jan 07, 2005 7:38 am Post subject: |
|
|
whell, it actualy points to
Code: |
lrwxrwxrwx 1 root root 3 Jan 6 23:08 /dev/cdrom -> hdd
|
hdd, which does not exists!
How can I fix it?
Thank's |
|
Back to top |
|
|
Corvy n00b
Joined: 16 Apr 2003 Posts: 34
|
Posted: Fri Jan 07, 2005 8:17 am Post subject: |
|
|
Try to sym link to /dev/cdroms/cdrom0, that usually works.
Code: | ln -sf /dev/cdrom /dev/cdroms/cdrom0 |
Alternatvely you can sym link it to the hdc directly.
Code: | ln -sf /dev/cdrom /dev/hdc |
_________________ Best regards
Stian B. Barmen |
|
Back to top |
|
|
giodegas n00b
Joined: 17 Jul 2004 Posts: 17 Location: ITALY
|
Posted: Fri Jan 07, 2005 8:48 am Post subject: |
|
|
Unfortunately can not do it:
Something is very wrong...
Code: |
ls /sys/block
hda loop1 loop3 loop5 loop7 ram1 ram11 ram13 ram15 ram3 ram5 ram7 ram9
loop0 loop2 loop4 loop6 ram0 ram10 ram12 ram14 ram2 ram4 ram6 ram8
ls -l /dev/cd*
lrwxrwxrwx 1 root root 3 Jan 7 2005 /dev/cdrw -> hdd
brw-rw---- 1 root cdrom 24, 0 Oct 24 04:11 /dev/cdu535
/dev/cdroms:
total 0
lrwxrwxrwx 1 root root 6 Jan 7 2005 cdrom0 -> ../hdd
|
hdd !!???!?!
Maybe my udev rules are wrong? |
|
Back to top |
|
|
Corvy n00b
Joined: 16 Apr 2003 Posts: 34
|
Posted: Fri Jan 07, 2005 9:01 am Post subject: |
|
|
This is very strange.
What happened when you did:
Code: | ln -sf /dev/cdrom /dev/hdc |
_________________ Best regards
Stian B. Barmen |
|
Back to top |
|
|
giodegas n00b
Joined: 17 Jul 2004 Posts: 17 Location: ITALY
|
Posted: Sat Jan 08, 2005 4:39 pm Post subject: |
|
|
If I do your command it would create a link called "hdc" that points to "cdrom".
Even giving the command the other way round:
Code: |
ln -s /dev/hdc /dev/cdrom
|
gives no results.
hdc does not exists in /dev ! |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Sat Jan 08, 2005 6:52 pm Post subject: |
|
|
What is in your /proc/ide directory? Do you have an hdc there? What is in /proc/ide/drivers? |
|
Back to top |
|
|
giodegas n00b
Joined: 17 Jul 2004 Posts: 17 Location: ITALY
|
Posted: Sun Jan 09, 2005 5:42 pm Post subject: |
|
|
Code: |
ls /proc/ide
drivers hda ide0 via
more /proc/ide/drivers
ide-cdrom version 4.61
ide-disk version 1.18
|
Apparently only hda is present..!
thank's |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Sun Jan 09, 2005 9:15 pm Post subject: |
|
|
That what it looks like. Do you see anything from the kernel about hdc or hdd (whatever your cd is supposed to be) when you boot? You can check this with dmesg (pipe the output to less and see what it says when it recognizes hda). |
|
Back to top |
|
|
Corvy n00b
Joined: 16 Apr 2003 Posts: 34
|
Posted: Mon Jan 10, 2005 8:11 am Post subject: |
|
|
I have no other idea than that you might need som more kernel modules loaded or compiled in to support you're IDE controller or whatever. It seems that you're kernel is not detecting the cdrom properly.
Thats my best idea anyways.
(might need pci-tools installed)
Alternatively:
Code: | cat /proc/pci |grep IDE |
See if the IDE Interface name is supported by some special driver in the kernel and compile it in. Maybe do a google on http://www.google.com/linux for the IDE controller.
Sorry to not be of better help. _________________ Best regards
Stian B. Barmen |
|
Back to top |
|
|
mute_dammit n00b
Joined: 01 Jul 2003 Posts: 6
|
Posted: Wed Feb 16, 2005 1:30 am Post subject: Solution? |
|
|
I had the same problem, and found that it stemmed from a grub configuration issue.
For some reason, "hdc=ide-scsi" was appended to all of the entries in my grub.conf file. Maybe this is something that happened before I transitioned from the 2.4 kernel to 2.6.
Anyhow, after removing that argument udev created /dev/cdroms/* properly. |
|
Back to top |
|
|
|