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 04-19-2007, 04:06 PM   #1
s26c.sayan
Member
 
Registered: Nov 2006
Location: Kolkata, India
Distribution: Arch Linux, Ubuntu Feisty, Knoppix Live CD
Posts: 37

Rep: Reputation: 15
CD-RW issues with Ubuntu


Hi!!

I just bought my first CD-RW (a Sony one) and tried to burn an ISO image onto it using K3B on my Ubuntu Edgy. But it failed!! Trying to erase the CD-RW fails, too
Burning a normal CD (non rewritable) works fine, though!

K3B says "Permorming Optimum Power Calibration" and next it gives an error messege like " OPC Failed: Maybe the writer doesnt like the medium".
I can see my writer (TSSTcorp CD-R/RW TS-H292A) listed correctly in Options-K3B -> Devices. It also says it is on /dev/hdc and confirms that it is capable of writing CD-RW (Writes CD-RW Yes).

When I try to mount /dev/hdc from the CLI, it gives me:

Code:
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
The output of dmesg | tail is :

Code:
[17180679.376000] ide: failed opcode was: unknown
[17180679.376000] hdc: DMA disabled
[17180679.424000] hdc: ATAPI reset complete
[17181776.788000] cdrom: hdc: mrw address space DMA selected
[17181776.792000] cdrom open: mrw_status 'not mrw'
[17181783.636000] hdc: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
[17181783.636000] hdc: media error (bad sector): error=0x34 { AbortedCommand LastFailedSense=0x03 }
[17181783.636000] ide: failed opcode was: unknown
[17181783.636000] end_request: I/O error, dev hdc, sector 64
[17181783.636000] isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16
Just to check if the CD itself is corrupt, I took it to a Windows XP machine. I could use Nero to erase it and even write a few files to it. When I took it back to my Ubuntu system, I could mount it Read-Only and the copied files were right there.

Code:
mount: block device /dev/hdc is write-protected, mounting read-only
But still K3B can't erase/burn image on it as I'd like!

Any help anyone?
 
Old 04-19-2007, 04:30 PM   #2
Nishtya
Member
 
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
how is the drive listed in your fstab?
 
Old 04-20-2007, 01:14 AM   #3
s26c.sayan
Member
 
Registered: Nov 2006
Location: Kolkata, India
Distribution: Arch Linux, Ubuntu Feisty, Knoppix Live CD
Posts: 37

Original Poster
Rep: Reputation: 15
Relevant portion of my /etc/fstab:

Quote:
/dev/hdc /media/cdrom0 iso9660 rw,user,noauto 0 0
P.S.: Right now, this is the message I get when trying mount /dev/hdc:
Quote:
mount: unknown filesystem type ''
Weird!!!

Last edited by s26c.sayan; 04-20-2007 at 05:34 AM.
 
Old 04-20-2007, 08:55 AM   #4
Nishtya
Member
 
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
Well, I don't think you can mount a blank disc - fstab telling it there is a file system when there there isn't one on there yet, which would explain the error when you are trying to mount it from command line. But your burner software should handle it differently.

Have you tried burning/erasing as root to narrow it down? And I know I have seen that error message about failing after power calibration, something to do with the version of kernel and cdrecord? Hopefully someone will come along better than myself.

Try googling that error message and including the debian or ubuntu outside of the quotes.
 
Old 04-20-2007, 12:05 PM   #5
s26c.sayan
Member
 
Registered: Nov 2006
Location: Kolkata, India
Distribution: Arch Linux, Ubuntu Feisty, Knoppix Live CD
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Well, I don't think you can mount a blank disc - fstab telling it there is a file system when there there isn't one on there yet
True! I did try mounting an empty CD(non rewritable) from the CLI, and I get the same message!

Now something strange is happening. After repeated attempts with K3B, suddenly it does seem to blank/burn image apparently, but then I still cant mount the 'burnt' CD! I again get "mount: wrong fs type, bad option, bad superblock on /dev/hdc,
missing codepage or other error"
What's worse, now if I take this 'burnt' CD-RW to a M$ machine, now even Nero doesn't recognize it!!!
This is getting sorta spooky!! :P

Maybe I'l have to try with another CD-RW!

Last edited by s26c.sayan; 04-20-2007 at 12:12 PM.
 
Old 04-20-2007, 12:34 PM   #6
Nishtya
Member
 
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
Well, it wouldn't hurt to try different media. Burners can be fussy and inconsistent when it comes to media.

Do try as root and see if you have the same problems. Other things you can try is changing in fstab ro to rw and also using auto as the file system (not to be confused with auto in mount options). I use auto for my optical drives' fs. Though I do use ro, it shouldn't matter from what I understand and the burner software handles it another way, perhaps it would make a difference if you were trying packet writing/udf. I don't use it myself and don't even use rw disks. Hopefully someone may come along with more experience than me (which would be most anybody ) and put their finger on it for you.

Just noticed in the dmesg output, DMA is disabled? Have you turned tried to turn it on for the drive?

Last edited by Nishtya; 04-20-2007 at 12:39 PM.
 
Old 04-20-2007, 12:50 PM   #7
s26c.sayan
Member
 
Registered: Nov 2006
Location: Kolkata, India
Distribution: Arch Linux, Ubuntu Feisty, Knoppix Live CD
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Do try as root and see if you have the same problems
Have been doing everything as root!

Quote:
changing in fstab ro to rw and also using auto as the file system
This are the different /etc/fstab that I have already tried:
Code:
 /dev/hdc    /media/cdrom0   udf,iso9660 rw,user,noauto  0   0
Code:
 /dev/hdc    /media/cdrom0   auto        rw,user,noauto  0   0
I think these are just what you meant?

Quote:
Just noticed in the dmesg output, DMA is disabled? Have you turned tried to turn it on for the drive?
Now this is something which sounds new to me! Worth a try! But how exactly do I 'enable DMA'?? Please help....


BTW, thanks a lot for trying to help me!
!
 
Old 04-20-2007, 12:59 PM   #8
Nishtya
Member
 
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
The command hdparm is what you want. Try hdparm /dev/hdc and let us know what the output is.
 
Old 04-20-2007, 01:24 PM   #9
s26c.sayan
Member
 
Registered: Nov 2006
Location: Kolkata, India
Distribution: Arch Linux, Ubuntu Feisty, Knoppix Live CD
Posts: 37

Original Poster
Rep: Reputation: 15
Code:
root@ubuntu:~# hdparm /dev/hdc

/dev/hdc:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device
 
Old 04-20-2007, 01:30 PM   #10
Nishtya
Member
 
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
It is on

Edit: okay, HDIO_GETGEO failed....is apparently normal for a CD drive. Google is our friend.

Sorry I am not more help but I am out of ideas

Last edited by Nishtya; 04-20-2007 at 01:36 PM.
 
Old 04-20-2007, 01:36 PM   #11
s26c.sayan
Member
 
Registered: Nov 2006
Location: Kolkata, India
Distribution: Arch Linux, Ubuntu Feisty, Knoppix Live CD
Posts: 37

Original Poster
Rep: Reputation: 15
I managed to enable DMA prior to posting the output by following this post : http://www.linuxquestions.org/questi...hreadid=363780 and the unofficial ubuntuguide.....

Quote:
Trying to decipher these. Googling.
Thanks for taking the trouble for me. I'v been googling too, but can't decipher the links that come up....
Thanks once again!!

Last edited by s26c.sayan; 04-20-2007 at 01:38 PM.
 
Old 04-20-2007, 01:45 PM   #12
Nishtya
Member
 
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
Quote:
Originally Posted by s26c.sayan
I managed to enable DMA prior to posting
I thought I was going crazy well, since you are still here I take it enabling DMA hasn't helped the burning problem.

You want to
a) try a different blank CDRW
b) make sure this image you are burning isn't corrupt (has windows burnt that image? I have you tried burning that image to a CD, not CDRW?)
c)have you tried burning plain data files to the CDRW, not an ISO image

Now, it is possible that the attempt at burning the CDRW if the DMA being off was the problem may have produced a corrupt disk. Some CDRWs can be a devil to blank after a bad burn. There are tools for windows (and I think the other trick is people put them in the sun). I think you definitely need to be trying another, fresh, clean blank and experiment with datafiles before trying an image.
 
  


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
Wireless issues ubuntu jaygee02 Linux - Wireless Networking 1 02-13-2007 03:02 AM
Ubuntu Networking Issues kramer2718 Linux - Networking 2 07-07-2006 01:00 AM
Some Ubuntu 6.04 issues on a P4 system adrian_mx Ubuntu 2 12-21-2005 07:32 PM
Ubuntu apt-get issues biojayc Linux - Software 2 08-22-2005 08:08 PM
Ubuntu Installation Issues :( JediDB Ubuntu 20 07-28-2005 12:17 AM


All times are GMT -5. The time now is 11:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration