LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-04-2007, 01:36 PM   #1
FogOgg
LQ Newbie
 
Registered: Jul 2004
Location: Houston, TX
Distribution: FreeBSD 6.2
Posts: 13

Rep: Reputation: 0
Automount - 7.04


I installed Ubuntu desktop 7.04 last week and have been struggling with the CD automounting for quite some time now.

If a CD is in the drive when I reboot it will be mounted and function, but as soon as I eject it, the system fails to mount any new CD. It mounts and accesses floppies just fine.

I saw communication problems with the old drive in dmesg and swapped it out for a new drive, that ended the problem messages. If I run the hal monitor I can see the cd-rom speaking with the computer and updating it's state as I open and close the tray with out without a CD.

I can mount the drive manually, but once this problem starts I get the error message "Unable to mount drive. There appears to be no media in the drive." whenever attempting to access the CD-ROM after placing a new disc in. If any output is needed let me know nad I will get it. Thanks for any help.
 
Old 05-06-2007, 04:48 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
look through your syslog (dmesg) for any mention of your cd drive

dmesg | grep hdc
dmesg | grep cdrom

etc.

perhaps a look at udev rules?

Is this a brand new drive?
Have you tested the drive on another machine?
 
Old 05-07-2007, 10:39 AM   #3
FogOgg
LQ Newbie
 
Registered: Jul 2004
Location: Houston, TX
Distribution: FreeBSD 6.2
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge
look through your syslog (dmesg) for any mention of your cd drive

dmesg | grep hdc
dmesg | grep cdrom

etc.

perhaps a look at udev rules?

Is this a brand new drive?
Have you tested the drive on another machine?
Thanks for reading and trying to help. I'm sure this is something simple but I have very little Linux experience ( )and need some help here and there.

The CD-ROM is not new but was working well when pulled from it's previous home. Down at the bottom I pasted the info from dmesg about the drive. Which udev rule should I be looking at, I glanced through them briefly and was

If I can post anything else that could give anyone a clue to tell me what to look at let me know, I will be with this computer for a few more hours today until I go home.




This is the result of dmesg involving the drive:

[ 33.469690] ata1.00: ata_hpa_resize 1: sectors = 39102336, hpa_sectors = 39102336
[ 33.469704] ata1.00: ATA-4: ST320413A, 3.39, max UDMA/100
[ 33.469712] ata1.00: 39102336 sectors, multi 16: LBA
[ 33.477715] ata1.00: ata_hpa_resize 1: sectors = 39102336, hpa_sectors = 39102336
[ 33.477731] ata1.00: configured for UDMA/66
[ 33.477765] scsi1 : ata_piix
[ 33.671854] Floppy drive(s): fd0 is 1.44M
[ 33.726156] FDC 0 is a post-1991 82077
[ 33.797598] ata2.00: ATAPI, max MWDMA2
[ 33.961329] ata2.00: configured for MWDMA2
[ 33.961808] scsi 0:0:0:0: Direct-Access ATA ST320413A 3.39 PQ: 0 ANSI: 5
[ 33.963412] scsi 1:0:0:0: CD-ROM SAMSUNG CDRW/DVD SM-308B T100 PQ: 0 ANSI: 5
 
Old 05-08-2007, 11:25 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
when quoting output, quote the command for the output too. Also need to know the messages that come from attempting to mount a cd manually (unsuccessfully).

ie
Code:
simon@indigo-prime:~$ dmesg | grep CD-ROM
[   35.664022] scsi 1:0:0:0: CD-ROM            LITE-ON  COMBO SOHC-5232K NK0H PQ: 0 ANSI: 5
[   35.676855] Uniform CD-ROM driver Revision: 3.20
[   35.676991] sr 1:0:0:0: Attached scsi CD-ROM sr0
simon@indigo-prime:~$ dmesg | grep sr0
[   35.676850] sr0: scsi3-mmc drive: 0x/62x writer cd/rw xa/form2 cdda tray
[   35.676991] sr 1:0:0:0: Attached scsi CD-ROM sr0
[   84.863459] cdrom: sr0: mrw address space DMA selected
[   85.049194] cdrom: sr0: mrw address space DMA selected
however, I strongly suspect that you will find it faster to reinstall.
 
