Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a requirement to write test data (text file) to cd. The system is centos 6.7 and is bare bones command line. Im able to mount the cd and read but it's rough. Everything is from the root. Im using
$ mount -wt udf /dev/cdrw /media/
It gives me write protection warnings and I suspect there is a file type other than
iso9660 or udf that will work better. So my question is, can I mount and write to a USB cd rw? Or do I need cdrecord and rethink this?
i could think of a few more search terms; in any case it will require some digging.
i'm a little unclear on what you mean by
- it's rough
- everything is from the root
- it gives me... etc. (command issued & their output please)
- filetype other than...: what is this cd exactly?
- rethink what?
you do understand that you cannot read/write to a cd-rw like to a hard drive?
it's more like burning, erasing, burning, erasing...
I have a requirement to write test data (text file) to cd.
ISO-9660 is read-only. You have to assemble the files you want into some directories and then build them in to an ISO-9960 image which you can then burn. There is also a choice between disc-at-once and multi-track.
So sorry for the vagueness. I mean rough because I'm doing the mount in an odd manner and I'm sure there is a better way. I mean everything is root in that the command line doesn't have a normal user mode, everything is root or that is superuser. And what I don't understand is that I cannot write to the cd. So what I have is a requirement to read data from a cdrw and write back test data results to the cdrw. I take it I can't do that like a thumb drive or regular file system. So how can I do that? Also I'm on a phone flying this plus I'm new to forum so I don't know how to properly post, reply, add code etc, so sorry
When you get back, look up how to use genisoimage that's what you need to build a disc image. You cannot write to a CD RW or DVD RW a la carte as it were. You put everything into one place, create a disc image from that place, then burn the image to the disc.
CDRW is not like a usb stick. You can write to it a couple times, maybe. Although writing a second time involves blanking the disk first, which for the few times that I've tried it, it failed > 50% of the time. But mostly it's an unreliable write once read many media type.
iso9660 has limits (and some extensions to overcome some of those limits). No single file can be > 4.3G's. 8.3 filenames aka ancient dos style, but window's-esque translation abilities, but it depends on how you mount the media. And the options you use when you create the media.
Burning has two modes DAO, disk at once. And SAO, session at once. The two main tools for burning that I've used are cdrdao, and cdparanoia. Although growisofs has it's uses too. Session at once is for writing part of the disc now, then coming back later and writing some more to the disc. But I'm not to up on my optical media of late. In a different life I made some dvdauthor style unecrypted dvds and burnt multiple copies for non-profit performance ensembles. Back when programs like ogle roamed the ancestral lands.
Although the printed rewrite cycles for CDRWs at 1000 maybe optimistic it is more the two. As stated ISO9660 filesystems are read only but it is possible to append new data if initially created as multi-session. This does mean that you create an image from the data files then burn to disk.
UDF or sometimes known as Packet Writing is a way to write to a CDRW like a floppy disk. The disc needs special formatting and the UDF tools drivers installed. If created on a windows PC you need to select a lower version i.e 2.5 to be fully compatible (I think this is still true). Windows used to default to UDF if creating a data disc. All I ever burn is an image from an ISO file with windows so this might be old information.
Although the printed rewrite cycles for CDRWs at 1000 maybe optimistic
I've used CD RW and DVD RW extensively in the past. According to the spec the chemicals should handle 1000's of rewrites. The reality is that the bottom usually get scratched or scuffed to death despite careful handling. If they are lent out other people, then I think the median for me was about 6 rewrites before they munged or stolen or lost.
it is possible to put a read-write filesystem onto CD-RW.
I would not do it because of poor performance and ugly noises.
My way is ISO 9660 multi-session.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.