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 can read from both the cdrom drives, but the cdrom1 is a LITEON LTR 32123S drive. It doesnt look like the system is recognising the drive other than a normal cdrom drive. Im running red Hat 9.
You can't just copy files to a CD on a burner, you need to use a program such as Gnomebaker or K3b to burn, those programs will recognise the burners alright, you may need to change some permissions but that's easy
What do you mean "it's not recognizing the drive"? /dev/cdrom is just a generic term for a CD-based drive. It's not going to say /dev/cdr if that's what you're getting at.
Also, I don't think adding "rw" will do anything for you in /etc/fstab. As you quoted before, mount is just telling you it's a read-only filesystem (which it is) and trying to mount it as such.
If you're thinking the system isn't recognizing it because you can't mount, then try this:
1. Put in a normal CD containing data (one of your Linux install CDs would be perfect)
2. Execute the following command (as root):
Code:
mount -t iso9660 /dev/cdrom1 /mnt/cdrom1
If it spits out an error, paste what it says. If you don't get an error, then you should be able to see the contents of the cd by executing this command:
Code:
ls -l /mnt/cdrom1
And just to make sure we're on the same page, you cannot mount audio CDs or blank CDs.
Last edited by Dark_Helmet; 01-22-2005 at 02:39 AM.
Thanks for your reply DH, i did check this drive initially by popping a normal CD in here. Its acts fine as a normal CD drive.
Strange thing is that when I put a blank CD-R into the drive (this is ok isnt it) a window pops up entitled burn/// or it may be ///burn, anyway you can select some files and drag them into here and click on an icon above called something like "record" or "burn to disc" (i cant remember exactly which at the moment because im not logged into the linux box at the moment),
Anyway when I click this button, my only options from the dialog box is "write to iso image" the option of the CD writer doesn't show.
This is why i didnt think Lunix was recognising the hardware as being capable of writing to a CD.
I know you guys can help me solve my problem, I much prefer Linux to Windows.
Oh yeah, it's perfectly fine to put a blank CD into the drive before you start doing any work to actually burn something. You just can't mount it; it's empty, and mounting it would only serve to confuse the computer.
To be honest, I'm a little wary of that feature (referring to the "burn" window you mentioned). I never really tried it because I was comfortable with other tools. I usually just closed the window and proceeded to do my "normal thing". The fact that it came up with a "burn" window should give you a warm-and-fuzzy feeling that the system realized your device was write-capable.
In general, the process for burning a CD in linux is to create an image file to burn to a disc. So, expect to see a message about creating/writing an iso file or something similar. I don't know how knowledgeable you are about iso files, so forgive me if this is "elementary". Think of that iso file as a map for the data on the CD. It contains everything: the CD's table of contents, the filesystem, the actual data in the files, etc. Once this file is created, the computer has "all its ducks lined in a row". To burn, the computer simply needs to stream the data from the file to the burner. It's a necessary evil when dealing with write-once media.
You can do all this over the command line (which is what I'm comfortable with), or you can use a burning application like XCDRoast, GnomeToaster, or others. Actually, those programs are just pretty front-ends for the command line. Anyway, it'll require some reading (you knew it was coming I'm sure) Or you can just experiment with the burn window. The worst that could happen is you trash a CD.
I understand what an ISO file is but not too much about the specifics, I wish I knew more... though the explanation above was useful, thanks.
So how can I use the command line? I actually prefer using the command line it gives you feedback that sometimes you may miss if you are using a GUI. I guess being bought up with GUIs (windows) you get lazy, and you rely on the GUI's designer to allow errors through, maybe sometimes they will mask or translate error messages with all the best intentions but this could also mean something gets missed.
If you could help me with the command line DH, then I would really appreciate it. I can log in as root, like DJ p@ckman says. But just a question how does someone change the permissions to a device, is is the same as when you do it with a file (i.e. chmod <filename> ), and do you carry this out on the /dev/cdrom1 device?
That'll give you the real path to the devices and you chmod 0777 that. Once you've done that you should have no problem burning, or you can do it as root without chmod'ing any files.
Here's a simple play-by-play of what I do for data CDs.
Go to a temporary/work directory(/home/user/temp for example), and create a new subdirectory (cd_layout perhaps). This new subdirectory will be the top level (or root directory) of the CD you'll burn.
Start copying files and directory structure over, making sure you're not exceeding available disc space.
Whn done copying files, return to the original temp/work directory and create the CD image with the mkisofs command:
Code:
cd /home/user/temp
mkisofs -J -R -o cdimage.iso cd_layout/
You now have an iso image of your data CD in a file named cdimage.iso. You can delete the cd_image tree now if you want (everything is in the cdimage.iso file). I usually keep it around until the burn is good. There are also lots of options for mkisofs. The man page can be a little... "heavy", but if you ever want to do something special, you'll have to buckle down and read it (man mkisofs).
Now you burn the iso file to the cd with the cdrecord command:
Replace the text in red with what's appropriate for your system. To find out what the "dev=" argument should be, execute:
Code:
cdrecord -scanbus
Then identify which drive listed is your burner, and use the numbers provided in the output.
That's all you have to do. As DJ P@CkMaN said, you'll need to be root to execute the cdrecord commands unless you've made appropriate permission changes. I don't mess with permissions and just use "su -c" for the cdrecord command. For instance:
Code:
su -c "cdrecord dev=0,0,0 speed=30 /home/user/temp/cdimage.iso"
In order to get my LiteOn cd-rom/cd-rw/dvd-rom to work correctly, I had to delete the link between /dev/cdrom and /dev/hdc, and make a new link between /dev/cdrom and /dev/sr0. The LiteOn cd-rom is treated as an ide drive; the drives with other functions such as cd-rw and dvd-rom/rw are treated as scsi drives and need an appropriate kernel module.
Not my word; I got it from documentation and it worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.