Old 05-09-2007, 03:15 PM   #5
FogOgg
LQ Newbie
 
Registered: Jul 2004
Location: Houston, TX
Distribution: FreeBSD 6.2
Posts: 13

Original Poster
Rep: Reputation: 0
Both commands you suggested came up with nothing so I just skimmed the entire output of dmesg for what I pasted.

Anyway, I can mount and unmount manually with no issues. Browsing the disc yields no errors. Also, if I reboot and stick the disc in immediately after booting from the hard drive but before starting the OS it will mount at boot. Unfortunately when I eject the drive it reverts back to it's old ways.

I did install 6.10 on Tuesday and it worked fine. The disc automounted every time with no issues. Then I upgraded back to 7.04 today, thinking maybe I just had a corrupted install disc before. However, as soon as I made the mistake of upgrading back to 7.04 through the Ubuntu upgrade manager the same issue came right back.

In the interest of not being a difficult support subject, this is the result of manually mounting and unmounting:

Code:
user@user-desktop:/$ sudo mount /dev/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
user@user-desktop:/$ cd /cdrom
user@user-desktop:/cdrom$ ls
cdromupgrade  doc      isolinux    pics  preseed             ubuntu
dists         install  md5sum.txt  pool  README.diskdefines
user@user-desktop:/cdrom$ cd ..
user@user-desktop:/$ sudo umount /dev/cdrom
user@user-desktop:/$ cd /cdrom
and this is the result of dmesg:

Code:
user@user-desktop:/cdrom$ dmesg | grep CD-ROM
[   25.466243] scsi 1:0:0:0: CD-ROM            SAMSUNG  CDRW/DVD SM-308B T100 PQ: 0 ANSI: 5
[   25.650734] Uniform CD-ROM driver Revision: 3.20
[   25.651661] sr 1:0:0:0: Attached scsi CD-ROM sr0
user@user-desktop:~$ dmesg | grep sr0
[   25.650714] sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
[   25.651661] sr 1:0:0:0: Attached scsi CD-ROM sr0
and just for fun, here's my fstab:

Code:
user@user-desktop:/cdrom$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda1
UUID=c5d4ea6a-d452-424a-848d-be579b1a3ad0 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda5
UUID=f1dc28a8-195c-4905-ab10-403b06af63dc none            swap    sw              0       0
/dev/cdrom       /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0           /media/floppy0  auto    rw,user,noauto  0       0
Thanks for sticking with this thread and trying to help me out, but I suspect you are right and I will just reinstall 6.10 and give the soon to be owner of this machine instructions to avoid upgrading to 7.04.

Am I the only person that has run into this problem? I've been searching for nearly two weeks and not only can I not find any similar issues anywhere, you seem to be the only person who has even taken an interest in this problem. For that, I'm grateful to you.

Last edited by FogOgg; 05-10-2007 at 07:51 AM.
 
Old 05-10-2007, 11:50 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It would appear you are, indeed the only person to have this experience.
Do not upgrade - download the feisty iso and install. (An managed upgrade from a working system should also work but.)

What I was hoping to do was compare get enough info on your drive to work out what is happening. Automounting is managed from autofs and udev...

Looking at fstab:
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0

... /dev/cdrom is a link; where to (ls -l /dev/cdrom)

eg. for me:
simon@indigo-prime:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 4 2007-05-08 23:12 /dev/cdrom -> scd0

I can then look up udev stats for this node
Code:
simon@indigo-prime:~$ udevinfo -a -p `udevinfo -q path -n /dev/scd0`

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/block/sr0':
    KERNEL=="sr0"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{stat}=="  241820 10143364 41540808  7648820        0        0        0        0        0  3943476  7648800"
    ATTR{size}=="14844588"
    ATTR{removable}=="1"
    ATTR{range}=="1"
    ATTR{dev}=="11:0"
[...snip...]
...and I can look for rules about this device in /etc/udev/rules.d/00.rules

eg.
Code:
simon@indigo-prime:~$ cat /etc/udev/rules.d/30-cdrom_id.rules

# import optical drive properties

KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
(END)
http://www.linux-mag.com/id/3015/ ... to help understand udev
 
Old 05-11-2007, 07:28 AM   #7
FogOgg
LQ Newbie
 
Registered: Jul 2004
Location: Houston, TX
Distribution: FreeBSD 6.2
Posts: 13

Original Poster
Rep: Reputation: 0
My /dev/cdrom seems to match yours:

Code:
user@user-desktop:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 4 2007-05-11 07:12 /dev/cdrom -> scd0
The udevinfo command supplies me with this:

Code:
user@user-desktop:~$ udevinfo -a -p `udevinfo -q path -n /dev/scd0`

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/block/sr0':
    KERNEL=="sr0"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{stat}=="       6       22      112     2164        0        0        0        0        0     2164     2164"
    ATTR{size}=="1426500"
    ATTR{removable}=="1"
    ATTR{range}=="1"
    ATTR{dev}=="11:0"

  looking at parent device '/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0':
    KERNELS=="1:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sr"
    ATTRS{ioerr_cnt}=="0x0"
    ATTRS{iodone_cnt}=="0x41e"
    ATTRS{iorequest_cnt}=="0x41f"
    ATTRS{iocounterbits}=="32"
    ATTRS{timeout}=="0"
    ATTRS{state}=="running"
    ATTRS{rev}=="T100"
    ATTRS{model}=="CDRW/DVD SM-308B"
    ATTRS{vendor}=="SAMSUNG "
    ATTRS{scsi_level}=="6"
    ATTRS{type}=="5"
    ATTRS{queue_type}=="none"
    ATTRS{queue_depth}=="1"
    ATTRS{device_blocked}=="0"

  looking at parent device '/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0':
    KERNELS=="target1:0:0"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1f.1/host1':
    KERNELS=="host1"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:1f.1':
    KERNELS=="0000:00:1f.1"
    SUBSYSTEMS=="pci"
    DRIVERS=="ata_piix"
    ATTRS{msi_bus}==""
    ATTRS{broken_parity_status}=="0"
    ATTRS{modalias}=="pci:v00008086d00002411sv00008086sd00002411bc01sc01i80"
    ATTRS{local_cpus}=="ff"
    ATTRS{irq}=="0"
    ATTRS{class}=="0x010180"
    ATTRS{subsystem_device}=="0x2411"
    ATTRS{subsystem_vendor}=="0x8086"
    ATTRS{device}=="0x2411"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
Udev rules:

Code:
user@user-desktop:~$ cat /etc/udev/rules.d/30-cdrom_id.rules
# import optical drive properties

KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", IMPORT{program}="cdrom_id --export $tempnode"
If I may ask, what are you looking for in all of this output? I am as interested by this as I am frustrated, I look forward to eventually figuring this out, so that I will be better prepared to troubleshoot further problems some other time. Thanks again.
 
Old 05-14-2007, 01:01 PM   #8
FogOgg
LQ Newbie
 
Registered: Jul 2004
Location: Houston, TX
Distribution: FreeBSD 6.2
Posts: 13

Original Poster
Rep: Reputation: 0
Problem solved. On a whim I swapped CD drives. Although the old drive tested fine and works perfectly in other systems and under 6.10, it is NOT compatible with 7.04 apparently.

Although it could boot, install and run from the CD just fine and access files when manually mounted without issue, the old drive was incompatible with 7.04.

It was a Samsung CD-RW/DVD drive, model SM-308.
 
Old 05-15-2007, 01:40 AM   #9
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It should be - report it as a bug.
 
  


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
Automount. How ? LinxNew Linux - General 6 05-12-2005 09:52 AM
Automount: no more in LE LinxNew Mandriva 2 05-07-2005 09:21 AM
automount in 9.1 alaios SUSE / openSUSE 8 10-26-2004 10:04 AM
Help with automount please jihadcman Fedora 2 06-06-2004 06:32 PM
Automount jailbait Linux - Software 2 07-16-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:46 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