LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   I can't mount any CD/DVD discs (https://www.linuxquestions.org/questions/slackware-14/i-cant-mount-any-cd-dvd-discs-706344/)

alMubarmij 02-20-2009 11:01 PM

I can't mount any CD/DVD discs
 
I use prief and full command:

Quote:

mount /dev/hdc

mount -t iso9660 /dev/hdc /mnt/cdrom
I tried /dev/cdrom instead of /dev/hdc but same problem.

my /etc/fstab entry like this:
Quote:

/dev/hdc /mnt/cdrom iso9660 noauto,user,exec,ro,umask=0 0 0
Error message:
Code:

mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
missing codepage or other error
In some cases useful info is found in syslog - try
                    dmesg | tail  or so


JulianTosh 02-20-2009 11:11 PM

do this:

'dmesg -c'
insert a formatted CD/DVD that has a valid file system on it.
wait 30 seconds
'dmesg' - and paste the output

Michielvw 02-21-2009 10:01 AM

Just out of sheer curiosity, and the thing that you don't mention in your initial post; what kind of cd-rom/dvd are you trying to mount exactly.

alMubarmij 02-21-2009 11:29 AM

Code:

[root@localhost ~]# dmesg -c
After I did what you told me, and I tried to mount it by mount command:
Code:

[root@localhost ~]# dmesg
attempt to access beyond end of device
hdc: rw=0, want=68, limit=4
isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16

same tree lines has been repeated after every try.

alMubarmij 02-21-2009 11:32 AM

Ok, I'll give you a more usful information about the problem ..
Code:

[root@localhost ~]# cdrecord -v -scanbus
TOC Type: 1 = CD-ROM
Linux sg driver version: 3.5.27
Wodim version: 1.1.7.1
SCSI buffer size: 64512
scsibus1000:
        1000,0,0 100000) *
        1000,1,0 100001) *
        1000,2,0 100002) '_NEC    ' 'DVD+-RW ND-6500A' '2.58' Removable CD-ROM
        1000,3,0 100003) *
        1000,4,0 100004) *
        1000,5,0 100005) *
        1000,6,0 100006) *
        1000,7,0 100007) *

Code:

[root@localhost ~]# ll  /dev
total 0
lrwxrwxrwx  1 root root            4 Jan 25 21:13 XOR -> null
crw-rw----+ 1 root audio    14,  12 Jan 25 21:13 adsp
crw-------  1 root video    10, 175 Jan 25 21:13 agpgart
crw-rw----+ 1 root audio    14,  4 Jan 25 21:13 audio
crw-rw----+ 1 root audio    14,  20 Jan 25 21:13 audio1
drwxr-xr-x  3 root root          60 Jan 25 21:13 bus/
lrwxrwxrwx  1 root root            3 Jan 25 21:13 cdrom -> hdc
lrwxrwxrwx  1 root root            3 Jan 25 21:13 cdrom0 -> hdc
lrwxrwxrwx  1 root root            3 Jan 25 21:13 cdrw -> hdc
lrwxrwxrwx  1 root root            3 Jan 25 21:13 cdrw0 -> hdc
crw-------  1 a    root      5,  1 Jan 25 21:14 console
lrwxrwxrwx  1 root root          11 Jan 25 21:13 core -> /proc/kcore
drwxr-xr-x  3 root root          60 Jan 25 21:13 cpu/
drwxr-xr-x  6 root root          120 Jan 25 21:13 disk/
drwxr-xr-x  2 root root          80 Jan 25 21:14 dri/
crw-rw----+ 1 root audio    14,  3 Jan 25 21:13 dsp
crw-rw----+ 1 root audio    14,  19 Jan 25 21:13 dsp1
lrwxrwxrwx  1 root root            3 Jan 25 21:13 dvd -> hdc
lrwxrwxrwx  1 root root            3 Jan 25 21:13 dvd0 -> hdc
lrwxrwxrwx  1 root root            3 Jan 25 21:13 dvdrw -> hdc
lrwxrwxrwx  1 root root          13 Jan 25 21:13 fd -> /proc/self/fd/
brw-------  1 root root      2,  0 Jan 25 21:13 fd0
brw-------  1 root root      2,  1 Jan 25 21:13 fd1
crw-rw-rw-  1 root root      1,  7 Jan 25 21:13 full
crw-rw----  1 root fuse      10, 229 Jan 25 21:14 fuse
srwx------  1 a    root            0 Jan 25 21:14 gpmctl=
brw-rw----  1 root disk      3,  0 Jan 25 21:13 hda
brw-rw----  1 root disk      3,  1 Jan 25 21:13 hda1
brw-rw----  1 root disk      3,  2 Jan 25 21:14 hda2
brw-rw----  1 root disk      3,  3 Jan 25 21:13 hda3
brw-rw----  1 root disk      3,  4 Jan 25 21:13 hda4
brw-rw----  1 root disk      3,  5 Jan 25 21:14 hda5
brw-rw----  1 root disk      3,  6 Jan 25 21:13 hda6
brw-rw----+ 1 a    cdwriter  22,  0 Jan 25 21:13 hdc
crw-rw----  1 root root      10, 228 Jan 25 21:13 hpet
prw-------  1 root root            0 Jan 25 21:13 initctl|
drwxr-xr-x  4 root root          320 Jan 25 21:13 input/
crw-r-----  1 root kmem      1,  2 Jan 25 21:13 kmem
crw-rw----  1 root root      1,  11 Jan 25 21:13 kmsg
srw-rw-rw-  1 root root            0 Jan 25 21:14 log=
brw-rw----  1 root disk      7,  0 Jan 25 21:13 loop0
brw-rw----  1 root disk      7,  1 Jan 25 21:14 loop1
brw-rw----  1 root disk      7,  2 Jan 25 21:14 loop2
brw-rw----  1 root disk      7,  3 Jan 25 21:14 loop3
brw-rw----  1 root disk      7,  4 Jan 25 21:14 loop4
brw-rw----  1 root disk      7,  5 Jan 25 21:14 loop5
brw-rw----  1 root disk      7,  6 Jan 25 21:14 loop6
brw-rw----  1 root disk      7,  7 Jan 25 21:14 loop7
crw-------  1 root root      6,  0 Jan 25 21:13 lp0
drwxr-xr-x  2 root root          60 Jan 25 21:14 mapper/
brw-rw----  1 root disk      9,  0 Jan 25 21:13 md0
crw-r-----  1 root kmem      1,  1 Jan 25 21:13 mem
crw-rw----+ 1 root audio    14,  0 Jan 25 21:13 mixer
crw-rw----+ 1 root audio    14,  16 Jan 25 21:13 mixer1
lrwxrwxrwx  1 root root          10 Jan 25 21:13 mouse -> input/mice
drwxr-xr-x  2 root root          60 Jan 25 21:13 net/
crw-rw-rw-  1 root root      1,  3 Jan 25 21:13 null
crw-------  1 a    root    195,  0 Jan 25 21:13 nvidia0
crw-------  1 a    root    195, 255 Jan 25 21:13 nvidiactl
cr--------  1 a    root      10, 144 Jan 25 21:13 nvram
crw-rw----  1 a    lp        99,  0 Jan 25 21:13 parport0
crw-r-----  1 root kmem      1,  4 Jan 25 21:13 port
crw-------  1 root root    108,  0 Jan 25 21:13 ppp
crw-rw----  1 root root      10,  1 Jan 25 21:13 psaux
crw-rw-rw-  1 root tty        5,  2 Jan 25 22:54 ptmx
drwxr-xr-x  2 root root            0 Jan 25 21:13 pts/
lrwxrwxrwx  1 root root            4 Jan 25 21:13 ram -> ram1
brw-rw----  1 root disk      1,  0 Jan 25 21:13 ram0
brw-rw----  1 root disk      1,  1 Jan 25 21:13 ram1
brw-rw----  1 root disk      1,  10 Jan 25 21:13 ram10
brw-rw----  1 root disk      1,  11 Jan 25 21:13 ram11
brw-rw----  1 root disk      1,  12 Jan 25 21:13 ram12
brw-rw----  1 root disk      1,  13 Jan 25 21:13 ram13
brw-rw----  1 root disk      1,  14 Jan 25 21:13 ram14
brw-rw----  1 root disk      1,  15 Jan 25 21:13 ram15
brw-rw----  1 root disk      1,  2 Jan 25 21:13 ram2
brw-rw----  1 root disk      1,  3 Jan 25 21:13 ram3
brw-rw----  1 root disk      1,  4 Jan 25 21:13 ram4
brw-rw----  1 root disk      1,  5 Jan 25 21:13 ram5
brw-rw----  1 root disk      1,  6 Jan 25 21:13 ram6
brw-rw----  1 root disk      1,  7 Jan 25 21:13 ram7
brw-rw----  1 root disk      1,  8 Jan 25 21:13 ram8
brw-rw----  1 root disk      1,  9 Jan 25 21:13 ram9
lrwxrwxrwx  1 root root            4 Jan 25 21:13 ramdisk -> ram0
crw-rw-rw-  1 root root      1,  8 Jan 25 21:13 random
crw-------  1 root root    171,  0 Jan 25 21:13 raw1394
crw-------  1 root root    162,  0 Jan 25 21:13 rawctl
crw-r--r--  1 root root      10, 135 Jan 25 21:13 rtc
crw-r--r--  1 root root    252,  0 Jan 25 21:13 rtc0
crw-rw----+ 1 root audio    14,  1 Jan 25 21:13 sequencer
crw-rw----+ 1 root audio    14,  8 Jan 25 21:13 sequencer2
crw-rw----  1 a    cdwriter  21,  0 Jan 25 21:13 sg0
crw-rw----  1 a    cdwriter  21,  1 Jan 25 21:13 sg1
drwxrwxrwt  2 root root          40 Jan 25 21:14 shm/
crw-rw----  1 root root      10, 231 Jan 25 21:13 snapshot
drwxr-xr-x  2 root root          280 Jan 25 21:13 snd/
brw-------  1 root root      11,  0 Jan 25 21:13 sr0
brw-------  1 root root      11,  1 Jan 25 21:13 sr1
crw-------  1 root root      9,  0 Jan 25 21:13 st0
crw-------  1 root root      9,  1 Jan 25 21:13 st1
lrwxrwxrwx  1 root root          15 Jan 25 21:13 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root          15 Jan 25 21:13 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root          15 Jan 25 21:13 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root tty        5,  0 Jan 25 21:13 tty
crw--w----  1 root root      4,  0 Jan 25 21:13 tty0
crw-------  1 root root      4,  1 Jan 25 21:14 tty1
crw--w----  1 root tty        4,  10 Jan 25 21:13 tty10
crw--w----  1 root tty        4,  11 Jan 25 21:13 tty11
crw--w----  1 root tty        4,  12 Jan 25 21:13 tty12
crw--w----  1 root tty        4,  13 Jan 25 21:13 tty13
crw--w----  1 root tty        4,  14 Jan 25 21:13 tty14
crw--w----  1 root tty        4,  15 Jan 25 21:13 tty15
crw--w----  1 root tty        4,  16 Jan 25 21:13 tty16
crw--w----  1 root tty        4,  17 Jan 25 21:13 tty17
crw--w----  1 root tty        4,  18 Jan 25 21:13 tty18
crw--w----  1 root tty        4,  19 Jan 25 21:13 tty19
crw-------  1 root root      4,  2 Jan 25 21:14 tty2
crw--w----  1 root tty        4,  20 Jan 25 21:13 tty20
crw--w----  1 root tty        4,  21 Jan 25 21:13 tty21
crw--w----  1 root tty        4,  22 Jan 25 21:13 tty22
crw--w----  1 root tty        4,  23 Jan 25 21:13 tty23
crw--w----  1 root tty        4,  24 Jan 25 21:13 tty24
crw--w----  1 root tty        4,  25 Jan 25 21:13 tty25
crw--w----  1 root tty        4,  26 Jan 25 21:13 tty26
crw--w----  1 root tty        4,  27 Jan 25 21:13 tty27
crw--w----  1 root tty        4,  28 Jan 25 21:13 tty28
crw--w----  1 root tty        4,  29 Jan 25 21:13 tty29
crw-------  1 root root      4,  3 Jan 25 21:14 tty3
crw--w----  1 root tty        4,  30 Jan 25 21:13 tty30
crw--w----  1 root tty        4,  31 Jan 25 21:13 tty31
crw--w----  1 root tty        4,  32 Jan 25 21:13 tty32
crw--w----  1 root tty        4,  33 Jan 25 21:13 tty33
crw--w----  1 root tty        4,  34 Jan 25 21:13 tty34
crw--w----  1 root tty        4,  35 Jan 25 21:13 tty35
crw--w----  1 root tty        4,  36 Jan 25 21:13 tty36
crw--w----  1 root tty        4,  37 Jan 25 21:13 tty37
crw--w----  1 root tty        4,  38 Jan 25 21:13 tty38
crw--w----  1 root tty        4,  39 Jan 25 21:13 tty39
crw-------  1 root root      4,  4 Jan 25 21:14 tty4
crw--w----  1 root tty        4,  40 Jan 25 21:13 tty40
crw--w----  1 root tty        4,  41 Jan 25 21:13 tty41
crw--w----  1 root tty        4,  42 Jan 25 21:13 tty42
crw--w----  1 root tty        4,  43 Jan 25 21:13 tty43
crw--w----  1 root tty        4,  44 Jan 25 21:13 tty44
crw--w----  1 root tty        4,  45 Jan 25 21:13 tty45
crw--w----  1 root tty        4,  46 Jan 25 21:13 tty46
crw--w----  1 root tty        4,  47 Jan 25 21:13 tty47
crw--w----  1 root tty        4,  48 Jan 25 21:13 tty48
crw--w----  1 root tty        4,  49 Jan 25 21:13 tty49
crw-------  1 root root      4,  5 Jan 25 21:14 tty5
crw--w----  1 root tty        4,  50 Jan 25 21:13 tty50
crw--w----  1 root tty        4,  51 Jan 25 21:13 tty51
crw--w----  1 root tty        4,  52 Jan 25 21:13 tty52
crw--w----  1 root tty        4,  53 Jan 25 21:13 tty53
crw--w----  1 root tty        4,  54 Jan 25 21:13 tty54
crw--w----  1 root tty        4,  55 Jan 25 21:13 tty55
crw--w----  1 root tty        4,  56 Jan 25 21:13 tty56
crw--w----  1 root tty        4,  57 Jan 25 21:13 tty57
crw--w----  1 root tty        4,  58 Jan 25 21:13 tty58
crw--w----  1 root tty        4,  59 Jan 25 21:13 tty59
crw-------  1 root root      4,  6 Jan 25 21:14 tty6
crw--w----  1 root tty        4,  60 Jan 25 21:13 tty60
crw--w----  1 root tty        4,  61 Jan 25 21:13 tty61
crw--w----  1 root tty        4,  62 Jan 25 21:13 tty62
crw--w----  1 root tty        4,  63 Jan 25 21:13 tty63
crw--w----  1 root root      4,  7 Jan 25 21:13 tty7
crw--w----  1 root tty        4,  8 Jan 25 21:13 tty8
crw--w----  1 root tty        4,  9 Jan 25 21:13 tty9
crw-rw----  1 a    uucp      4,  64 Jan 25 21:13 ttyS0
crw-rw----  1 a    uucp      4,  65 Jan 25 21:13 ttyS1
crw-rw----  1 a    uucp      4,  66 Jan 25 21:13 ttyS2
crw-rw----  1 a    uucp      4,  67 Jan 25 21:13 ttyS3
crw-rw-rw-  1 root root      1,  9 Jan 25 21:14 urandom
crw-rw----  1 root root    189,  0 Jan 25 21:13 usbdev1.1
crw-rw----  1 root root    253,  0 Jan 25 21:13 usbdev1.1_ep00
crw-rw----  1 root root    253,  1 Jan 25 21:13 usbdev1.1_ep81
crw-rw----  1 root root    189,  2 Jan 25 21:13 usbdev1.3
crw-rw----  1 root root    253,  8 Jan 25 21:13 usbdev1.3_ep00
crw-rw----  1 root root    253,  9 Jan 25 21:13 usbdev1.3_ep81
crw-rw----  1 root root    189, 128 Jan 25 21:13 usbdev2.1
crw-rw----  1 root root    253,  2 Jan 25 21:13 usbdev2.1_ep00
crw-rw----  1 root root    253,  3 Jan 25 21:13 usbdev2.1_ep81
crw-rw----  1 root root    189, 256 Jan 25 21:13 usbdev3.1
crw-rw----  1 root root    253,  4 Jan 25 21:13 usbdev3.1_ep00
crw-rw----  1 root root    253,  5 Jan 25 21:13 usbdev3.1_ep81
crw-rw----  1 root root    189, 384 Jan 25 21:13 usbdev4.1
crw-rw----  1 root root    253,  6 Jan 25 21:13 usbdev4.1_ep00
crw-rw----  1 root root    253,  7 Jan 25 21:13 usbdev4.1_ep81
crw-rw----  1 root tty        7,  0 Jan 25 21:13 vcs
crw-rw----  1 root tty        7,  1 Jan 25 21:14 vcs1
crw-rw----  1 root tty        7,  2 Jan 25 21:14 vcs2
crw-rw----  1 root tty        7,  3 Jan 25 21:14 vcs3
crw-rw----  1 root tty        7,  4 Jan 25 21:14 vcs4
crw-rw----  1 root tty        7,  5 Jan 25 21:14 vcs5
crw-rw----  1 root tty        7,  6 Jan 25 21:14 vcs6
crw-rw----  1 root tty        7,  7 Jan 25 21:14 vcs7
crw-rw----  1 root tty        7, 128 Jan 25 21:13 vcsa
crw-rw----  1 root tty        7, 129 Jan 25 21:14 vcsa1
crw-rw----  1 root tty        7, 130 Jan 25 21:14 vcsa2
crw-rw----  1 root tty        7, 131 Jan 25 21:14 vcsa3
crw-rw----  1 root tty        7, 132 Jan 25 21:14 vcsa4
crw-rw----  1 root tty        7, 133 Jan 25 21:14 vcsa5
crw-rw----  1 root tty        7, 134 Jan 25 21:14 vcsa6
crw-rw----  1 root tty        7, 135 Jan 25 21:14 vcsa7
crw-rw----  1 root root      10, 130 Jan 25 21:13 watchdog
crw-rw-rw-  1 root root      1,  5 Jan 25 21:13 zero
[root@localhost ~]#


