LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-21-2003, 11:29 PM   #1
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
What device represents my CD burner?


So, /dev/cdrom points to the master on my ide (DVD-ROM), and the slave on the same ide is a philips cd-rw, however slackware did not "install" it when I set up my system. It seems that /dev/cdrom actually points to /dev/hda, so where would my philips burner be located? Also, if I found it, how would I set it up in fstab? Thanks.
 
Old 04-22-2003, 02:34 AM   #2
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
you have to boot with ide-scsi emulation enabled.
Try:
append="hdb=ide-scsi"
in your lilo.conf

After you reboot (dont forget to rerun lilo after the above edit!!!) the cdburner should appear as /dev/scd0

Last edited by m0rl0ck; 04-22-2003 at 02:37 AM.
 
Old 04-22-2003, 04:01 AM   #3
poloktim
Member
 
Registered: Feb 2003
Location: Australia
Distribution: Debian
Posts: 104

Rep: Reputation: 17
Here we go:

Setting up a CDR/W ($ means normal user, # means su/root)

- Install IDE SCSI into the Kernel (however your distro(s) do it).
- Install basic software (cdrecord, mkisofs
- Restart
- $dmesg | grep ATAPI
- Modify LILO:
#<your editor> /etc/lilo.conf
underneath root=(whatever goes here) where it says Append (usually commented) add:
append="hdd=ide-scsi max_scsi_luns=1"
Save and exit.
#lilo
#shutdown -r now
$dmesg (you can search for scsi, but it shold be at the bottom)
-Using CDRW (If you're in the group cdrom then you don't need root for these commands).
$cdrecord -scanbus (normally 0,0,0 but may be different for you, write it down).
$<your favourite editor> /etc/default/cdrecord
add default device/speed/fifosize drname,device,speed,fifosize,driveoptions (i didn't do anything so you may not need to do it).
Save. Exit.
put a non-blank cd in (that is one that has data on it).
$cdrecord dev=0,0,0 -v -toc | more (remember that 0,0,0 may not be your devnumber, you should've taken it down before).
-Because it's the second drive it now needs to be set up properly to read/write to.
#cd /dev
#ln -s scd0 cdrw
#cd / (or /mnt if you want, this is creating the cdrw dir)
#mkdir cdrw
#<your favourite editor> /etc/fstab
look for /dev/cdrom and directly underneath it add (without the quotes):
"/dev/cdrw /cdrw iso9660 ro,user,noauto 0 0" IF you made the mount point at /mnt/cdrw then replace /cdrw with /mnt/cdrw
Save and exit.
Put a cd in both dvd and cdrw.
#mount /cdrom (or whatever your cdrom mountpoint is)
#ls /cdrom
#umount /cdrom
#mount /cdrw (or whatever you made your cdrw mount point to (/mnt/cdrw))
#ls /cdrw
#umount /cdrw
-Burning a test cd.
Put a blank cdr(w) into the cdrw device.
$cd /tmp
$mkisofs -r -o homedir.img /home/<your username> (this makes a cdimage of your homedir).
$cdrecord dev=0,0,0 -v -data home-dir.img (replace dev=0,0,0 with dev=(your device number)).
$mount /cdrw
$ls /cdrw
$umount /cdrw
-You can install an X frontend now if you want CDRoast or such.
-You're finished setting up your CDRW.
 
Old 04-22-2003, 11:30 PM   #4
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
Originally posted by m0rl0ck
you have to boot with ide-scsi emulation enabled.
Try:
append="hdb=ide-scsi"
in your lilo.conf

After you reboot (dont forget to rerun lilo after the above edit!!!) the cdburner should appear as /dev/scd0
In slackware the burner will be /dev/sr0.
 
Old 04-23-2003, 03:37 PM   #5
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Quote:
In slackware the burner will be /dev/sr0.
Hmm, I didnt know that something as basic as that would be distro specific.
So things have changed since this document was written?:
http://linuxtipps.sourceforge.net/sh...tutorial/3.htm


EDIT: typo
 
Old 04-23-2003, 06:01 PM   #6
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
Originally posted by m0rl0ck
Hmm, I didnt know that something as basic as that would be distro specific.
So things have changed since this document was written?:
http://linuxtipps.sourceforge.net/sh...tutorial/3.htm


EDIT: typo
Yep,
Code:
bern@grendel bern$ dmesg | grep scsi
Kernel command line: BOOT_IMAGE=slackware ro root=302 hdd=ide-scsi
ide_setup: hdd=ide-scsi
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
 
Old 04-23-2003, 07:34 PM   #7
poloktim
Member
 
Registered: Feb 2003
Location: Australia
Distribution: Debian
Posts: 104

Rep: Reputation: 17
Then replace scd0 with sr0.

K
 
Old 04-24-2003, 12:26 AM   #8
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Quote:
In slackware the burner will be /dev/sr0.

Found something interesting:


http://www.aplawrence.com/Bofcusm/1827.html
 
Old 04-24-2003, 12:42 AM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
That is interesting.
 
  


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
Linux doesn't recognize CD Burner as SCSI device Eric3 Linux - Hardware 3 09-20-2005 08:29 AM
configuring webmin burner - device list empty mfcarroll Linux - Software 3 01-31-2005 01:04 AM
How to copy a device (CD burner) configuration from another Linux installation? mwettach Linux - Newbie 7 07-31-2004 12:02 PM
Problem with k3b identifing burner device under Mandrake 9.2 stv_t Linux - Software 0 11-25-2003 05:02 AM
Firewire DVD burner - what device to mount? RWild Linux - General 12 01-21-2003 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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