Ben Fennema wrote:
On Wed, Jul 17, 2002 at 03:02:02PM -0700, guStaVo ZaeRa wrote:
  
Wayde Milas wrote:

    
On Wednesday 17 July 2002 04:09 pm, Ben Fennema wrote:
/> Just a though, but try:/
/>/
/> dd if=/dev/zero of=/dev/sr0 bs=2048 count=5120/
/> mkudffs /dev/sr0 5120/
/>/
/> mount/
/> try and copy stuff/
/>/
/> and see if you have any better luck./

Nopers. The create worked, but the same problem when I tried to copy the
mkudffs dir over:
cp -a mkudffs /mnt/cdrom
cp: cannot create directory `/mnt/cdrom/mkudffs': Input/output error

      
you have of course mounted it as rw?

    
dmesg:
UDF-fs INFO UDF 0.9.6-rw (2002/03/11) Mounting volume 'LinuxUDF', 
timestamp
2002/07/17 19:27 (1ed4)
 I/O error: dev 0b:00, sector 1096

      
i have a similar problem, though i am actually able to write what seems 
to be a random number of MBs for each time i mount the drive.

--
i the try to copy a 500MB file onto the disk:

# cp -i cd3.iso /mnt/dvd+rw/
cp: /mnt/dvd+rw/cd3.iso: No space left on device
#

my dmesg at this point is:
 I/O error: dev 0b:00, sector 1108
 I/O error: dev 0b:00, sector 1108

the size of the file written to the disk is ~99MB.

if i now unmount the drive and remount it, i can write some additional 
bytes to it. For each time i do this, the lost+found directory appears 
and disappears on an apparently random basis.
    

Out of curiosity, is the background format complete when you try and mount
the disc, or is it ongoing? (maybe every time you mount/umount the disc, more
of it has been formated so you can use more...)
i am pretty sure that it's all done. the formatting only takes a couple of seconds, right?

this is the output:

[root@ksi2 compile]# mkudffs --media-type=cdrw /dev/cdrom
start=0, blocks=16, type=RESERVED
start=16, blocks=3, type=VRS
start=19, blocks=237, type=USPACE
start=256, blocks=1, type=ANCHOR
start=257, blocks=31, type=USPACE
start=288, blocks=32, type=PVDS
start=320, blocks=32, type=LVID
start=352, blocks=32, type=STABLE
start=384, blocks=1024, type=SSPACE
start=1408, blocks=2293408, type=PSPACE
start=2294816, blocks=31, type=USPACE
start=2294847, blocks=1, type=ANCHOR
start=2294848, blocks=160, type=USPACE
start=2295008, blocks=32, type=STABLE
start=2295040, blocks=32, type=RVDS
start=2295072, blocks=31, type=USPACE
start=2295103, blocks=1, type=ANCHOR
If you say, dd if=/dev/zero of=/dev/sr0 bs=2048 count=(however many blocks on the dvd+rw),
a question that might seem a little naive: how do i know the amount of blocks on the disk?

then run mkudffs and mount it, can you write the whole file right away?
i don't know yet.

gustavo
-- 
guStaSo ZaeRa | Software Engineer
BRE Systems LLC.
1532 State Street Suite C
Santa Barbara, Ca 93101
gzaera@bresystems.com

http://www.bresystems.com

"My goal is to make any information
  available from anywhere,
    at anytime."