LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Error when blank data CD is inserted (https://www.linuxquestions.org/questions/linux-hardware-18/error-when-blank-data-cd-is-inserted-298608/)

Quercus ruber 03-07-2005 03:16 AM

Error when blank data CD is inserted
 
Hi

praps I`m being silly, but all I really want to do is to copy some data to a cdrom.

I put the (blank) cd into the drive and when I mount it, I get the following message:

mount: wrong fs type, bad option, bad superblock on /dev/cdrom

If I insert a cd which has already got data on it, I don`t get that problem - I can read the data, do whatever and then eject it.

My /etc/fstab looks like this:


Code:

/dev/hda6        swap            swap        defaults        0  0
/dev/hda5        /                reiserfs    defaults        1  1
/dev/hda7        /home            ext3        defaults        1  2
/dev/hda1        /ntfs            ntfs        user,umask=000,ro,auto        1  0
/dev/hdb1        /fat-e          vfat        user,umask=000,rw,auto        1  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,user,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
/etc/fstab lines 1-9/9 (END)

Here is an extract from dmesg, when I put the disk in the drive:

Code:

hdc: command error: error=0x50
end_request: I/O error, dev 16:00 (hdc), sector 64
isofs_read_super: bread failed, dev=16:00, iso_blknum=16, block=32
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x50
end_request: I/O error, dev 16:00 (hdc), sector 64
isofs_read_super: bread failed, dev=16:00, iso_blknum=16, block=32
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x50
end_request: I/O error, dev 16:00 (hdc), sector 64hdc: command error: error=0x50
hdc: command error: error=0x50
end_request: I/O error, dev 16:00 (hdc), sector 64


I have tried several blank cds, in case I'd put a dud in, so unless all my blanks are corrupt, the problem does not lie with the disks.

I'm running the following kernel:


Code:

ros@darkstar:~$ uname -r
2.4.26

Hope someone can help

Lazarus 03-07-2005 04:36 AM

A blank cd has no filesystem on it. You first have to burn your data onto in.
Here is a script I wrote .. works for me.

#!/bin/sh
#
# writes a cd from an image file
#
# written 24/6/00 last update 5/6/4 for 2.6 kernel
#
# amended to use pipe rather than tempory file
#
#cd_device="1,0,0"
#
# note for 2.6 kernel dev= parameter not needed uses /dev/cdrom
#
if [ -z $1 ];
then
echo " "
echo "type cd_write /a/path/where/the/file(s)are bootimage (optional)"
echo " "
echo "cd_write xxxx image .. to write a pure image to cd"
exit
fi
if [ $2 = "image" ]; then
echo "Writing pure image file"
cdrecord speed=4 $1
exit
fi
if [ -z $2 ]; then
mkisofs -r -v -J $1 | cdrecord -v -speed=4 -
else
mkisofs -r -v -J -b $2 $1 | cdrecord -v -speed=4 -
fi
#

If you like to use a GUI then I beleave there are lots of programs out there
for you that would do the job. Similar to nero and such on windoze.

Quercus ruber 03-07-2005 06:32 AM

thanks - I`ll try it & report back.

Quercus ruber 03-08-2005 03:12 AM

thanks, that worked and then I downloaded and compiled k3b. That worked too.

thanks a lot

Lazarus 03-08-2005 03:56 AM

Pleased to help


All times are GMT -5. The time now is 07:55 PM.