LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-09-2003, 09:57 PM   #1
ratbert90
Member
 
Registered: Jan 2003
Posts: 67

Rep: Reputation: 16
how do you get your cd-writer to read?


I have a hp-cdwriter 8800i 4x internal ide cd-writer.
I was wondering how to get it to work for burning cds!

I cant find any think in the kernal options to help me.

Any help would be apreciated.

TIA!
 
Old 01-09-2003, 10:08 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try this
Code:
 cdrecord -scanbus
you will get something like this
Code:
Cdrecord 1.11a32 (i586-mandrake-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.6'
scsibus0:
        0,0,0     0) 'HPT Inc.' 'HPT37x2   RAID 0' '1.05' Disk
        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) *
scsibus1:
        1,0,0   100) *
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) 'TOSHIBA ' 'CD-ROM XM-3401TA' '2873' Removable CD-ROM
        1,6,0   106) 'HP      ' 'CD-Writer 6020  ' '1.07' Removable CD-ROM
        1,7,0   107) *

if you see your drive listed then xcdroast should work

if it's not listed you need to do this..
to see what the drive is you can look at the output of this command

Code:
dmesg | less
it will have your CD drive listed and say something like this
Code:
/dev/hdc
you need to add this to /etc/lilo.conf
Code:
append="hdc=ide-scsi"
then run this
Code:
/sbin/lilo
this will setup scsi emulation on the drive when you reboot, making it something like /dev/sr0

test this by running cdrecord -scanbus again
 
Old 01-09-2003, 11:38 PM   #3
ratbert90
Member
 
Registered: Jan 2003
Posts: 67

Original Poster
Rep: Reputation: 16
hrm, it says it cant open the scsi driver
do you need to add scsi support to your kernel?
also, where do you add the append="hdd=ide-scsi" line to your lilo.config? I added it to the very bottem. didnt think it would matter.

Tia!
 
Old 01-10-2003, 12:25 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if it's in one of the image sections it will only apply to that image, if it's at the bottom it will only apply to the last image.

put it at the top



does this work

Code:
modprobe ide-scsi
 
Old 01-10-2003, 05:48 PM   #5
adwd3509@yahoo
LQ Newbie
 
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
You probably will need to edit you /etc/rc.d/rc.modules file. there is a scsi emulator that you need to use an ide cdwriter. Remove the # sign at the front of the line that says #/sbin/modprobe/ide-scsi You also need to edit the /etc/fstab. You have to add a device such as /dev/sd0 in place of the /dev/hdb because you computer now sees the cdwriter as a scsi drive. Good Luck




Alan
 
Old 01-11-2003, 07:28 AM   #6
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
If you haven't already, take a look at this How-To.

http://tldp.org/HOWTO/CD-Writing-HOWTO.html

If it is not a SCSI CD pay special attention to the portion about relinking the CD and the edits to LILO config. Also, if you don't have the SCSI drivers installed (like me) you'll have to recompile the kernel
 
Old 11-15-2005, 12:18 PM   #7
adwd3509@yahoo
LQ Newbie
 
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
If you try k3b, It should find the writer (as long as you have the cd tools installed). I use it and find it the best cd/dvd writing gui. Better than anything windows has to offer. And if you are using the 2.6 kernel you do not need to have scsi emulation.
 
Old 11-15-2005, 04:46 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
You provided no information about your configuration. However, this is how I got everything to work on my box. I use Slackware 10.1 and KDE 3.3.2, K3B as my burner package, the 2.4.28 kernel, and I use GRUB as my boot loader.

In GRUB I added the kernel boot option of hdc=ide-scsi. My GRUB boot text looks like this:

title Slackware 10.1 - 2.4.28 - KDE 3.3.2
kernel (hd0,12)/vmlinuz-ide-2.4.28 root=/dev/hda23 ro hdc=ide-scsi vga=3 ide2=noprobe quiet


As mentioned above, you can do something similar if you are using LILO.

Because I still use the 2.4 x series of kernels, I am still using scsi emulation to run my cd-writer. Thus, in /etc/fstab, I ensure my cd-writer is configured appropriately:

# cd-writer
/dev/sr0 /media/cdwriter iso9660 noauto,user,rw,unhide 0 0

# cd-rom
/dev/hdd /media/cdrom iso9660 noauto,user,ro,unhide 0 0
#
# floppy
/dev/fd0 /media/floppy auto noauto,user,rw,sync 0 0


I did not have to enable anything related in /etc/rc.d/rc.modules. However, I have played around with recompiling the kernel and possibly I enabled this directly in the kernel whereas the original packaged from PV might not have this. If so, you do not need to recompile the kernel, just enable the appropriate option in rc.modules as mentioned above.

In KDE I enabled the desktop icons for the CD devices (I also have a CD reader installed), as well as the floppy device. These handy icons allow me, when in KDE, to automatically mount and eject disks. Double-clicking on the CD Writer icon automatically mounts the device, opens the Konqueror file manager, and displays the disk contents. Upon closing Konqueror, and then double-clicking once again on the icon, KDE automatically unmounts the device and ejects the disk.

I hope this helps.
 
Old 11-15-2005, 10:22 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
I am confused about the unhide option in the fstab line, what exactly is the effect of that?

Also, do I have to do a ln -s /dev/hdd /dev/sr0 ? (my burner is at hdd)

Last edited by Jeebizz; 11-15-2005 at 10:34 PM.
 
Old 11-16-2005, 07:28 PM   #10
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I am confused about the unhide option in the fstab line, what exactly is the effect of that?
I'm not using my Slack box right now, but IIRC, unhide merely shows hidden files on the CD. That is, all of those files with a dot in their file name as the first character.

Quote:
Also, do I have to do a ln -s /dev/hdd /dev/sr0 ? (my burner is at hdd)
No, I don't think you need sym link anything. Just revise the device numbers. I never installed a burner at hdd so some of the experienced users can correct me here if I'm wrong, but here is how I think things would look on my box if I swapped the drives:

GRUB:
title Slackware 10.1 - 2.4.28 - KDE 3.3.2
kernel (hd0,12)/vmlinuz-ide-2.4.28 root=/dev/hda23 ro hdd=ide-scsi vga=3 ide2=noprobe quiet

fstab:
# cd-rom
/dev/hdc /media/cdrom iso9660 noauto,user,ro,unhide 0 0

# cd-writer
/dev/sr1 /media/cdwriter iso9660 noauto,user,rw,unhide 0 0

I hope this helps.
 
Old 11-16-2005, 08:20 PM   #11
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Ok, well I placed /dev/sr0 /mnt/cdburner iso9660 noauto,users,rw 0 0

I am curious now, do I mount it before burning? mount /dev/sr0 ? or should I just run k3b?
 
Old 11-16-2005, 09:09 PM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally posted by Jeebizz
I am curious now, do I mount it before burning?
You don't.

If you haven't burned a CD under Linux before, you should probably use K3B.
 
Old 11-16-2005, 09:16 PM   #13
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Actually I haven't burned a cd under linux yet, thats why I wanted to give it a go, ok, so I can just go ahead and try to burn now, but I just noticed something else, after following these steps, it 'broke' my drive, meaning, now I can't read my cds, cause I also use my cd burner as a reader, since my other drive just recently crapped out... now when I try to mount a cd to read I get this...

Code:
slackuser@slacker:~$ mount /dev/hdd
mount: wrong fs type, bad option, bad superblock on /dev/hdd,
       or too many mounted file systems
       (could this be the IDE device where you in fact use
       ide-scsi so that sr0 or sda or so is needed?)
and this is my fstab...

Code:
/dev/hda3        swap             swap        defaults                  0   0
/dev/hda2        /                reiserfs    defaults                  1   1
/dev/hda1        /ntfs            ntfs        ro,users,umask=000        0   0
/dev/hda4        /fat32           vfat        rw,users,umask=000        0   0
/dev/dvdrom      /mnt/dvdrom      iso9660     noauto,users,ro           0   0
/dev/hdd         /mnt/cdrw        iso9660     noauto,users,ro           0   0
/dev/sr0         /mnt/cdburner    iso9660     noauto,users,rw           0   0
/dev/sda1        /mnt/cpflash     vfat        noauto,users,rw           0   0
/dev/sdb1        /mnt/flashdrive  vfat        noauto,users,rw           0   0
/dev/fd0         /mnt/floppy      auto        noauto,users,rw           0   0
devpts           /dev/pts         devpts      gid=5,mode=620            0   0
proc             /proc            proc        defaults                  0   0
hrmm...

Last edited by Jeebizz; 11-17-2005 at 03:40 PM.
 
Old 11-17-2005, 07:33 AM   #14
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
I have slack 10.2 on an external USB drive which has caused me no end of trouble following standard instructions for setting up for CD burning i.e ide-scsi in grub etc. I can burn but not read or without the ide-scsi in grub I can read but not burn.

As I only occasionally want to burn I've not included the ide-scsi option in grub and if i want to burn I use cdrecord dev=ATAPI:1,2,0 dsl-1.5.iso where the 1,2,0 is obtained from cdrecord dev=ATAPI -scanbus or something similar.

Aplogies for being a bit vague but not on my machine at present.

My desktop is fine I can burn/read in the standard way. The problem with slack on the USB drive is that I have an initrd that preloads some modules that possibly interfere with the standard configuration for burn/read. Maybe one day I will get it working as standard.

Hope this helps.
 
Old 11-17-2005, 04:05 PM   #15
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I use K3B exclusively to burn my CDs. Drag, drop, and I'm almost finished with the project.

K3B is written well as a front end to all of the related command line tools and provides a nice compatible KDE interface.

If you are using K3B then I'm guessing you also are using KDE. If so then you might consider the following:

1. Right-click on the desktop.
2. From the pop-up menu, select Configure Desktop.
3. From the General tab, verify that Show icons on desktop is enabled.
4. Select the Devices tab.
5. Select both the Mounted and unmounted devices for CD Writer, CD-ROM, and Floppy.
6. Select the OK button.

You now should have some icons on your desktop for the CD devices. To test, insert a non-blank CD into one of the drives. On the respective desktop icon, right-click and select Mount. Konqueror should open and display the disk contents. When finished browsing the disk, close Konqueror, or at least change the focused directory to something other than the CD. Then again right-click on the desktop icon. Select Eject.

If your boot loader (GRUB or LILO) and fstab are configured properly, K3B and the desktop icons will function automatically without hiccups. Because the fstab entry above specifies noauto, the device is made available but does not automatically try mounting any disks that do not yet physically exist in the drive. When you start K3B the program does the final mounting for you. Likewise with the KDE desktop device icons.

Quote:
and this is my fstab...
You previously wrote that your cd writer drive was located at hdd. Therefore, notice in your fstab that you have the cd writer configured read-only:

/dev/hdd /mnt/cdrw iso9660 noauto,users,ro

Modify that ro to rw.

You also have another entry for a burner:

/dev/sr0 /mnt/cdburner iso9660 noauto,users,rw

Is this the same drive? If so, then use one entry or the other, but not both. And consider modifying the sr0 to sr1 because the cd writer is located at hdd (hdc=sr0, hdd=sr1). Don't delete one line or the other, just add a hash mark at the beginning to comment out one line and test that way. If one entry fails then try the other.

Also ensure you have the ide-scsi option in your boot loader pointed to hdd and not hdc.

I hope this helps.

Regarding USB, I can't help there because I have no USB devices on my box.
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
Cannot find DVD writer or get CD-writer to spin audio disk dgwebb Linux - Hardware 5 03-28-2005 05:00 PM
redhat EL WS and on fedora read cd-writer problem nkjsat2 Red Hat 0 07-19-2004 03:46 AM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM
linux says my CD writer is read-only jd20878 Linux - Hardware 3 12-31-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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