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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-22-2003, 12:29 AM
|
#1
|
Member
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154
Rep:
|
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.
|
|
|
04-22-2003, 03:34 AM
|
#2
|
Member
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358
Rep:
|
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 03:37 AM.
|
|
|
04-22-2003, 05:01 AM
|
#3
|
Member
Registered: Feb 2003
Location: Australia
Distribution: Debian
Posts: 104
Rep:
|
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.
|
|
|
04-23-2003, 12:30 AM
|
#4
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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.
|
|
|
04-23-2003, 04:37 PM
|
#5
|
Member
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358
Rep:
|
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
|
|
|
04-23-2003, 07:01 PM
|
#6
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
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
|
|
|
04-23-2003, 08:34 PM
|
#7
|
Member
Registered: Feb 2003
Location: Australia
Distribution: Debian
Posts: 104
Rep:
|
Then replace scd0 with sr0.
K 
|
|
|
04-24-2003, 01:26 AM
|
#8
|
Member
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358
Rep:
|
Quote:
In slackware the burner will be /dev/sr0.
|
Found something interesting:
http://www.aplawrence.com/Bofcusm/1827.html
|
|
|
04-24-2003, 01:42 AM
|
#9
|
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590
Rep:
|
That is interesting.
|
|
|
All times are GMT -5. The time now is 10:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|