LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-20-2013, 07:59 PM   #1
kevincredden
LQ Newbie
 
Registered: Apr 2007
Location: Kentucky
Distribution: debian v7.1
Posts: 7

Rep: Reputation: 0
After update, KDE won't automatically log in /new drives/


I'm using Debian 7.1, KDE 4.8.4. When I first installed Debian 7.0 KDE automatically logged in all drives (USB, CDs, DVDs, etc.) But now I put in a new CD in the drive, and it not only doesn't automatically log it in, even if I click on the device notification widget, it still won't mount the device. I tried the main DVD reader/burner, and also a external CDR /reader/ and neither will work.

This is now affecting both my netbook and main system since they both use the exact same OS/GUI.
Is there a way to revert the program that does the auto login/logoff to an older version, or is something set wrong?

I tried to mount it manually with the following:

Code:
kcredden@zeus:~$ wodim --devices
wodim: Overview of accessible drives (2 found) :
-------------------------------------------------------------------------
 0  dev='/dev/sg2'      rwrw-- : 'TSSTcorp' 'CDDVDW SH-222BB'
 1  dev='/dev/sg4'      rwrw-- : 'LITEON' 'CD-ROM LTN526S'
-------------------------------------------------------------------------
kcredden@zeus:~$ mount -t iso9660 /dev/sg4 /media/cdrom
mount: only root can do that
kcredden@zeus:~$ su
Password: 
root@zeus:/home/kcredden# mount -t iso9660 /dev/sg4 /media/cdrom
mount: /dev/sg4 is not a block device
So anyone know what's going on? I forgot to also mention. Any drives that was previously mounted, has no problems with them. Just new drives.
 
Old 07-31-2013, 09:55 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 153Reputation: 153
I use Debian 7.1 and I used to use Debian 7.0. I never had your problem because I never tried to mount CD/DVD the way you are doing it. I tried your command: mount -t iso9660 /dev/sg2 /media/cdrom on my Debian 7.1 and got the same error message that you get. Try this command which works on my machine:

mount -t iso9660 /dev/sr0 /media/cdrom

On my machine /dev/sg0 through /dev/sg6 are character devices. I don't know what they were on Debian 7.0

On my machine /dev/sr0 is a block device. I don't know what it was on Debian 7.0.

Use the command: ls -l /dev | less to display your devices. The left most character will show whether a device is a block device or a character device.

----------------------
Steve Stites
 
Old 08-01-2013, 09:20 AM   #3
kevincredden
LQ Newbie
 
Registered: Apr 2007
Location: Kentucky
Distribution: debian v7.1
Posts: 7

Original Poster
Rep: Reputation: 0
Steve:

Ok, firstly; tried:

Code:
root@zeus:/home/kcredden#  mount -t iso9660 /dev/sr0 /media/cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
But I tried your request of: ls -l /dev | less, and I found both entries on the CD/DVDs. The complete list is here:

