Mailinglist Archive: packet-writing (124 mails)
| < Previous | Next > |
Pseudo-RW-mount of multisession CD's
- From: Christian Gollwitzer <auriocus@xxxxxx>
- Date: Thu, 19 Apr 2001 22:04:27 +0000 (UTC)
- Message-id: <01041922533600.06108@karl-delp-219>
Dear guys,
I was watching activities in this mailing list for a long time, 'cause I was
interested in handling CD's like harddiscs. My first try with some early
version of pktcdvd only caused the Kernel to Oops or crash, so I decided just
to wait until there will be a stable version.
But I found that with some simple shellscripts one can achieve similiar
functionality with multisession CDs. I've attached them at this mail, if
anyone of you wants to use them.
How to install:
1. create the directories /cdmulti and /var/adm/cdmount with 777 permission
2. Adapt the variables DEVICE and RAWDEVICE
DEVICE should point to your SCSI-CDROM-special file that is your writer, and
RAWDEVICE should be the generic SCSI device. On my system (ide-scsi
emulation) DEVICE is /dev/scd0 and RAWDEVICE is /dev/sg0
3. insert a blank disc ( CD-R or RW ) into your writer and execute multimount.
You will get some message that it is a blank disc.
Copy files you want to be written into /cdmulti ( you may also make
symlinks), then execute multiumount. The files will be burned to disc, and
the folder /cdmulti will be cleared.
If you execute multimount with an already written disc, it gets really
mounted to /var/adm/cdmount, and the program puts symlinks int /cdmulti. If
you execute multiumount, the program compares with the original filelist and
writes changes to the disc.
There are yet some problems:
*Empty directories are not allowed, they are omitted
*Deleting files doesn't work, I haven't mastered to exclude only some old
files from the old session
*Deleting files would not free the space on the disc, it only makes the
directory emtry disappear
*They only run as root ( perhaps they are suid-safe ), though copying data
inside the pseudo-mountpoint is possible for the non-root user, too
*file names cannot contain whitespaces, this confuses the shell's for command
Please let me know if you think these scripts are useful, or if you have any
suggestions for the above problems
--
Valete!
Christianus Auriocus
I was watching activities in this mailing list for a long time, 'cause I was
interested in handling CD's like harddiscs. My first try with some early
version of pktcdvd only caused the Kernel to Oops or crash, so I decided just
to wait until there will be a stable version.
But I found that with some simple shellscripts one can achieve similiar
functionality with multisession CDs. I've attached them at this mail, if
anyone of you wants to use them.
How to install:
1. create the directories /cdmulti and /var/adm/cdmount with 777 permission
2. Adapt the variables DEVICE and RAWDEVICE
DEVICE should point to your SCSI-CDROM-special file that is your writer, and
RAWDEVICE should be the generic SCSI device. On my system (ide-scsi
emulation) DEVICE is /dev/scd0 and RAWDEVICE is /dev/sg0
3. insert a blank disc ( CD-R or RW ) into your writer and execute multimount.
You will get some message that it is a blank disc.
Copy files you want to be written into /cdmulti ( you may also make
symlinks), then execute multiumount. The files will be burned to disc, and
the folder /cdmulti will be cleared.
If you execute multimount with an already written disc, it gets really
mounted to /var/adm/cdmount, and the program puts symlinks int /cdmulti. If
you execute multiumount, the program compares with the original filelist and
writes changes to the disc.
There are yet some problems:
*Empty directories are not allowed, they are omitted
*Deleting files doesn't work, I haven't mastered to exclude only some old
files from the old session
*Deleting files would not free the space on the disc, it only makes the
directory emtry disappear
*They only run as root ( perhaps they are suid-safe ), though copying data
inside the pseudo-mountpoint is possible for the non-root user, too
*file names cannot contain whitespaces, this confuses the shell's for command
Please let me know if you think these scripts are useful, or if you have any
suggestions for the above problems
--
Valete!
Christianus Auriocus
| < Previous | Next > |