Re: Non-RW media; WORM hopes
Phillip Susi <[email protected]> Wed, 13 Jun 2007 15:47:43 -0400
| Newsgroups | gmane.linux.suse.packet-writing |
|---|---|
| Message-ID | <[email protected]> |
RB wrote: > On 6/12/07, Phillip Susi <[email protected]> wrote: >> The media must be formatted for packet writing mode and you must use a >> block size equal to the packet size ( 32k by default ). > > I wish I weren't so dense. I thought the default packet size for > optical media was 2k - where do you get 32k? No, the sector size is 2k. The default packet size that cdrwtool formats the track with is 32k. I uploaded some patches to Ubuntu documenting the hidden parameter to change the packet size, and fixing a bug that prevented sizes other than 32k from working. If you download the source package from packages.ubuntu.com, you will find these patches in the debian/dpatch directory. Larger packets allow you to use more of the disk, smaller ones require that you write less at a time. > Regardless, I can't get any of the UDF formatting tools to do anything > anyway 'mkudffs -r 0x0150 --media-type=worm /dev/hdc 359845' fails > silently with EROFS and EBADF; 'cdrwtool -d /dev/hdd -u 359845' runs a > bit, then fails with 'bad sector' IDE errors. > > Is the comment about formatting the media an esoteric one or do you > know something about one of the tools I'm unaware of? Again, you can not put a udf filesystem on it. You need to use cdrwtool to only format the track, which I believe was the -m option. Once the track is formatted, you should be able to write directly to it with dd using 32kb blocks.