Code:
root@zeus:/home/kcredden# ls -l /dev
total 0
crw-rw---T+ 1 root audio    14,  14 Aug  1 09:52 admmidi
crw-rw---T+ 1 root audio    14,  13 Aug  1 09:52 amidi
crw------T  1 root root     10, 235 Aug  1 05:52 autofs
drwxr-xr-x  2 root root         480 Aug  1 09:52 block
drwxr-xr-x  2 root root         140 Aug  1 09:52 bsg
crw------T  1 root root     10, 234 Aug  1 05:52 btrfs-control
drwxr-xr-x  3 root root          60 Aug  1 05:52 bus
lrwxrwxrwx  1 root root           3 Aug  1 10:05 cdrom -> sr0
lrwxrwxrwx  1 root root           3 Aug  1 10:05 cdrw -> sr0
drwxr-xr-x  2 root root        3380 Aug  1 09:52 char
crw-------  1 root root      5,   1 Aug  1 09:52 console
lrwxrwxrwx  1 root root          11 Aug  1 05:52 core -> /proc/kcore
drwxr-xr-x  2 root root          60 Aug  1 05:52 cpu
crw-------  1 root root     10,  62 Aug  1 05:52 cpu_dma_latency
drwxr-xr-x  6 root root         120 Aug  1 05:52 disk
crw-rw---T+ 1 root audio    14,   9 Aug  1 09:52 dmmidi
lrwxrwxrwx  1 root root           3 Aug  1 10:05 dvd -> sr0
lrwxrwxrwx  1 root root           3 Aug  1 10:05 dvdrw -> sr0
lrwxrwxrwx  1 root root          13 Aug  1 05:52 fd -> /proc/self/fd
crw-rw-rw-  1 root root      1,   7 Aug  1 05:52 full
crw-rw---T  1 root fuse     10, 229 Aug  1 05:52 fuse
crw-------  1 root root    252,   0 Aug  1 09:52 hidraw0
crw-------  1 root root    252,   1 Aug  1 09:52 hidraw1
crw-------  1 root root    252,   2 Aug  1 09:52 hidraw2
crw-------  1 root root     10, 228 Aug  1 05:52 hpet
drwxr-xr-x  4 root root         280 Aug  1 09:52 input
crw-------  1 root root      1,  11 Aug  1 05:52 kmsg
srw-rw-rw-  1 root root           0 Aug  1 09:52 log
brw-rw---T  1 root disk      7,   0 Aug  1 09:52 loop0
brw-rw---T  1 root disk      7,   1 Aug  1 09:52 loop1
brw-rw---T  1 root disk      7,   2 Aug  1 09:52 loop2
brw-rw---T  1 root disk      7,   3 Aug  1 09:52 loop3
brw-rw---T  1 root disk      7,   4 Aug  1 09:52 loop4
brw-rw---T  1 root disk      7,   5 Aug  1 09:52 loop5
brw-rw---T  1 root disk      7,   6 Aug  1 09:52 loop6
brw-rw---T  1 root disk      7,   7 Aug  1 09:52 loop7
crw------T  1 root root     10, 237 Aug  1 09:52 loop-control
crw-rw---T  1 root lp        6,   0 Aug  1 09:52 lp0
lrwxrwxrwx  1 root root           9 Aug  1 05:52 MAKEDEV -> /bin/true
drwxr-xr-x  2 root root          60 Aug  1 05:52 mapper
crw-------  1 root root     10, 227 Aug  1 05:52 mcelog
crw-r----T  1 root kmem      1,   1 Aug  1 05:52 mem
crw-rw---T+ 1 root audio    14,   2 Aug  1 09:52 midi
drwxr-xr-x  2 root root          60 Aug  1 05:52 net
crw-------  1 root root     10,  61 Aug  1 05:52 network_latency
crw-------  1 root root     10,  60 Aug  1 05:52 network_throughput
crw-rw-rw-  1 root root      1,   3 Aug  1 05:52 null
crw-rw----+ 1 root video   195,   0 Aug  1 09:52 nvidia0
crw-rw----+ 1 root video   195, 255 Aug  1 09:52 nvidiactl
crw-------  1 root root      1,  12 Aug  1 05:52 oldmem
crw-rw---T  1 root lp       99,   0 Aug  1 09:52 parport0
crw-r----T  1 root kmem      1,   4 Aug  1 05:52 port
crw------T  1 root root    108,   0 Aug  1 05:52 ppp
crw-------  1 root root     10,   1 Aug  1 05:52 psaux
crw-rw-rw-  1 root root      5,   2 Aug  1 10:13 ptmx
drwxr-xr-x  2 root root           0 Aug  1 05:52 pts
crw-rw-rw-  1 root root      1,   8 Aug  1 05:52 random
crw-r--r-T  1 root root     10,  59 Aug  1 09:52 rfkill
lrwxrwxrwx  1 root root           4 Aug  1 09:52 root -> sdb1
lrwxrwxrwx  1 root root           4 Aug  1 05:52 rtc -> rtc0
crw-------  1 root root    254,   0 Aug  1 05:52 rtc0
brw-rw---T  1 root disk      8,   0 Aug  1 09:52 sda
brw-rw---T  1 root disk      8,   1 Aug  1 09:52 sda1
brw-rw---T  1 root disk      8,   2 Aug  1 09:52 sda2
brw-rw---T  1 root disk      8,   3 Aug  1 09:52 sda3
brw-rw---T  1 root disk      8,  16 Aug  1 09:52 sdb
brw-rw---T  1 root disk      8,  17 Aug  1 09:52 sdb1
brw-rw---T  1 root disk      8,  18 Aug  1 09:52 sdb2
brw-rw---T  1 root disk      8,  21 Aug  1 09:52 sdb5
brw-rw---T  1 root disk      8,  32 Aug  1 09:52 sdc
brw-rw---T  1 root disk      8,  33 Aug  1 09:52 sdc1
brw-rw---T  1 root disk      8,  34 Aug  1 09:52 sdc2
brw-rw---T  1 root disk      8,  37 Aug  1 09:52 sdc5
brw-rw---T  1 root floppy    8,  48 Aug  1 09:52 sdd
crw-------  1 root root     21,   0 Aug  1 09:52 sg0
crw-------  1 root root     21,   1 Aug  1 09:52 sg1
crw-rw---T+ 1 root cdrom    21,   2 Aug  1 09:52 sg2
crw-------  1 root root     21,   3 Aug  1 09:52 sg3
crw-------  1 root root     21,   4 Aug  1 09:52 sg4
lrwxrwxrwx  1 root root           8 Aug  1 09:52 shm -> /run/shm
crw-------  1 root root     10, 231 Aug  1 05:52 snapshot
drwxr-xr-x  3 root root         340 Aug  1 09:52 snd
lrwxrwxrwx  1 root root          24 Aug  1 09:52 sndstat -> /proc/asound/oss/sndstat
brw-rw---T+ 1 root cdrom    11,   0 Aug  1 10:05 sr0
lrwxrwxrwx  1 root root          15 Aug  1 05:52 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root          15 Aug  1 05:52 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root          15 Aug  1 05:52 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root root      5,   0 Aug  1 05:52 tty
crw-------  1 root root      4,   0 Aug  1 05:52 tty0
crw-rw----  1 root tty       4,   1 Aug  1 09:52 tty1
crw-------  1 root root      4,  10 Aug  1 05:52 tty10
crw-------  1 root root      4,  11 Aug  1 05:52 tty11
crw-------  1 root root      4,  12 Aug  1 05:52 tty12
crw-------  1 root root      4,  13 Aug  1 05:52 tty13
crw-------  1 root root      4,  14 Aug  1 05:52 tty14
crw-------  1 root root      4,  15 Aug  1 05:52 tty15
crw-------  1 root root      4,  16 Aug  1 05:52 tty16
crw-------  1 root root      4,  17 Aug  1 05:52 tty17
crw-------  1 root root      4,  18 Aug  1 05:52 tty18
crw-------  1 root root      4,  19 Aug  1 05:52 tty19
crw-rw----  1 root tty       4,   2 Aug  1 09:52 tty2
crw-------  1 root root      4,  20 Aug  1 05:52 tty20
crw-------  1 root root      4,  21 Aug  1 05:52 tty21
crw-------  1 root root      4,  22 Aug  1 05:52 tty22
crw-------  1 root root      4,  23 Aug  1 05:52 tty23
crw-------  1 root root      4,  24 Aug  1 05:52 tty24
crw-------  1 root root      4,  25 Aug  1 05:52 tty25
crw-------  1 root root      4,  26 Aug  1 05:52 tty26
crw-------  1 root root      4,  27 Aug  1 05:52 tty27
crw-------  1 root root      4,  28 Aug  1 05:52 tty28
crw-------  1 root root      4,  29 Aug  1 05:52 tty29
crw-rw----  1 root tty       4,   3 Aug  1 09:52 tty3
crw-------  1 root root      4,  30 Aug  1 05:52 tty30
crw-------  1 root root      4,  31 Aug  1 05:52 tty31
crw-------  1 root root      4,  32 Aug  1 05:52 tty32
crw-------  1 root root      4,  33 Aug  1 05:52 tty33
crw-------  1 root root      4,  34 Aug  1 05:52 tty34
crw-------  1 root root      4,  35 Aug  1 05:52 tty35
crw-------  1 root root      4,  36 Aug  1 05:52 tty36
crw-------  1 root root      4,  37 Aug  1 05:52 tty37
crw-------  1 root root      4,  38 Aug  1 05:52 tty38
crw-------  1 root root      4,  39 Aug  1 05:52 tty39
crw-rw----  1 root tty       4,   4 Aug  1 09:52 tty4
crw-------  1 root root      4,  40 Aug  1 05:52 tty40
crw-------  1 root root      4,  41 Aug  1 05:52 tty41
crw-------  1 root root      4,  42 Aug  1 05:52 tty42
crw-------  1 root root      4,  43 Aug  1 05:52 tty43
crw-------  1 root root      4,  44 Aug  1 05:52 tty44
crw-------  1 root root      4,  45 Aug  1 05:52 tty45
crw-------  1 root root      4,  46 Aug  1 05:52 tty46
crw-------  1 root root      4,  47 Aug  1 05:52 tty47
crw-------  1 root root      4,  48 Aug  1 05:52 tty48
crw-------  1 root root      4,  49 Aug  1 05:52 tty49
crw-rw----  1 root tty       4,   5 Aug  1 09:52 tty5
crw-------  1 root root      4,  50 Aug  1 05:52 tty50
crw-------  1 root root      4,  51 Aug  1 05:52 tty51
crw-------  1 root root      4,  52 Aug  1 05:52 tty52
crw-------  1 root root      4,  53 Aug  1 05:52 tty53
crw-------  1 root root      4,  54 Aug  1 05:52 tty54
crw-------  1 root root      4,  55 Aug  1 05:52 tty55
crw-------  1 root root      4,  56 Aug  1 05:52 tty56
crw-------  1 root root      4,  57 Aug  1 05:52 tty57
crw-------  1 root root      4,  58 Aug  1 05:52 tty58
crw-------  1 root root      4,  59 Aug  1 05:52 tty59
crw-rw----  1 root tty       4,   6 Aug  1 09:52 tty6
crw-------  1 root root      4,  60 Aug  1 05:52 tty60
crw-------  1 root root      4,  61 Aug  1 05:52 tty61
crw-------  1 root root      4,  62 Aug  1 05:52 tty62
crw-------  1 root root      4,  63 Aug  1 05:52 tty63
crw-------  1 root root      4,   7 Aug  1 05:52 tty7
crw-------  1 root root      4,   8 Aug  1 05:52 tty8
crw-------  1 root root      4,   9 Aug  1 05:52 tty9
crw-rw---T  1 root dialout   4,  64 Aug  1 05:52 ttyS0
crw-rw---T  1 root dialout   4,  65 Aug  1 05:52 ttyS1
crw-rw---T  1 root dialout   4,  66 Aug  1 05:52 ttyS2
crw-rw---T  1 root dialout   4,  67 Aug  1 05:52 ttyS3
crw------T  1 root root     10, 223 Aug  1 09:52 uinput
crw-rw-rw-  1 root root      1,   9 Aug  1 05:52 urandom
drwxr-xr-x  2 root root          60 Aug  1 09:52 usb
crw-------  1 root root      7,   0 Aug  1 05:52 vcs
crw-------  1 root root      7,   1 Aug  1 05:52 vcs1
crw-------  1 root root      7,   2 Aug  1 09:52 vcs2
crw-------  1 root root      7,   3 Aug  1 09:52 vcs3
crw-------  1 root root      7,   4 Aug  1 09:52 vcs4
crw-------  1 root root      7,   5 Aug  1 09:52 vcs5
crw-------  1 root root      7,   6 Aug  1 09:52 vcs6
crw-------  1 root root      7,   7 Aug  1 09:52 vcs7
crw-------  1 root root      7, 128 Aug  1 05:52 vcsa
crw-------  1 root root      7, 129 Aug  1 05:52 vcsa1
crw-------  1 root root      7, 130 Aug  1 09:52 vcsa2
crw-------  1 root root      7, 131 Aug  1 09:52 vcsa3
crw-------  1 root root      7, 132 Aug  1 09:52 vcsa4
crw-------  1 root root      7, 133 Aug  1 09:52 vcsa5
crw-------  1 root root      7, 134 Aug  1 09:52 vcsa6
crw-------  1 root root      7, 135 Aug  1 09:52 vcsa7
crw-------  1 root root     10,  63 Aug  1 05:52 vga_arbiter
crw-------  1 root root     10, 130 Aug  1 09:52 watchdog
prw-r-----  1 root adm            0 Aug  1 10:11 xconsole
crw-rw-rw-  1 root root      1,   5 Aug  1 05:52 zero
I was personally unaware of the block vs character devices. So after a bit of metasearch, I have the faint idea that when my system was upgraded to D7.1, it flipped the bits on the CD/DVDs to 'B' instead of 'C'. Judging from the article post that said:

