I've backfitted a CD-R onto a SuSE 8.2 install. I have had many interesting run-ins with CD-Rs over my years with SuSE, and usually managed to get them to work, but it's reassuring to know the process is still hit-and-miss. There seem to be a dozen alternative approaches on the SDB and this list, and after a couple of hours faffing about I've decided to ask here. (Side-whinge: I tend to think it is surely not beyond the wit of man to have SuSEWatcher pop up a dialog saying: "You have added a new removable drive. Is this (a) a CD-ROM/DVD-ROM, (b) a CD-recorder/writer, (c) a combo-drive, (d....n)?", and then, on getting the answer to this, make whatever changes to modules etc need to be made. But, contrary to my naive view, this must be a really difficult issue ....) What I have done (greatly boiled down version of googling etc) is: - wire up the drive in the case - boot 8.2, which sees there is a new drive, and opens up YaST, and I click Add to set it up (as I foolishly assumed) - a new icon gets added to the desktop (hdd) - I run ln -s /dev/sg0 /dev/cdrecorder - cdrecord -scanbus says it cannot open /dev/sg*, nor even the SCSI driver (so YaST didn't really set it up then) - modprobe ide-scsi doesn't change things - set initrd_modules to include ide-scsi and run mk_initrd - on reboot, both cdrom and cdrecorder can be seen by cdrecord, but the cdrecorder icon has disappeared, and YaST wants me to add another icon for the cdrom, this time as a SCSI device ... hmmm - look at main PC, and see that ide-scsi is not in the initrd_modules list, even though there is a cdrom and cdrecorder on that too; moreover, the cdrecorder there is sr0, and the cdrom links to hdc, and not any SCSI device - remove ide-scsi from initrd_modules, and add it to /etc/init.d/boot.local - on reboot, the icons are OK again, but cdrecord can't see the drive Surely there's an easier way to do something that should only take a couple of minutes? Luckily the person I'm doing this for is not here, or they would be saying "if Linux is that hard to get set up, take it off". -- Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
On Sunday 05 October 2003 19.17, Kevin Donnelly wrote:
Surely there's an easier way to do something that should only take a couple of minutes?
There is. Assuming the drive is slave on the secondary IDE channel (hdd) add "hdd=ide-scsi" to the kernel line in /boot/grub/menu.lst add ide-scsi to either boot.local or INITRD_MODULES (doesn't really matter which, so long as it gets loaded) find out which device it connects to (read the message in either /var/log/ messages or /var/log/boot.msg). Let's assume it's sr0 ln -s /dev/sr0 /dev/cdrecorder (not strictly necessary, but easier to read) make sure the permissions on /dev/sg* and /dev/sr* are correct (should be take care of automatically by resmgr) start working
On Sunday 05 October 2003 19.05, Anders Johansson wrote:
On Sunday 05 October 2003 19.17, Kevin Donnelly wrote:
Surely there's an easier way to do something that should only take a couple of minutes?
There is. Assuming the drive is slave on the secondary IDE channel (hdd)
add "hdd=ide-scsi" to the kernel line in /boot/grub/menu.lst add ide-scsi to either boot.local or INITRD_MODULES (doesn't really matter which, so long as it gets loaded)
and of course somewhere round about here there should be a reboot
find out which device it connects to (read the message in either /var/log/ messages or /var/log/boot.msg). Let's assume it's sr0
ln -s /dev/sr0 /dev/cdrecorder (not strictly necessary, but easier to read)
make sure the permissions on /dev/sg* and /dev/sr* are correct (should be take care of automatically by resmgr)
start working
On Sunday 05 October 2003 6:05 pm, Anders Johansson wrote:
There is. Assuming the drive is slave on the secondary IDE channel (hdd)
add "hdd=ide-scsi" to the kernel line in /boot/grub/menu.lst add ide-scsi to either boot.local or INITRD_MODULES (doesn't really matter which, so long as it gets loaded)
and of course somewhere round about here there should be a reboot
find out which device it connects to (read the message in either /var/log/ messages or /var/log/boot.msg). Let's assume it's sr0
ln -s /dev/sr0 /dev/cdrecorder (not strictly necessary, but easier to read)
make sure the permissions on /dev/sg* and /dev/sr* are correct (should be take care of automatically by resmgr)
Hi Anders Thanks very much for this - as you say, once you know what has to be done, it only takes a few minutes! I still think the above should be in a script somewhere, or even written down as a message that SuseWatcher/YaST shows you. Doing exactly as you said (hdd=ide-scsi in menu.lst, ide-scsi in intird_modules, rebooting) left both drives as scsi, which meant I couldn't use the CD-ROM as a CD player (even if I changed the link to the new sr0), so instead I added hdc=ide-cdrom, hdd=ide-scsi to menu.lst, and rebooted. I had to add an icon for the cdrecorder manually. Cdrecord and K3b picked up the writer, and I've done a test burn. Thanks once again for you help, which, as so often on this list, is like warm balm on a head that has been excessively scratched! -- Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
On Sunday 05 October 2003 16:10, Kevin Donnelly wrote:
On Sunday 05 October 2003 6:05 pm, Anders Johansson wrote:
There is. Assuming the drive is slave on the secondary IDE channel (hdd)
add "hdd=ide-scsi" to the kernel line in /boot/grub/menu.lst add ide-scsi to either boot.local or INITRD_MODULES (doesn't really matter which, so long as it gets loaded)
and of course somewhere round about here there should be a reboot
find out which device it connects to (read the message in either /var/log/ messages or /var/log/boot.msg). Let's assume it's sr0
ln -s /dev/sr0 /dev/cdrecorder (not strictly necessary, but easier to read)
make sure the permissions on /dev/sg* and /dev/sr* are correct (should be take care of automatically by resmgr)
Hi Anders
Thanks very much for this - as you say, once you know what has to be done, it only takes a few minutes! I still think the above should be in a script somewhere, or even written down as a message that SuseWatcher/YaST shows you.
Doing exactly as you said (hdd=ide-scsi in menu.lst, ide-scsi in intird_modules, rebooting) left both drives as scsi, which meant I couldn't use the CD-ROM as a CD player (even if I changed the link to the new sr0), so instead I added hdc=ide-cdrom, hdd=ide-scsi to menu.lst, and rebooted. I had to add an icon for the cdrecorder manually. Cdrecord and K3b picked up the writer, and I've done a test burn.
Thanks once again for you help, which, as so often on this list, is like warm balm on a head that has been excessively scratched!
--
Best wishes
Kevin Donnelly
www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
Kevin, Just an FYI on SuseWatcher. I found that it would loose the drive icons that I created after I rebooted. For some reason SuseWatcher seems to have its own set of desktop icons that is separate from the normal desktop. To get my icons to be permanent, I disabled SuseWatcher and created the icons (links) directly in my user Desktop/ directory. Now when I reboot the icons return as I set them up. I leave SuseWatcher disabled. I think there was a post about this on this list a few weeks ago but I don't remember the details. Perhaps someone more familiar with SuseWatcher can provide more information. Regards, Jack A.
On Monday 06 October 2003 5:28 pm, Jack Alderson wrote:
Just an FYI on SuseWatcher. I found that it would loose the drive icons that I created after I rebooted. For some reason SuseWatcher seems to have its own set of desktop icons that is separate from the normal desktop. To get my icons to be permanent, I disabled SuseWatcher and created the icons (links) directly in my user Desktop/ directory. Now when I reboot the icons return as I set them up. I leave SuseWatcher disabled. I think there was a post about this on this list a few weeks ago but I don't remember the details. Perhaps someone more familiar with SuseWatcher can provide more information.
Yes, there's a bug in SW, isn't there? It did add its own icon on reboot, so i deleted mine, and it seems to be OK. Thanks. -- Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
participants (3)
-
Anders Johansson
-
Jack Alderson
-
Kevin Donnelly