Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
11-15-2004, 03:43 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 22
Rep:
|
Liteon CDR, where do I start?
I have two cdrom drives, my /etc/fstab files looks like this;
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
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.
Where do I start?
|
|
|
11-15-2004, 03:46 PM
|
#2
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
change 'ro' (readonly) to 'rw' (readwrite) on whichever is the burner
or possibly just remove the 'ro'
Last edited by rshaw; 11-15-2004 at 03:48 PM.
|
|
|
11-15-2004, 04:06 PM
|
#3
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 22
Original Poster
Rep:
|
Thanks, how do i get the system to re-read this file now?
|
|
|
11-15-2004, 04:14 PM
|
#4
|
Senior Member
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692
Rep:
|
try mount -o remount /mnt/cdrom1
|
|
|
01-21-2005, 02:43 PM
|
#5
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 22
Original Poster
Rep:
|
Ho hum...
No such luck im afraid... when i try that mount command i just get a scroll of text listing options for mount.
I tried;
mount /dev/cdrom1 /mnt/cdrom1
but it complains about;
/dev/cdrom1: Input / output error
mount: block device /dev/cdrom1 is write protected, mounting read-only
/dev/cdrom1: Input / output error
mount: you must specify the filesystem type
So im still stuck here. Ive been away so thats why its been so long since the last post on this thread
|
|
|
01-21-2005, 06:46 PM
|
#6
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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 
|
|
|
01-22-2005, 02:06 AM
|
#7
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 22
Original Poster
Rep:
|
I understand what you say about needing a program to write to a CD burner i have Gnome toaster but its still noe recongnising the drive.
I dont want to revert to windows, but i feel i may not have much choice here
|
|
|
01-22-2005, 02:38 AM
|
#8
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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:
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.
|
|
|
01-23-2005, 02:42 PM
|
#9
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 22
Original Poster
Rep:
|
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.
|
|
|
01-23-2005, 03:22 PM
|
#10
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
01-23-2005, 06:13 PM
|
#11
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Unless you change the permissions for the CDROM device you'll need to be logged in as root to burn.
|
|
|
01-24-2005, 03:28 AM
|
#12
|
LQ Newbie
Registered: Sep 2004
Distribution: Gentoo
Posts: 22
Original Poster
Rep:
|
Well this is looking promising...
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?
Last edited by MarkieC; 01-24-2005 at 03:31 AM.
|
|
|
01-24-2005, 04:24 AM
|
#13
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Post the output from this command
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.
|
|
|
01-24-2005, 01:49 PM
|
#14
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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:
Code:
cdrecord dev=0,0,0 speed=30 /home/user/temp/cdimage.iso
Replace the text in red with what's appropriate for your system. To find out what the "dev=" argument should be, execute:
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"
|
|
|
01-24-2005, 06:34 PM
|
#15
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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.
|
|
|
All times are GMT -5. The time now is 03:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|