A block device would read/write bytes in fixed size blocks, as in disk sectors. Character devices read/write 0 or more bytes, in a stream, such as a TTY or a keyboard. The nature of the device generally dictates how the device driver is written for it, and you access the device accordingly.

article Link

I'm not comfortable enough to start monkeying with the real low-level stuff on my linux machine without advice, so I ask; Should I flip the bits back to 'C' on the 4 entries dealing with the CD/DVD drive? Or is there something else going on?

.
Quote:
Originally Posted by jailbait View Post
I use Debian 7.1 and I used to use Debian 7.0. I never had your problem because I never tried to mount CD/DVD the way you are doing it. I tried your command: mount -t iso9660 /dev/sg2 /media/cdrom on my Debian 7.1 and got the same error message that you get. Try this command which works on my machine:

mount -t iso9660 /dev/sr0 /media/cdrom

On my machine /dev/sg0 through /dev/sg6 are character devices. I don't know what they were on Debian 7.0

On my machine /dev/sr0 is a block device. I don't know what it was on Debian 7.0.

Use the command: ls -l /dev | less to display your devices. The left most character will show whether a device is a block device or a character device.

----------------------
Steve Stites
 
Old 08-01-2013, 10:36 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 153Reputation: 153
"Should I flip the bits back to 'C' on the 4 entries dealing with the CD/DVD drive? Or is there something else going on?"

