I think the problem is with HAL.

Starting from a typical system state, I inserted a store-bought DVD, and
then recorded the following:

r...@andrew-laptop# df -h
Filesystem            Size Used Avail Use% Mounted on
/dev/sda5             148G  120G   22G  85% /
tmpfs                1012M     0 1012M   0% /lib/init/rw
varrun               1012M  452K 1011M   1% /var/run
varlock              1012M     0 1012M   0% /var/lock
tmpfs                1012M  3.3M 1009M   1% /dev/shm
devpts               1012M  3.3M 1009M   1% /dev/pts
/dev/sda2             243M   39M  192M  17% /boot
/dev/sda1              79G   78G  1.3G  99% /media/S3A4238D001
/dev/scd0             120M  120M     0 100% /media/cdrom0
r...@andrew-laptop# cat /dev/scd0 | wc -l
561658
r...@andrew-laptop# umount /media/cdrom0
r...@andrew-laptop# /etc/init.d/hal stop
 * Stopping Hardware abstraction layer hald                              [ OK ] 
r...@andrew-laptop# mount /media/cdrom0
mount: block device /dev/scd0 is write-protected, mounting read-only
r...@andrew-laptop# df -h
Filesystem            Size Used Avail Use% Mounted on
/dev/sda5             148G  120G   22G  85% /
tmpfs                1012M     0 1012M   0% /lib/init/rw
varrun               1012M  448K 1011M   1% /var/run
varlock              1012M     0 1012M   0% /var/lock
tmpfs                1012M  3.3M 1009M   1% /dev/shm
devpts               1012M  3.3M 1009M   1% /dev/pts
/dev/sda2             243M   39M  192M  17% /boot
/dev/sda1              79G   78G  1.3G  99% /media/S3A4238D001
/dev/scd0             4.1G  4.1G     0 100% /media/cdrom0
r...@andrew-laptop# cat /dev/scd0 | wc -l
561658

Note that the reported size of the file system as reported by df has
changed.  The size of the accessible size of the disk has not changed
though.

At this point I ejected the disk (previously I only unmounted it), and
pushed the disk back in.  The df output is now showing 4.1GB as in the
second listing above, but the readable file size has increased:

r...@andrew-laptop# df -h
Filesystem            Size Used Avail Use% Mounted on
[...]
/dev/scd0             4.1G  4.1G     0 100% /media/cdrom0
r...@andrew-laptop# cat /dev/scd0 | wc -l
19962098

The disk is now in a usable state.  So far this is my rather inadequate
workaround, and I re-enable hal again when I'm done with the disk.

-- 
mounting dvd says: block device is write protected
https://bugs.launchpad.net/bugs/244445
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to