pmount fails; mount succeeds

Bug #9529 reported by Craig Falls
This bug report is a duplicate of:  Bug #9257: pmount does not mount CD-ROM devices. Edit Remove
6
Affects Status Importance Assigned to Milestone
pmount (Ubuntu)
Invalid
Medium
Martin Pitt

Bug Description

I'm running Warty. Here's what happens:

> cat /etc/mtab
/dev/hda9 / ext3 rw,noatime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda7 /var ext3 rw,noatime 0 0
/dev/hda6 /home/cfalls ext3 rw,noatime 0 0
none /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /proc/bus/usb usbdevfs rw 0 0

> pmount /dev/hdc
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       or too many mounted file systems
Error: mount failed

> cat /etc/mtab
(mtab unchanged)

> mount /dev/hdc /media/hdc
mount: block device /dev/hdc is write-protected, mounting read-only
(Icons appear in Disks folder, etc)

A related problem is that CDs, usb keys, etc are never automatically mounted for
me, but can be mounted manually using "mount".
hal, udev, gnome-volume-manager, pmount, mount, and hotplug are installed and
running happily.

Revision history for this message
Martin Pitt (pitti) wrote :

Hi!

(In reply to comment #0)
> > pmount /dev/hdc
> mount: block device /dev/hdc is write-protected, mounting read-only
> mount: wrong fs type, bad option, bad superblock on /dev/hdc,
> or too many mounted file systems
> Error: mount failed

In case /dev/hdc is a CD-ROM, this is a known bug (#2543), which is already
fixed in the Hoary version.

> > mount /dev/hdc /media/hdc
> mount: block device /dev/hdc is write-protected, mounting read-only
> (Icons appear in Disks folder, etc)

Do you do this as root?

Can you please show me your /etc/fstab?

> A related problem is that CDs, usb keys, etc are never automatically mounted for
> me, but can be mounted manually using "mount".

You mean with "mount" executed as root (or with sudo)?

Revision history for this message
Craig Falls (cfalls) wrote :

In Device Manager, inserting a CD does cause the volume to appear.

block.device is /dev/hdc (which is correct)
block.have_scanned is 0
block.is_volume is 1
volume.mount_point is blank
volume.is_mounted is 0

On drive itself:
storage.hotpluggable is 0
storage.media_check_enabled is 1
storage.cdrom.support_media_changed is 1

I don't really know what that means, but thought it might be useful.

Revision history for this message
Craig Falls (cfalls) wrote :

(In reply to comment #1)
> Hi!
>
> (In reply to comment #0)
> > > pmount /dev/hdc
> > mount: block device /dev/hdc is write-protected, mounting read-only
> > mount: wrong fs type, bad option, bad superblock on /dev/hdc,
> > or too many mounted file systems
> > Error: mount failed
>
> In case /dev/hdc is a CD-ROM, this is a known bug (#2543), which is already
> fixed in the Hoary version.

Sorry for the duplicate. It is a CD-ROM.

>
> > > mount /dev/hdc /media/hdc
> > mount: block device /dev/hdc is write-protected, mounting read-only
> > (Icons appear in Disks folder, etc)
>
> Do you do this as root?

I executed all commands as root. The results are the same if I'm myself using sudo.

>
> Can you please show me your /etc/fstab?

Sure, I have changed it a lot in light of these problems:
/dev/hda9 / ext3 noatime 1 2
/dev/hda7 /var ext3 noatime 1 2
/dev/hda6 /home/cfalls ext3 noatime 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /proc/bus/usb usbdevfs defaults 0 0
/dev/hdb1 /windows vfat rw,noauto,umask=002 0 0
/dev/hda8 swap swap defaults 0 0
#/dev/fd0 /mnt/floppy auto user,rw,noauto 0 0
#/dev/hdc /mnt/cdrom udf,iso9660 user,ro,noauto 0 0
#/dev/hdd /mnt/zip auto user,rw,noauto 0 0
#/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0

>
> > A related problem is that CDs, usb keys, etc are never automatically mounted for
> > me, but can be mounted manually using "mount".
>
> You mean with "mount" executed as root (or with sudo)?
>

Yes. If I insert a disk, it is not mounted. Executing "mount /dev/hdc
/media/hdc" as root or using sudo works.

Revision history for this message
Craig Falls (cfalls) wrote :

USB keys are not automatically mounted for me, either... Is this a separate problem?

Revision history for this message
Craig Falls (cfalls) wrote :

This bug has been marked as a duplicate of bug 9257.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.