No don't flip the bits. /dev/sg0 through /dev/sg4 are character devices, probably USB ports. If you flip the bits probably the USB device driver will stop working.

"mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so"

There is something wrong with the filesystem on your CD. That is the message I get when I try to mount a blank CD, a music CD, or a movie CD. Try mounting a different CD on /dev/sr0.

In any case forget trying to mount a CD on a character device and see if you can get /dev/sr0 to work.

--------------------
Steve Stites
 
Old 08-01-2013, 09:25 PM   #5
kevincredden
LQ Newbie
 
Registered: Apr 2007
Location: Kentucky
Distribution: debian v7.1
Posts: 7

Original Poster
Rep: Reputation: 0
Steve:

Ok, it's working now. It seems the upgrade erased several packages necessary for audio CDs, and rewrote the /etc/udev/rules.d/70-persistent-cd.rules

For others having the same problem here's what I did:

a: Check to see if these programs are installed
* autofs
* kdemultimedia-kio-plugin
*libcdaudio

If they are installed, do a reinstall on them. (I had to do that with libcdaudio)

b: Go to: http://forums.debian.net/viewtopic.php?t=46877, and follow the directions on fixing the rules.d/70-persistent-cd.rules file.

reboot

Finally, load up an audio CD player like VLC, and see if it detects it. If so, you can playback CDs.

