LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-23-2006, 05:28 PM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
can't mount cd/dvd drives


Ok

I am running Slackware 10.2 with the 2.1.13 kernel. I have a CD/RW drive and a DVD/RW drive. I was trying to get mplayer to player DVDs and I somehow deleted my links from /dev/hdc and /dev/hdd to the drives.. Can someone help me get these working again?



dmesg | grep hdd
ide1: BM-DMA at 0xe408-0xe40f, BIOS settings: hdcMA, hddMA
hdd: Memorex DVD16+/-DL4RWlD2, ATAPI CD/DVD-ROM drive
hdd: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)


dmesg | grep hdc
ide1: BM-DMA at 0xe408-0xe40f, BIOS settings: hdcMA, hddMA
hdc: SAMSUNG CD-R/RW SW-248F, ATAPI CD/DVD-ROM drive
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33)

fstab:

/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
/dev/hdd /mnt/dvd auto auto 0 0



ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 2006-05-22 19:57 /dev/cdrom -> /dev/hdc/

ls -l /dev/hdd
total 0

sudo mount /dev/cdrom
Password:
mount: you must specify the filesystem type

sudo mount /dev/cdrom
mount: you must specify the filesystem type

sudo mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: /dev/cdrom is not a block device


sudo mount /dev/hdd
mount: you must specify the filesystem type



Thanks.

j
 
Old 07-24-2006, 01:23 AM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
You need to actually have a data CD or DVD present in the drive in order to mount it. You cannot mount an empty drive
 
Old 07-24-2006, 01:25 AM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
no shit shirlock... Ive messed up the device links and can't figure out how to fix it. There are the correct media in the drives.
 
Old 07-24-2006, 07:26 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Easy there bucko, watch the language.
Code:
man ln
Basically what you want to do is
Code:
ln -s <target> <linkname>
Substitute the actual device and symbolic linknames as appropriate. Although this article is dated, it's still a decent guide on how to set up CD's under Slackware http://www.usafirst.net/users/welker/ide-cd_burner.html

Good luck with it
 
Old 07-24-2006, 08:21 PM   #5
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by ncsuapex
/dev/cdrom -> /dev/hdc/
this should be /dev/cdrom -> /dev/hdc

do
Code:
cd /dev; ln hdc cdrom -sf
 
Old 07-26-2006, 01:07 AM   #6
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
Hey Konsole


I tried that and it's still not mounting. I do have a known good mountable CD in the drive as well as a known good mountable DVD in the DVD drive.. Any other adevice?
 
Old 07-26-2006, 02:50 AM   #7
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
try to mount directly /dev/hdc instead:

Code:
mount -t iso9660 /dev/hdc /mnt/cdrom
if that won't work, making a link like /dev/cdrom is useless.

btw please retry the procedure before with this:
Code:
cd /dev; rm -f cdrom; ln hdc cdrom -s
 
Old 07-26-2006, 11:21 PM   #8
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
Tried both steps Konsole, getting a Not a Valid Block Device error... Any commands I can run to post the output so you can check it out?

Thanks for all the help.
 
Old 07-27-2006, 12:04 AM   #9
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
you have a similar problem with the person in this forum (not solved though): http://www.linuxforums.org/forum/lin...ck-device.html

they said that the best possible cause of your error is that you missed a device-specific kernel driver that requires to mount your cdrom drive.

i'm thinking that you try to check your config and recompile the kernel.

but i'm not sure about that because according to your first statement you've only deleted the links. how come you are still getting an error when you try to mount directly /dev/hdc? is your /dev/hdc scsi dependent? i mean the one that requires hdc=ide-scsi and hdd=ide-scsi something?

ok we're still going to try. for the command outputs i guess we'll need the output of:

Code:
ls -lR /dev/scsi
ls -lR /dev/ide
ls /dev/MAKEDEV
dmesg | grep -i -e "hd[^ ]*" -e ide -e scsi -e "sd[^ ]*"
lsmod
(z)cat /proc/cmdline(.gz)
cat /boot/grub/menu.lst
take a look at the following pages too. they might add some info:
http://linuxgazette.net/issue80/tag/7.html
http://linuxmafia.com/faq/VALinux-kb...ck-device.html

you might also try 'depmod -ae' then redo the previous mounting procedures.

i hope that there are other members here who have knowledge about this and also help you here.
 
Old 07-27-2006, 10:50 PM   #10
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
Hey

I don't think it's a kernel problem as I was able to mount cd/dvd drives prior to me mucking it up.

The drives aren't SCSI but here ya go.

ls -lR /dev/scsi
/bin/ls: /dev/scsi: No such file or directory


ls -lR /dev/ide
/bin/ls: /dev/ide: No such file or directory


ls /dev/MAKEDEV
/dev/MAKEDEV*


dmesg | grep -i -e "hd[^ ]*" -e ide -e scsi -e "sd[^ ]*"
Boot video device is 0000:01:00.0
SCSI subsystem initialized
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
ide0: BM-DMA at 0xe400-0xe407, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xe408-0xe40f, BIOS settings: hdcMA, hddMA
Probing IDE interface ide0...
hda: Maxtor 2F040L0, ATA DISK drive
hdb: ST360020A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: SAMSUNG CD-R/RW SW-248F, ATAPI CD/DVD-ROM drive
hdd: Memorex DVD16+/-DL4RWlD2, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(133)
hda: cache flushes supported
hda: hda1 hda2
hdb: max request size: 128KiB
hdb: 117231408 sectors (60022 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hdb: cache flushes not supported
hdb: hdb1
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33)
hdd: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
ide-floppy driver 0.99.newide
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=100920, sector=100671
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 100671
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=100920, sector=100679
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 100679
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=100920, sector=100687
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 100687
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141423
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141423
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141431
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141431
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141439
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141439
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141447
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141447
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141455
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141455
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141463
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141463
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141471
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141471
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141479
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141479
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141487
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141487
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141495
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141495
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141503
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141503
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141511
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141511
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141519
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141519
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=141520, sector=141519
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 141519
Warning: /proc/ide/hd?/settings interface is obsolete, and will be removed soon!


lsmod
Module Size Used by
msdos 7936 0
vfat 10368 0
fat 44828 2 msdos,vfat
sg 28960 0
nls_utf8 1792 0
udf 81156 0
snd_pcm_oss 46240 0
snd_mixer_oss 15872 1 snd_pcm_oss
ipv6 225600 12
ohci_hcd 18436 0
via_agp 7552 1
ohci1394 30388 0
ieee1394 85304 1 ohci1394
8139too 22016 0
mii 4608 1 8139too
uhci_hcd 29584 0
ehci_hcd 29704 0
i2c_viapro 6928 0
snd_via82xx 22592 0
gameport 11144 1 snd_via82xx
snd_ac97_codec 75388 1 snd_via82xx
snd_pcm 75016 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer 19716 1 snd_pcm
snd_page_alloc 7556 2 snd_via82xx,snd_pcm
snd_mpu401_uart 5888 1 snd_via82xx
snd_rawmidi 19232 1 snd_mpu401_uart
snd_seq_device 6924 1 snd_rawmidi
snd 45572 9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,s nd_seq_device
soundcore 6880 1 snd
i2c_prosavage 3456 0
i2c_algo_bit 8712 1 i2c_prosavage
i2c_core 16656 2 i2c_viapro,i2c_algo_bit
isofs 32056 0
zlib_inflate 17024 1 isofs
evdev 7296 0
agpgart 28616 1 via_agp
psmouse 29956 0
ext3 122504 0
jbd 48024 1 ext3


cat /proc/cmdline
BOOT_IMAGE=Lnx2613 ro root=301



ls | grep cdrom
cdrom@
/dev# ls -l cdrom
lrwxrwxrwx 1 root root 3 2006-07-26 03:58 cdrom -> hdc/

I don't use grub, I use lilo.

Thanks again for your help.

Last edited by ncsuapex; 07-27-2006 at 10:52 PM.
 
Old 07-27-2006, 11:15 PM   #11
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by ncsuapex
I don't think it's a kernel problem as I was able to mount cd/dvd drives prior to me mucking it up.
i agree with you but that's really weird. you already tried to directly mount /dev/hdc but it didn't work.

as your dmesg says, there's no problem with cd/dvds:
Code:
ide1: BM-DMA at 0xe408-0xe40f, BIOS settings: hdcMA, hddMA
Probing IDE interface ide1...
hdc: SAMSUNG CD-R/RW SW-248F, ATAPI CD/DVD-ROM drive
hdd: Memorex DVD16+/-DL4RWlD2, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33)
hdd: ATAPI 63X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
but i wonder what does this message say:
Code:
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=100920, sector=100671
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 100671
cable error? perhaps you can check this by exchanging the cables of your hd with your cd. also check your jumpers if they are loose.

one more thing, i don't know why the cdrom link keeps on pointing to hdc/, is /dev/hdc a directory? you surely won't be able to mount a directory.

Code:
lrwxrwxrwx 1 root root 3 2006-07-26 03:58 cdrom -> hdc/
 
Old 07-28-2006, 05:25 PM   #12
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
I haven't had chance to follow up with your last post but I did notice this today when I tried to eject the cd/dvd drives

eject cdrom
eject: unable to eject, last error: Inappropriate ioctl for device

eject dvd
eject: unable to eject, last error: Inappropriate ioctl for device

There does appear to be a /dev/hdc directory

ls -l /dev/hdc
total 0

ls -l /dev | grep hdc
lrwxrwxrwx 1 root root 8 2006-07-28 07:09 cdrom -> /dev/hdc/
drwxr-xr-x 2 root root 4096 2006-07-25 04:51 hdc/
brw-rw---- 1 root disk 22, 1 2002-06-09 15:27 hdc1
brw-rw---- 1 root disk 22, 10 2002-06-09 15:27 hdc10
brw-rw---- 1 root disk 22, 11 2002-06-09 15:27 hdc11
brw-rw---- 1 root disk 22, 12 2002-06-09 15:27 hdc12
brw-rw---- 1 root disk 22, 13 2002-06-09 15:27 hdc13
brw-rw---- 1 root disk 22, 14 2002-06-09 15:27 hdc14
brw-rw---- 1 root disk 22, 15 2002-06-09 15:27 hdc15
brw-rw---- 1 root disk 22, 16 2002-06-09 15:27 hdc16
brw-rw---- 1 root disk 22, 17 2002-06-09 15:27 hdc17
brw-rw---- 1 root disk 22, 18 2002-06-09 15:27 hdc18
brw-rw---- 1 root disk 22, 19 2002-06-09 15:27 hdc19
brw-rw---- 1 root disk 22, 2 2002-06-09 15:27 hdc2
brw-rw---- 1 root disk 22, 20 2002-06-09 15:27 hdc20
brw-rw---- 1 root disk 22, 21 2002-06-09 15:27 hdc21
brw-rw---- 1 root disk 22, 22 2002-06-09 15:27 hdc22
brw-rw---- 1 root disk 22, 23 2002-06-09 15:27 hdc23
brw-rw---- 1 root disk 22, 24 2002-06-09 15:27 hdc24
brw-rw---- 1 root disk 22, 25 2002-06-09 15:27 hdc25
brw-rw---- 1 root disk 22, 26 2002-06-09 15:27 hdc26
brw-rw---- 1 root disk 22, 27 2002-06-09 15:27 hdc27
brw-rw---- 1 root disk 22, 28 2002-06-09 15:27 hdc28
brw-rw---- 1 root disk 22, 29 2002-06-09 15:27 hdc29
brw-rw---- 1 root disk 22, 3 2002-06-09 15:27 hdc3
brw-rw---- 1 root disk 22, 30 2002-06-09 15:27 hdc30
brw-rw---- 1 root disk 22, 31 2002-06-09 15:27 hdc31
brw-rw---- 1 root disk 22, 32 2002-06-09 15:27 hdc32
brw-rw---- 1 root disk 22, 4 2002-06-09 15:27 hdc4
brw-rw---- 1 root disk 22, 5 2002-06-09 15:27 hdc5
brw-rw---- 1 root disk 22, 6 2002-06-09 15:27 hdc6
brw-rw---- 1 root disk 22, 7 2002-06-09 15:27 hdc7
brw-rw---- 1 root disk 22, 8 2002-06-09 15:27 hdc8
brw-rw---- 1 root disk 22, 9 2002-06-09 15:27 hdc9
 
Old 07-28-2006, 07:21 PM   #13
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
try this commands
Code:
mkdir /dev2
cd /dev2
mknod hdc b 22 0 
mknod hdd b 22 64
mount hdc /mnt/cdrom
mount hdd /mnt/dvdrom
tell me if it worked.
 
Old 07-29-2006, 03:23 AM   #14
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
Awesome!

Thanks. That worked. The only thing I had to change was the /mnt/dvdrom to /mnt/dvd as my directory was /mnt/dvd but it works fine now. Thanks again.
 
Old 07-29-2006, 04:00 AM   #15
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
then perhaps you can now remove /dev/hdc/ and /dev/hdd if something exists. then do the mknod there instead. also make the cdrom link of course.

and so you're welcome
next time
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount as a device: mount dvd-iso file in /dev/dvd sadarax Linux - General 21 02-02-2011 11:59 PM
Mount cd and dvd drives dlchadwick Linux - Hardware 2 11-28-2004 10:04 AM
cd-rom and dvd-rom drives won't mount... :-( Ausar Linux - Newbie 12 09-01-2004 02:51 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
How To Mount Both Your Dvd Drives With Slackware 9.1 dufferin Slackware 12 07-18-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration