/dev/scd0 is a SCSI CD-ROM.. Is this really the case?
You can refer to a IDE CD as /dev/hdXX too.
E.g. "mount /dev/hdc1 -t auto /mnt/cdrom"
me(who else?)
10-11-2004, 04:43 PM
I don't know if it's SCSI, but it's a laptop drive(not very helpful, I know). On the fstab file, there is a /dev/cdrom1 and /dev/cdrom, despite the fact that my laptop only has one drive. One is linked to /dev/scd0 and the other is linked to /dev/hdc, but neither works
Phantasm66
10-11-2004, 05:19 PM
Originally posted by MYOB
You need to have it in /etc/fstab and have a valid mountpoint directory created
You are only half right, strickly. You do need a mount point, but no entry in fstab is needed if you supply the device name and mount point, i.e.
You might need to update the link for this to work.
delete the link:
rm /dev/cdrom
recreate the link:
ln -s /dev/hdc /dev/cdrom
where hdc is your cdrom (i.e. secondary master)
needless to say, you need to be root for this.
me(who else?)
10-11-2004, 07:53 PM
I changed up my fstab a little bit, and I managed to get this:
mount: /dev/cdrom is not a block device (maybe try `-o loop'?)
But other than that, nothing. Unfortunately, I've tried everything here. Thanks for all the advice!
Nodsu
10-12-2004, 04:02 AM
Where is your /dev/cdrom pointing to?
I assume you have some RedHat..
Look in /etc/sysonfig/hardware. Locate the entry that coresponds to your CD drive.
It should be sth like:
class: CDROM
bus: IDE
detached: 0
device: hdc
driver: ignore
desc: "ATAPI CD-RW 52XMax"
Note how it shows the /dev/ entry after "device:". Evidently my CD-ROM (CD-RW actually) is attached to /dev/hdc.
This is a laptop. Keep in mind that Linux doesn't play well with those (we'll see how the new SuSE manages).
All sorts of custom hot pluggable things don't work. For example if your CD-ROM in in a docking device then you have to boot up with the dock attached to make Linux find your drive.
Ad
10-12-2004, 04:02 AM
Mictlantecuhtli
10-12-2004, 06:25 AM
It is /dev/scd0 if you're using kernel 2.4.x or older. They use SCSI emulation for IDE burners. If the emulation layer is configured as a module, you need to load it first: modprobe ide-scsi.
MYOB
10-12-2004, 02:37 PM
Originally posted by Phantasm66
You are only half right, strickly. You do need a mount point, but no entry in fstab is needed if you supply the device name and mount point, i.e.
mount /dev/cdrom /mnt/cdrom
however, if you want to say:
mount /mnt/cdrom
then you need the fstab entry.
Correct. But don't forget I'm going off long supressed memories of when I actually used UNIX. BeOS doesn't have these problems...
That said, I miss my Indy working...
me(who else?)
10-12-2004, 05:37 PM
Modprobe returns a command not found when I use it? I did install the 2.6 kernel, but I still boot to the 2.4 (at least until I get networking working). I get the same error under both kernels (block device, that is).
Nodsu
10-13-2004, 04:01 AM
You have tobe root to use modprobe. In case you haven't put /sbin and /usr/sbin in the root's PATH variable then you have to type it manually e.g. /sbin/modprobe blabla.
me(who else?)
10-13-2004, 05:35 PM
I tried modprobing, but I still have the problem. There must be something wierd going on...
Mictlantecuhtli
10-14-2004, 05:50 AM
insmod should work in 2.4 kernels too.
Nodsu
10-14-2004, 06:51 AM
Did you look in /ets/syconfig/hardware? You will see if Linux has found your CD-ROM at all and where it thinks it is.
me(who else?)
10-15-2004, 04:06 PM
I tired to use that location, but hardware doesn't exist puke:
SOmebody must have had this problem. Oh well, I 'll keep trying :knock:
me(who else?)
11-16-2004, 08:40 AM
Finally, I found a fix! Stupid me, I deleted /dev/hdc and made it a symlink to /dev/scd0 :monkey: . I remade the hdc file with MAKEDEV, but now I still can't eject or mount:
Mount says:
wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
Eject says:
eject: unable to eject, last error: Invalid argument
I do have hdc=ide-scsi in my grub config...Anybody?
P.S. I think this is why I deleted hdc in the first place...
Mictlantecuhtli
11-16-2004, 08:56 AM
I do have hdc=ide-scsi in my grub config
Depending on your kernel, I don't think you'd need that. 2.4 kernels might work without, 2.6 definitely does. You can mount CDs/DVDs "simply" by mount -t iso9660 /dev/hdc /mnt/cdrom.
me(who else?)
11-16-2004, 06:42 PM
I tried to mount -t iso9660 /dev/hdc /mnt/cdrom, but it still didn't work (same error). I don't know what else to try... :blackeye:
Nodsu
11-17-2004, 10:21 AM
Do you actually have a data CD in the drive? :p
me(who else?)
11-20-2004, 06:12 PM
I just bought UT2004, and this is really bugging me (BUMP).
My eject function doesn't even work! It returns:
eject: unable to eject, last error: Invalid argument
It seems like a problem with the kernel. Then again, the 2.6 kernel returns the same thing.
PLEASE HELP! I'm begging you! :angel:
Mictlantecuhtli
11-20-2004, 09:29 PM
I'm beginning to think the CD drive isn't secondary master, or you don't have proper kernel modules loaded.
In command line, go to /proc/ide, and type
grep -ir "cdrom" *
That will search for string "cdrom" from files in directories there.
If the drive indeed is secondary master, one line should say
hdc/media:cdrom
If it's something else than hdc (like hdb), use that instead when mounting.
If it returns nothing, then the drive wasn't detected at all. In that case, type
lspci | grep IDE
The first part, lspci, lists all PCI devices (cards and onboard). The second filters only those that have IDE in them.
The result should display the computer's IDE controllers.
me(who else?)
11-20-2004, 09:53 PM
It does indeed say that /dev/hdc is my CD-RW drive. As for kernel modules, I just looked around a bit... the grub.conf says hdc=ide-scsi, TWICE! First, it's listed as a kernel option, then in Append. I don't know if this is the problem, I deleted one instance and it still returns the same problem. I'll try without any ide-scsi and see if it works... :giddy:
me(who else?)
11-21-2004, 02:25 PM
Update: I erased the entry from /etc/fstab and Redhat put back all the files, but it linked scd0 to the cdrom drive. This means *something*, but I don't know what.
Yes, when I try to mount under this new config it returns no valid block device, and yes there is a disk in the drive. :suspiciou
KBerger
12-14-2005, 06:07 AM
Perhaps, it's a bit late and nothing really new. But I would look what dmesg thinks your cdrom is. It must say "hdc: ...(then goes the brand of your cdrom)". I mean, if it says your cdrom is "hdd", then it's even so. It would mean your (ide!)cdrom is linked with the node /dev/hdc(hdd).
About ide-scsi option(scsi emulation): it's only here for CD-burning on ide cd-burners, and not for accessing data CDs on IDE cd-drives. The corresponding SCSI dev node will be used for burning. So, the /dev/cdrom must be a link to your /dev/hdc. It must be mounted on whatever mount point you choose(like the way you did it).If it doesn't, and the disk is there, it could be: bad disk or/and broken drive. Or, a bug in the "mount" utility? Not likely as thousands use it without running into such problems.
If the dmesg command output says (your brand name)CDROM is here as "hdc", then it can recognize the device as ide cdrom drive. It must mount,then, unless for the reasons mentioned above.
Another thing one would check is this master/slave jumpers on the drive itself, but yours I assume to be a laptop.Don't think you must check the jumpers.