LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Error in CD-ROM Mount (https://www.linuxquestions.org/questions/linux-hardware-18/error-in-cd-rom-mount-296147/)

isilinux 03-01-2005 01:51 AM

Error in CD-ROM Mount
 
I try to use my Cdrom with these commands:

#mknod -m 660 /dev/hdc b 22 0
#mount -t iso9660 /dev/hdc /mnt/cdrom

But system can not mount and show this Error :

mount : /dev/hdc is not a valid block device

What do I do?
Thanks
Ali

PenguinPwrdBox 03-01-2005 02:26 AM

I'm not sure why it is that you are using mknod?
Firstly, the mode, by default, is 0666. You need not specify that, unless you would like to change it (from a=r+w) in which case it is done via umask -0666.

Secondly, if you have a CD-ROM installed, it should find the device upon boot, when it scans the IDE bus (assuming you are running IDE)

Try the following:

Code:

dmesg | less | grep CD
If this returns output, it should contain the type of CD drive, the manufacturer, the speed, and the address.
This will create the block device for you. It will also tell you where it is mounted.

You can also cat your fstab, and this will tell you if the device was found, and written to the fstab, and if so, where it resides. Depending on how your drives are configured, it may be hdb, hdd, etc.....

Also, when you mount, try to specify as little options as possible. For instance:

Code:

mount /dev/hdb /mnt/cdrom

OR

mount -t auto /dev/hdb /mnt/cdrom

Long, explicit commands are romantic, but the ultimate goal of Unix, and Linux in the first place, is to wield as much power as possible, with as little effort as possible.

Lastly, you may try appending the option to the kernel to run the drive as SCSI emulated. First, make sure that the kernel is finding the drive, and then, google how to do this (it varies depending on your bootloader. I know it for lilo, but not grub).

Good Luck.

isilinux 03-01-2005 06:40 AM

hi.
I did all of these stage but may problem did not solve.
I built a Boot/Root disket and boot my system with that .it has a simple bash (text mode) environment.
I can mount my hard drive (hda1 or hdb1).
my system detect my CDROM drive on hdd.
thanks
Ali

PenguinPwrdBox 03-01-2005 11:08 PM

Try this:

Code:

mount /dev/hdd /mnt/cdrom


All times are GMT -5. The time now is 02:27 AM.