LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-15-2004, 03:43 PM   #1
MarkieC
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
Unhappy 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?
 
Old 11-15-2004, 03:46 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
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.
 
Old 11-15-2004, 04:06 PM   #3
MarkieC
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks, how do i get the system to re-read this file now?
 
Old 11-15-2004, 04:14 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
try mount -o remount /mnt/cdrom1
 
Old 01-21-2005, 02:43 PM   #5
MarkieC
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
Unhappy

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
 
Old 01-21-2005, 06:46 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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
 
Old 01-22-2005, 02:06 AM   #7
MarkieC
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 01-22-2005, 02:38 AM   #8
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
Old 01-23-2005, 02:42 PM   #9
MarkieC
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 01-23-2005, 03:22 PM   #10
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
Old 01-23-2005, 06:13 PM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Unless you change the permissions for the CDROM device you'll need to be logged in as root to burn.
 
Old 01-24-2005, 03:28 AM   #12
MarkieC
LQ Newbie
 
Registered: Sep 2004
Distribution: Gentoo
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 01-24-2005, 04:24 AM   #13
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Post the output from this command
Code:
ls -l /dev/cdroms
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.
 
Old 01-24-2005, 01:49 PM   #14
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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:
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"
 
Old 01-24-2005, 06:34 PM   #15
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu, Liteon 1633s won't r/w CDs bob1082 Linux - General 4 10-11-2005 10:24 PM
Need help with liteon dvdrw zonen Linux - Hardware 2 05-11-2005 04:23 PM
2 fc3 qs: cdr permissions and not start GNOME/X jasonv Fedora 2 11-28-2004 09:05 AM
Cendyne Liteon 24102b...where is cdrecord??? magicvash Linux - Hardware 6 08-11-2003 05:35 PM
Burn CD with k3b on Liteon 48x24x48 pixelV Linux - Hardware 5 03-21-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration