CD-RW: CDFS? Unstable dev nos?

CD-RW: CDFS? Unstable dev nos?

Post by Fred Goldste » Sun, 22 Oct 2000 11:56:57



I've built a kernel with SCSI emulation in order to support an ATAPI CD-RW
drive.... I still have an old 4X CDROM in too, as the "master", with the
CD-RW "slave".  Note I'm using Mandrake 7.1, with kernel 2.2.15.  Two
issues arise:

1)  The file system, CDFS, which Windows et al use for rewriting data
(floppy-like) onto a CDROM doesn't seem to be there.  Is this being added
at any known time?  (No, I don't have the skills to write the driver
myself.  Sorry.)  I'm a little surprised because Linux has so many file
systems already...

2)  The device name isn't steady.  I think the CDRW was /dev/scd3 when I
was "root" but then scd0 when I logged in again under my regular username!
Is there supposed to be some fixed formula by which emulated SCSI numbers
are assigned?  Or is this a bug?

Many thanks.
--
Fred R. Goldstein   k1io   fgoldstein"at" wn.net
These are my own opinions. You expect anyone else to agree?

 
 
 

CD-RW: CDFS? Unstable dev nos?

Post by Mario Klebs » Sun, 22 Oct 2000 04:00:00



>1)  The file system, CDFS, which Windows et al use for rewriting data
>(floppy-like) onto a CDROM doesn't seem to be there.

It is calles UDF (Universal Disk Format)

Quote:>Is this being added at any known time?  (No, I don't have the skills
>to write the driver myself.  Sorry.)  I'm a little surprised because
>Linux has so many file systems already...

There is UDF for linux, too. Here is the README:

/* ------------------------------------------------------------------
 * Linux(r) UDF Filesystem Driver
 * Version: 0.9.0
 * --------------------------------------------------------------- */

REQUIRED:
        Linux version 2.1.70 or higher

COMPILING:
        type: "make udf.o"

INSTALLING:
        type: "make install"

KERNEL PATCH:
        type: "make patch"

TESTING:
        type "depmod -a"
        type "modprobe udf",
        then "mount -t udf /dev/scd0 /mnt"
                (assuming /dev/scd0 is your scsi cdrom)
    or
         "mount -t udf -o loop image /mnt"
                (Substitute "scd0", "image",  and "/mnt" as appropriate for your system)


    with a subject of "Get UDF Sample Discs Access". You should get the URL
    sent back within 5 minutes.

If you want to help out, subscribe to the linux_udf mailing list below.

OSTA-UDF
    Optical Storage Technology Association Universal Disk Format

The Linux UDF development team mail list is:

Subscribe to the mailing list by sending a message to:

with a body of:
    subscribe linux_udf

UDF developers should subscribe to additional lists:
    subscribe osta_tc
    subscribe osta_cd_dvd

Documentation on UDF and ECMA 167 is available FREE from:
    http://www.osta.org/
    http://www.ecma.ch/

73, Mario
--

PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
 Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518

 
 
 

CD-RW: CDFS? Unstable dev nos?

Post by Dave Pla » Sun, 22 Oct 2000 04:00:00




>1)  The file system, CDFS, which Windows et al use for rewriting data
>(floppy-like) onto a CDROM doesn't seem to be there.  Is this being added
>at any known time?  (No, I don't have the skills to write the driver
>myself.  Sorry.)  I'm a little surprised because Linux has so many file
>systems already...

The correct name is UDF - Universal Data FOrmat.

There is definitely a project underway to add read-only, write-once
(CD-R), and write-many (CD-RW) UDF support to Linux.  Last I checked,
they had CD-RW support working pretty well, on both ATAPI and SCSI
CD-RW drives (MMC command set required).  CD-R support would appear
once CD-RW was stable.

Adding  support  for   read-only  UDF isn't too hard, it seems.  Adding
support  for  read/write (either  -once  or  -many) looked as if it was
very nontrivial - it requires patching the kernel's basic
VM-and-buffer-management layer, in order to ensure that data is
written from the buffer cache in chunks which are the size required by
a packet-mode CD-RW.

Quote:>2)  The device name isn't steady.  I think the CDRW was /dev/scd3 when I
>was "root" but then scd0 when I logged in again under my regular username!
>Is there supposed to be some fixed formula by which emulated SCSI numbers
>are assigned?  Or is this a bug?

I've never seen this happen.  Device names are assigned at boot time
and/or module-probing time, in the order that the devices are "seen".

--

Visit the Jade Warrior home page:  http://www.radagast.org/jade-warrior/
  I do _not_ wish to receive unsolicited commercial email, and I will
     boycott any company which has the gall to send me such ads!

 
 
 

1. broken 2.2 IDE CD-RW (was Re: plain 2.2.X: no ide CD-RW?)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Sorry, I was referring to the backport of the 2.4 IDE code to 2.2.
I'm currently using ide.2.2.19.05042001 successfully, which I got from:

  ftp://ftp.us.kernel.org:/pub/linux/kernel/people/hedrick/ide-2.2.19

I've used several similar patches, though.  Stock 2.4 kernels work
fine with my CD-RW as well; however, I've now discovered that plain
2.2 kernels do not.  This could easily be a long-standing problem,
probably at least a year old - I've only recently stumbled across it,
though.

Since I have a solution (use the 2.4 IDE backport), this isn't
critical; however, since many people still rely on 2.2, and I'd like
to use a stock 2.2 kernel if possible, I'm willing to spend some time
debugging this.

Thanks!

  --Anil

(A bit of background: Before I got my CD-RW drive last summer, I
bought an OnStream DI-30 drive.  This drive was then only supported on
2.2 with the 2.4 IDE backport, and so I've used this drive
successfully with 2.2.16 + 2.4 IDE patch, and a similar combination
since.  Since stock 2.2.19+ now support this drive through the osst
patch, I thought I'd try it out.  It does work, but at the cost of
losing my CD-RW.)

- --

http://www.cs.unm.edu/~soma
+1 505 872 3150
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iEYEARECAAYFAjs2h2AACgkQXOpXEmNZ3SfOlwCfb+it3YQrmO2e9q14AZMhcdZo
M+0An3Mi8aoEkvjD5vhC3Hc6yaICrMDE
=cV6C
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Redirects won't work with Apache proxy on Orion (FreeBSD)

3. SCSI CD-RW: yamaha 4416s: HowTo REWrite CD-RW's?

4. Autreal Vortex progress

5. CD-RW support specifically with NEC NR 7700A CD-RW drive

6. Oak OTI-067 and SyncMaster3, >640x480 how?

7. ide-scsi cd-rw woes (creative cd-rw blaster)

8. Linux IP layer

9. flexlm on HPs requires rw-rw-rw- on /dev/lan0

10. loopback /dev file for CD-RW

11. SCSI CD-RW on /dev/sg0?

12. /dev/acd? and ATAPI CD-RW?

13. Sony DVD-RW/CD-RW drive problems