LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2008, 12:39 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
cdrecord: No such file or directory. Cannot open '/dev/pg0'. Cannot open SCSI driver.


Hi

I am trying to burn a iso (DVD) image using cdrecord

when I do cdrecord -scanbus I get this out put


Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schill ing
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/ bugzilla
Note: The author of cdrecord should not be bothered with problems in this versio n.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'TEAC ' 'DV-W28ECW ' 'G.C4' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *


And when I try to run cdrecord I am getting this error

[root@dbsrv5 asanka]# cdrecord -v -dao dev=0,0,0 my1.iso
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
cdrecord: No such file or directory. Cannot open '/dev/pg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

What is this all about and can some one tell me how to fix this

Regards
 
Old 01-17-2008, 05:09 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Could you post the following information:

The contents of /etc/fstab.

The results of a lspci command:
lspci

The results of a uname command:
uname -a

The first part of the list that you get with:
ls -l /dev
i.e. enough of the list to include the cdrom and dvd device names.

-------------------
Steve Stites
 
Old 01-17-2008, 08:31 PM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi

/etc/fstab


# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=/vol0 /vol0 ext3 defaults 1 2
LABEL=/vol1 /vol1 ext3 defaults 1 2
LABEL=/vol2 /vol2 ext3 defaults 1 2
LABEL=/vol3 /vol3 ext3 defaults 1 2
LABEL=/vol4 /vol4 ext3 defaults 1 2
LABEL=/vol5 /vol5 ext3 defaults 1 2
LABEL=SW-cciss/c0d0p9 swap swap defaults 0 0
LABEL=SW-cciss/c0d0p10 swap swap defaults 0 0
LABEL=SW-cciss/c0d0p11 swap swap defaults 0 0
LABEL=SW-cciss/c0d0p12 swap swap defaults 0 0
#/dev/hda /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0


lspci

00:00.0 Host bridge: Intel Corporation 5000P Chipset Memory Controller Hub (rev b1)
00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 2 (rev b1)
00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev b1)
00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 4-5 (rev b1)
00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev b1)
00:06.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 6-7 (rev b1)
00:07.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 7 (rev b1)
00:10.0 Host bridge: Intel Corporation 5000 Series Chipset Error Reporting Registers (rev b1)
00:10.1 Host bridge: Intel Corporation 5000 Series Chipset Error Reporting Registers (rev b1)
00:10.2 Host bridge: Intel Corporation 5000 Series Chipset Error Reporting Registers (rev b1)
00:11.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
00:13.0 Host bridge: Intel Corporation 5000 Series Chipset Reserved Registers (rev b1)
00:15.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
00:16.0 Host bridge: Intel Corporation 5000 Series Chipset FBD Registers (rev b1)
00:1c.0 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 1 (rev 09)
00:1c.1 PCI bridge: Intel Corporation 631xESB/632xESB/3100 Chipset PCI Express Root Port 2 (rev 09)
00:1d.0 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #1 (rev 09)
00:1d.1 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #2 (rev 09)
00:1d.2 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #3 (rev 09)
00:1d.3 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset UHCI USB Controller #4 (rev 09)
00:1d.7 USB Controller: Intel Corporation 631xESB/632xESB/3100 Chipset EHCI USB2 Controller (rev 09)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d9)
00:1f.0 ISA bridge: Intel Corporation 631xESB/632xESB/3100 Chipset LPC Interface Controller (rev 09)
00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller (rev 09)
01:03.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)
01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 03)
01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 03)
01:04.4 USB Controller: Hewlett-Packard Company: Unknown device 3300
01:04.6 Class 0c07: Hewlett-Packard Company: Unknown device 3302
02:00.0 PCI bridge: Broadcom: Unknown device 0103 (rev c3)
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
04:00.0 PCI bridge: Broadcom: Unknown device 0103 (rev c3)
05:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
06:00.0 RAID bus controller: Hewlett-Packard Company Hewlett-Packard Smart Array Controller (rev 03)
09:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Upstream Port (rev 01)
09:00.3 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express to PCI-X Bridge (rev 01)
0a:00.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E1 (rev 01)
0a:01.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E2 (rev 01)
0a:02.0 PCI bridge: Intel Corporation 6311ESB/6321ESB PCI Express Downstream Port E3 (rev 01)


umane -a

Linux dbsrv5 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux


ls -l /dev | more

crw------- 1 root root 36, 8 Jan 16 14:33 arpd
drwxr-xr-x 2 root root 420 Jan 16 14:33 cciss
lrwxrwxrwx 1 root root 3 Jan 16 14:33 cdrom -> hda
lrwxrwxrwx 1 root root 3 Jan 16 14:33 cdwriter -> hda
crw------- 1 root root 5, 1 Jan 16 09:03 console
lrwxrwxrwx 1 root root 11 Jan 16 14:33 core -> /proc/kcore
drwxr-xr-x 2 root root 40 Jan 16 09:03 cpu
drwxr-xr-x 3 root root 60 Jan 16 14:33 disk
crw------- 1 root root 36, 14 Jan 16 14:33 dnrtmsg
lrwxrwxrwx 1 root root 3 Jan 16 14:33 dvd -> hda
lrwxrwxrwx 1 root root 3 Jan 16 14:33 dvdwriter -> hda
crw------- 1 root root 13, 64 Jan 16 14:33 event0
crw------- 1 root root 13, 65 Jan 16 14:33 event1
lrwxrwxrwx 1 root root 13 Jan 16 14:33 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Jan 16 14:33 full
crw------- 1 root root 36, 3 Jan 16 14:33 fwmonitor
srwxrwxrwx 1 root root 0 Jan 16 09:03 gpmctl
brw-rw---- 1 root disk 3, 0 Jan 16 14:33 hda
crw------- 1 root root 10, 183 Jan 16 09:03 hw_random
prw------- 1 root root 0 Jan 16 09:03 initctl
drwxr-xr-x 2 root root 180 Jan 16 09:03 input
crw------- 1 root root 36, 13 Jan 16 14:33 ip6_fw
lrwxrwxrwx 1 root root 9 Jan 16 09:03 js0 -> input/js0
crw------- 1 root root 1, 11 Jan 16 14:33 kmsg
srw-rw-rw- 1 root root 0 Jan 16 09:03 log
brw-r----- 1 root disk 7, 0 Jan 16 14:33 loop0
brw-r----- 1 root disk 7, 1 Jan 16 14:33 loop1
brw-r----- 1 root disk 7, 2 Jan 16 14:33 loop2
brw-r----- 1 root disk 7, 3 Jan 16 14:33 loop3
brw-r----- 1 root disk 7, 4 Jan 16 14:33 loop4
brw-r----- 1 root disk 7, 5 Jan 16 14:33 loop5
brw-r----- 1 root disk 7, 6 Jan 16 14:33 loop6
brw-r----- 1 root disk 7, 7 Jan 16 14:33 loop7
crw-rw---- 1 root lp 6, 0 Jan 16 14:33 lp0
crw-rw---- 1 root lp 6, 1 Jan 16 14:33 lp1
crw-rw---- 1 root lp 6, 2 Jan 16 14:33 lp2
crw-rw---- 1 root lp 6, 3 Jan 16 14:33 lp3
lrwxrwxrwx 1 root root 13 Jan 16 14:33 MAKEDEV -> /sbin/MAKEDEV
drwxr-xr-x 2 root root 60 Jan 16 09:03 mapper
brw-rw---- 1 root disk 9, 0 Jan 16 14:33 md0
brw-r----- 1 root disk 9, 1 Jan 16 14:33 md1
brw-r----- 1 root disk 9, 10 Jan 16 14:33 md10
brw-r----- 1 root disk 9, 11 Jan 16 14:33 md11


Thanks

Regards
 
Old 01-17-2008, 09:16 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
In /etc/fstab the following line is commented out. Why?

#/dev/hda /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0

The results of lspci and ls -l /dev show that your CD/DVD is on /dev/hda so that line of /etc/fstab should not be commented out.

uname shows that you are using kernel 2.6. Therefore you should use IDE support for a CD/DVD and not use SCSI or ide-scsi emulation. If you passed the kernel a parameter which says /dev/hda=ide-scsi then remove it.

/dev/cdrom, /dev/cdwriter, /dev/dvd, and /dev/dvdwriter are all correctly linked to /dev/hda so you can use any of them to address the CD/DVD.


Your cdrecord command should use IDE addressing, not scsi addressing. So your command should be:

cdrecord -v -dao dev=dvdwriter my1.iso

-dao only works with some CD/DVD drives. If -dao does not work with your drive try:

cdrecord -v dev=dvdwriter my1.iso gracetime=2

---------------------------
Steve Stites

Last edited by jailbait; 01-17-2008 at 09:17 PM.
 
Old 01-17-2008, 10:50 PM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi jailbait

Thanks it worked and learned a lot from you. By the way I did not pass any parameter to kernel as such. And why dev=0,0,0 did not worked

Regards
 
Old 01-18-2008, 10:06 AM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by asankacgl View Post
Hi jailbait

Thanks it worked and learned a lot from you. By the way I did not pass any parameter to kernel as such. And why dev=0,0,0 did not worked

Regards
dev=0,0,0 is the address of a SCSI device. Your CD/DVD is an IDE device. You have no device of any kind at 0,0,0

----------------------
Steve Stites
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrecord can't open scsi driver somae Slackware 5 04-06-2007 08:29 PM
trouble with cdrecord: Cannot open SCSI driver. scott.anderson Fedora 9 01-13-2006 05:54 AM
cdrecord: Cannot open SCSI driver. karhu Linux - Software 6 08-18-2005 09:16 PM
Trying cdrecord. Does not recognize /dev/pg0 tzonga1 Linux - Newbie 7 03-06-2005 11:27 AM
USB external CD-RW: cdrecord "cannot open SCSI driver" Avatar Linux - Hardware 10 04-07-2004 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:30 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