Click to See Complete Forum and Search --> : [SOLVED] CD/DVD writing gone after kernel recompil
hongman
04-20-2005, 07:00 AM
Hi all
Quite new to Linux... please bear with me.
I had a hard drive install on Knoppix 3.7, and then I decided to upgrade my kernel, better support for my graphics card and a learning experience.
So I went from kernel 2.4.27 to 2.6.11 (Debian)
Everything went pretty well, except when I came to burn a CD, K3b said I didnt have a CDRW!
So anyways, after much googling and playing around, it seems that I need to set up my CD/DVD Burner again.
I remember, in K3b, before the upgrade, it detected my burner as a scsi device. Apparently in 2.6 kernels you dont need it, as it supports direct ATAPI access.
So, here I am. Lost, dont know what to try next. I have even tried removing cdrecord, k3b and then reinstalling them. I also installed xcdroast, that cant detect anything either.
Any suggestions? Would be most grateful.
Hong
ps my burner is at /dev/cdrom, I tried pointing it to that but it didnt work.
A good place to start might be your kernel logs, just to see if your device is being recognized. Check /var/log/messages. I'm guessing that you didn't enable the support you need for your device in the kernel you built.
ph34r
04-20-2005, 09:59 AM
What does
cdrecord -scanbus -dev=ATAPI
output?
hongman
04-20-2005, 10:06 AM
WOOHOO!
Well, folks, I managed to troubleshoot and do all this myself I figured it out.
After numerous thought processes, and the like, I finally figured:
Navigate to /dev
chmod 777 /dev/hda (hda is where my burner is)
................
Thats it!
Turns out that k3b didnt have permission to the device, so it couldnt use it. Simple as.
To be quite honest, I cant even remember how I figured it out, it was probably a bit of every document I read. I read more since I started using Linux than I have in my lifetime!
The best thing? I managed to do all this remotely via VNC and SSH. Can you tell I'm on a high?
Hong
hongman
04-20-2005, 11:01 AM
Ok, a bit of trouble again.
I rebooted, and it didnt work again.
Turns out, that I have to run rmmod ide-scsi before it will work.
Why is this? How can I permanently remove this module?
I have also been doing this chmod for /dev/hda as well, but not sure if its really totally necessasry now I have already done it once.
Any ideas?
Thanks
Hong
Originally posted by hongman
Ok, a bit of trouble again.
I rebooted, and it didnt work again.
Turns out, that I have to run rmmod ide-scsi before it will work.
Why is this? How can I permanently remove this module?
You could add it to /etc/hotplug/blacklist (just uncomment it if it is listed).
I have also been doing this chmod for /dev/hda as well, but not sure if its really totally necessasry now I have already done it once.
Any ideas?
Thanks
Hong
Hopefully the permissions stayed the same; do a ls -l /dev/hda to find out. BTW, what is your hard drive registered as? /dev/sda?
hongman
04-20-2005, 11:38 AM
Thanks quip.
I added a line:
# fix for k3b
ide-scsi
Will that do? Just rebooted so we'll see i suppose...
Also, yes I have a strange layoout of my drives. DVD Burner is Primary Master (hda) whilst the rest of my HDD's are hdb, hdc and hdd. Its from the way my case is arranged.
hongman
04-20-2005, 11:43 AM
Well that didnt work....
I still had to run rmmod ide-scsi to get cdrecord to recognise the drive...
Did I even put that line in correctly?
Hong
Yes, it looks like you edited the file correctly. I wish I had another answer right now, but I don't. :o
Someone else probably will, though. Until then, you could add a line to your "local" init script (rc.local in knoppix?) with the simple rmmod ide-scsi command you have been using.
Did your permissions stay changed?
hongman
04-20-2005, 12:38 PM
Thanks anyway quib.
and yes, they did stay changed :)
I'll have a look at editing my rc.local script, see what that holds for me.
Shall post back with results
Hong
hongman
04-20-2005, 01:18 PM
Yay!
Ok, since I boot into runtime level 2, I went to the /etc/rc2.d folder, and created a shell script named S80local.
In there, I had...
#!/bin/sh
echo Removing Module ide-scsi
rmmod ide-scsi
Voila!
On reboot, I logged in and before I even started X, I ran cdrecord dev=ATA -scanbus and there it was, my NEC DVD Burner on ATA mode. Sweet.
Thanks all for your help!!
:D