H_TeXMeX_H 02-21-2009 02:12 PM

So, you say you can't mount ANY CD/DVD, but what kinds have you tried so far ?

alMubarmij 02-21-2009 02:38 PM

Simply I can do it before, But now I can't.
As you see all configrations looks allright.
I don't know were is the problem reason exactly.

H_TeXMeX_H 02-21-2009 03:23 PM

I think this may be useful:
http://lists.debian.org/debian-user/.../msg02866.html
http://lists.debian.org/debian-user/.../msg02929.html
http://lists.debian.org/debian-user/.../msg03035.html

so basically disable DMA:
Code:

hdparm -d0 /dev/hdc
I would check the cables and make sure they are connected and intact, because it sucks to have to disable DMA.

alMubarmij 02-23-2009 02:29 PM

Thank you,
After disabling DMA by hdparm -d0 /dev/hdc I can mount CD-ROMs only but not DVDs.
It's a partly resolved, better than nothing, but I still wait for a final solution.

H_TeXMeX_H 02-23-2009 02:53 PM

did you check the cables, maybe one came loose ?

Hern_28 02-23-2009 03:01 PM

Just to add.
 
I think dvd's are udf format instead of iso9660:

mount -t udf /dev/hdc /mnt/cdrom

It's been a while since I mounted a dvd from the command line. You don't need to have it mounted to play it normally. For the simple mount tag to work you might need to manually specify iso9660,udf /dev/hdc /mnt/cdrom iso9660,udf noauto,user,exec,ro,umask=0 0 0 in the fstab so the dvd's are easier to mount in the future.

Hope this helps.

conrad0 02-23-2009 09:38 PM

Try upgrade the firmware's drive.
Work with me...

Sorry, my english is very poor..

alMubarmij 02-23-2009 10:39 PM

Quote:

Originally Posted by H_TeXMeX_H (Post 3454798)
did you check the cables, maybe one came loose ?

How CDs will works if there any wrong with cables ?
Well, it's a laptop and I run many Live CDs/DVDs on it.

Quote:

Originally Posted by Hern_28 (Post 3454809)
I think dvd's are udf format instead of iso9660:
mount -t udf /dev/hdc /mnt/cdrom

No, I tried this many times and I got same fail message.
And I just use Data DVDs (specifically: Linux distros like Slackware 12.2 and Fedora 10 ..etc) not VideoDVDs or any kind of UDF data usage.
Thank you.

Quote:

Originally Posted by conrad0 (Post 3455111)
Try upgrade the firmware's drive.
Work with me...

Ok, do you have same problem before ?
How you upgraded it ?
My devices as you see in post #5: _NEC DVD+-RW ND-6500A 2.58 Removable CD-ROM.

conrad0 02-24-2009 05:44 AM

Hi alMubarmij,

When i recorded dvd's in k3b the same do not read in the Windows and vice-versa.

I find this site for you:

http://www.driversdown.com/drivers/21626.shtml

But i do not have ideia how upgrade your firmware in Linux. I make this procedure in the Windows.

But it's only a tip. WITH ME worked.

globaltree 02-24-2009 11:10 AM

who is user a?
 
Hello

The following excerpt from your directory listing for /dev above:

Quote:

brw-rw----+ 1 a cdwriter 22, 0 Jan 25 21:13 hdc

made me wonder if you had a user "a" on your system, or a group "cdwriter"? In typical slackware installations, the optical media device is usually owned by user root and group cdrom; here's the output for my cdwriter which is hda on my system:

Code:

darkstar% ls -lah /dev/hda
brw-rw---- 1 root cdrom 3, 0 2009-02-22 10:02 /dev/hda


Perhaps the user you are logged in as doesn't have permission to use hdc.


All times are GMT -5. The time now is 05:29 PM.