Next try K3b. If it can read and show the tracks, see if you can't rip them to at least .WAV.

Try some sort of data CD or DVD:

I just put in a Windows 7 install DVD, it mounted it, automatically, and Krusader can easily read it.

A data CDR I burned a few years ago, also is automatically mounted, and Krusader reads it with no problem as well.

The upgrade must have done some other screw ups: I've found that .FLAC no longer works with k3b, so that's a new problem I'll work on.

What is aggravating is that with D7.00 I could rip files to .FLAC, and it automatically mounted even the audioCDs. Now it won't mount the CD, but at least VLC, and K3b has no problems with them, which solves /most of the problems/

I'll keep working on the .FLAC problem now.

I might add, that from what I read, /audioCDs/ do not use the iso9660 format.

Thanks again, Steve. You was a big help.

--

Quote:
Originally Posted by jailbait View Post
"Should I flip the bits back to 'C' on the 4 entries dealing with the CD/DVD drive? Or is there something else going on?"

No don't flip the bits. /dev/sg0 through /dev/sg4 are character devices, probably USB ports. If you flip the bits probably the USB device driver will stop working.

"mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so"

There is something wrong with the filesystem on your CD. That is the message I get when I try to mount a blank CD, a music CD, or a movie CD. Try mounting a different CD on /dev/sr0.

In any case forget trying to mount a CD on a character device and see if you can get /dev/sr0 to work.

--------------------
Steve Stites

Last edited by kevincredden; 08-01-2013 at 09:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Network drives won't mount automatically from FSTAB khinch Linux - Networking 2 01-14-2009 12:44 PM
KDE won't start automatically davcefai Debian 6 12-11-2006 11:44 PM
KDE won't let me log in Hockeyfan Linux - Software 1 07-03-2005 12:03 AM
Can't log in as root after KDE update ludwig W Suse/Novell 2 05-04-2005 06:39 AM
Programs Automatically Start When I log In To KDE deft Linux - Software 4 04-06-2004 07:54 PM


All times are GMT -5. The time now is 06:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration