Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't mount /dev/cdrom
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
williamenck
n00b
n00b


Joined: 08 Nov 2004
Posts: 38

PostPosted: Thu Nov 25, 2004 2:51 am    Post subject: can't mount /dev/cdrom Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Thu Nov 25, 2004 2:56 am    Post subject: Reply with quote

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
View user's profile Send private message
pwehrwein
n00b
n00b


Joined: 30 Jan 2004
Posts: 24

PostPosted: Thu Nov 25, 2004 3:03 am    Post subject: Reply with quote

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
View user's profile Send private message
giodegas
n00b
n00b


Joined: 17 Jul 2004
Posts: 17
Location: ITALY

PostPosted: Thu Jan 06, 2005 9:46 pm    Post subject: cdrom not a valid block device Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Thu Jan 06, 2005 10:58 pm    Post subject: Reply with quote

What is the output of the command
Code:

ls -l /dev/cdrom

If it points to /dev/cdroms/... Also do the same for what it points to.
Back to top
View user's profile Send private message
giodegas
n00b
n00b


Joined: 17 Jul 2004
Posts: 17
Location: ITALY

PostPosted: Fri Jan 07, 2005 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Corvy
n00b
n00b


Joined: 16 Apr 2003
Posts: 34

PostPosted: Fri Jan 07, 2005 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
giodegas
n00b
n00b


Joined: 17 Jul 2004
Posts: 17
Location: ITALY

PostPosted: Fri Jan 07, 2005 8:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Corvy
n00b
n00b


Joined: 16 Apr 2003
Posts: 34

PostPosted: Fri Jan 07, 2005 9:01 am    Post subject: Reply with quote

This is very strange.

What happened when you did:

Code:
ln -sf /dev/cdrom /dev/hdc

_________________
Best regards
Stian B. Barmen
Back to top
View user's profile Send private message
giodegas
n00b
n00b


Joined: 17 Jul 2004
Posts: 17
Location: ITALY

PostPosted: Sat Jan 08, 2005 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Sat Jan 08, 2005 6:52 pm    Post subject: Reply with quote

What is in your /proc/ide directory? Do you have an hdc there? What is in /proc/ide/drivers?
Back to top
View user's profile Send private message
giodegas
n00b
n00b


Joined: 17 Jul 2004
Posts: 17
Location: ITALY

PostPosted: Sun Jan 09, 2005 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Sun Jan 09, 2005 9:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Corvy
n00b
n00b


Joined: 16 Apr 2003
Posts: 34

PostPosted: Mon Jan 10, 2005 8:11 am    Post subject: Reply with quote

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.

Code:
lspci

(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
View user's profile Send private message
mute_dammit
n00b
n00b


Joined: 01 Jul 2003
Posts: 6

PostPosted: Wed Feb 16, 2005 1:30 am    Post subject: Solution? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum