LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2004, 08:29 AM   #1
svar
Member
 
Registered: Jul 2003
Posts: 362

Rep: Reputation: 30
CD-R: Device recognized, blank CD in it is not!


Although the device per se (/dev/sr0) is seen by, for instance k3b,
when I click it it says no disk found(there is a blank CD in it alright)
Any tips what to check?
 
Old 09-08-2004, 08:36 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
So what are you trying to accomplish? You can not mount a blank CD.
 
Old 09-08-2004, 08:59 AM   #3
svar
Member
 
Registered: Jul 2003
Posts: 362

Original Poster
Rep: Reputation: 30
I want to write some directories to that blank CD and when it comes to the burning step it says disk not found
Also, even when I put a non-blank data CD in the CD-R and click it, it still says disk not found

Are you saying I need to do
mount /dev/sr0

? Then why does k3b see the device if it's not already mounted?
 
Old 09-08-2004, 12:47 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Then why does k3b see the device if it's not already mounted?
Devices and filesystems are not the same thing. You mount the filesystem not the device. A blank CD does not contain a filesystem.

What distribution and kernel are you running?
 
Old 09-08-2004, 04:11 PM   #5
svar
Member
 
Registered: Jul 2003
Posts: 362

Original Poster
Rep: Reputation: 30
Distro is Slack 9.1 (2.4.22)
I get a disk not found also for a non-blank CD
 
Old 09-08-2004, 05:05 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I'm not too familar with Slack. However, your CDRW should be configured for SCSI simulation and the device ID is usually /dev/scd0.

What does /etc/fstab say is the device ID for the drive? If it is something like /dev/cdrom then also post the output of
ls -l /dev/cdrom
 
Old 09-08-2004, 05:12 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You may also try running the k3b-setup program as root. It will modify the fstab entries if needed. If you use lilo, post the append= line for the /etc/lilo.conf stanza you boot up to.
 
Old 09-08-2004, 08:25 PM   #8
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
Quote:
Originally posted by michaelk
Devices and filesystems are not the same thing. You mount the filesystem not the device. A blank CD does not contain a filesystem.

What distribution and kernel are you running?
Exactly. You can write to a CD without mounting it. In fact, this is what you should do. You don't have to mount a device to use it. For example, when you write a floppy image to a floppy, you write directly to /dev/fd0, no mounting required. Same to CDs.

Not too sure about the CD-R thing, I just thought I'd throw in my $0.02
 
Old 09-09-2004, 03:40 PM   #9
svar
Member
 
Registered: Jul 2003
Posts: 362

Original Poster
Rep: Reputation: 30
here is fstab:
~$ cat /etc/fstab
/dev/hdb3 / reiserfs defaults 1 1
/dev/hdb4 /home reiserfs defaults 1 2
/dev/hdb1 /boot ext2 defaults 1 2
#/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/hdc /mnt/cdrom iso9660 noauto,user,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/fd0 /floppy auto noauto,user 0 0
##### NEW to add cdrw
/dev/cdrw /mnt/sr0 auto ro,noauto,user,exec 0 0
#/dev/scd0 /dev/cdrw auto ro,noauto,user,exec 0 0
##### end of change
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

ls -l /dev/cdrw
total 1
lrwxrwxrwx 1 root root 8 Aug 1 00:28 sr0 -> /dev/sr0

$ ls -l /dev/sr0
brwxrwxrwx 1 root disk 11, 0 Apr 13 1999 /dev/sr0


Finally LILO:
$ cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdd=ide-scsi acpi=off"
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773

# End LILO global section

# Linux bootable partition config begins
image = /boot/vmlinuz
#image=/boot/vmlinuz-2.4.22
root = /dev/hdb3
label = Linux2.4.22
read-only
# Linux bootable partition config ends

# Linux 2.2
image=/boot/vmlinuz
root=/dev/hda2
label=Linux2.2
read-only
#2.2 bootable partition ends


Does this look ok?
 
Old 09-10-2004, 02:11 AM   #10
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:

Originally posted by svar


Does this look ok?
No.

Look here:
Quote:

...
##### NEW to add cdrw
/dev/cdrw /mnt/sr0 auto ro,noauto,user,exec 0 0
...
Should be rw, not ro.

Just to make sure, run
Code:
cdrecord -scanbus
and look at the output or post it here.

You made sure that /dev/sr0 is linked to /dev/hdd I presume?

Last edited by JZL240I-U; 09-10-2004 at 02:14 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a recognized USB device harisund Linux - Hardware 2 09-24-2005 08:07 AM
USB device not recognized Greek Acrobat Slackware 5 07-25-2005 11:30 AM
why is usb device recognized? kangaman Linux - Hardware 1 10-27-2004 11:05 AM
redhat 9 installatio: HD maxtor 6y080m0 device is not recognized mcesco Linux - Hardware 2 02-21-2004 03:57 PM
redhat 9 installation on maxtor 6y080m0 device not recognized netwizio Linux - Hardware 0 11-15-2003 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:36 AM.

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