LinuxQuestions.org
Visit Jeremy's Blog.
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 09-27-2005, 01:23 PM   #16
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
cdrw


Did you 'mkdir mnt/cdrw'? After that kde should show it System(on desktop). Fstab should have /dev/xxx /mnt/cdrw auto noauto,user,ro 0 0. And under /etc/group add yourself(user) to sys,disk,cdrom,audio and maybe wheel groups. Then chmod 660 /dev/xxx. Some use a umask 002 in fstab instead. Good luck.
 
Old 09-27-2005, 04:38 PM   #17
Draiocht
Member
 
Registered: Aug 2005
Location: UK
Distribution: Slackware 10.2
Posts: 46

Original Poster
Rep: Reputation: 15
Sorry, new at this

Thanks for your reply, I haven't done these things and would like to but don't know how to do the following:


Quote:
mkdir mnt/cdrw'
Quote:
And under /etc/group add yourself(user) to sys,disk,cdrom,audio and maybe wheel groups. Then chmod 660 /dev/xxx. Some use a umask 002 in fstab instead. Good luck.
Sorry I seem to need so much spoon feeding but if it is any consolation I'm certainly very grateful for all you guys are teaching me. I am also studying online tutorials to be more pro active in my learning process but just haven't got to this stuff yet.

Regards,

Draiocht
 
Old 09-27-2005, 05:03 PM   #18
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
No problem, I had to be "spoon fed" (and still do actually ) some things when I first started.

Making a directory:
If you are in KDE, GNOME, XFCE or other Desktop Environment/Window Manager just open a terminal (in KDE I think it's called Konsole) and do the following:
Code:
XXXX@XXXXXXXXX:~$ su -
Press the enter key. This loads the root user AND that users complete environment (including PATH). You will be asked for a Password, type in the root password.

Next do:
Code:
XXXX@XXXXXX:~# mkdir /mnt/cdrw
(notice the prompt change from :~$ to :~# this way you know you are root)
Press enter and you've just created your mount point for your cdrw (well actually the filesystem of the CD that's IN your cdrw, but that's a whole other discussion ).

As far as the group stuff in /etc/group, you can manually edit the file but KDE also has a "Users and Groups" GUI utility. It's located in K --> System Tools --> User Manager (Kuser). You will be asked for the root password to run the program. Scroll down and click on your user name and in then click on the groups tab. Just select the groups you want to join. A word of caution here BE CAREFUL, just because a group exists doesn't mean you need to belong to it, ESPECIALLY the root or administrator group DO NOT add yourself to either of them. BTW, I'm going from memory here as I use GNOME and I assumed you were using the defaut DM that comes with Slack. Or, you could just edit /etc/group (you will have to be root to do this) with any text editor and manually add the groups that lestoil suggested (and a good suggestion it was). I'm thinking that as long as you are in the group that the device belongs to you won't have to worry about the chmod stuff.

One other thing, I would change the owner in your fstab entry to user. This way you will be able to mount the filesystem, with owner I'm not sure that just any user can mount it.

HTH,
MMYoung
 
Old 09-27-2005, 06:05 PM   #19
Draiocht
Member
 
Registered: Aug 2005
Location: UK
Distribution: Slackware 10.2
Posts: 46

Original Poster
Rep: Reputation: 15
Getting closer

O.K.,

I've done everything suggested so far and all appears as it should except that when I clicked on my new cdrw icon I got an error saying "mount: special device /dev/cdrw does not exist.

A flick throught the modifications made so far in Midnight Commander showed that cdrw does not show up in "group".

Puzzled now.



regards

Draiocht
 
Old 09-27-2005, 07:05 PM   #20
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Do this for me, in a terminal type in:

ls -l /dev/cdrom

Post the results.

BTW, are you using a 2.6 kernel or a 2.4 kernel?

MMYoung
 
Old 09-28-2005, 05:40 AM   #21
Draiocht
Member
 
Registered: Aug 2005
Location: UK
Distribution: Slackware 10.2
Posts: 46

Original Poster
Rep: Reputation: 15
Here it is

root@Avalon:~# ls -l/dev/cdrom
/usr/bin/ls: invalid option -- /
Try `/usr/bin/ls --help' for more information.
root@Avalon:~# /usr/bin/ls
Console_output_lilo.conf_search HAL Sounds cdrw loadlin16c.zip
Desktop cdrom loadlin16c.txt wallpaper
root@Avalon:~#


It appears to me that it just isn't showing up, I'm pretty sure I've done all that has been suggested so far and as instructed, although I'm just about to re check my entries. I don't actually know enough for my own thinking to have interfered and changed anything (except of course that my cdrw is hdd so I modified those entries accordingly).

Sorry, I should have given you my kernel version earlier, it's 2.4.31, and you guessed right on my gui, it's kde 3.4.

thanks for this,

regards,

Draiocht

Last edited by Draiocht; 09-28-2005 at 05:41 AM.
 
Old 09-28-2005, 06:02 AM   #22
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
It should be: ls -l /dev/cdrom
with a space between the -l switch and /dev/cdrom.
Usually cdrom devices belong to the disk group, there's no cdrw group by default.

Last edited by gbonvehi; 09-28-2005 at 06:04 AM.
 
Old 09-28-2005, 06:30 AM   #23
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Re: Here it is

Quote:
Originally posted by Draiocht
Sorry, I should have given you my kernel version earlier, it's 2.4.31, and you guessed right on my gui, it's kde 3.4.
First off I should've looked back through the thread as you did stated that you are using the 2.4.31 kernel earlier, sorry for that. Now that I know that I can help you with your /dev entry.

More than likely, since you have a 2.4 kernel and from the thread it looks like you did put the append line in your lilo.conf, your CD drives are being setup as /dev/sr*. If this is so, it's an easy thing of just making sure that the symlink in /dev is pointing to the right devices. To make sure do this:

dmesg | grep hdc

Or maybe better:

dmesg | grep sr0

More than likely it's going to say that your CD-ROM/RW is now /dev/sr0. Next do:

ls -l /dev/cdrom (remember the space between -l and /dev/cdrom)

Post the results of both/all so I can look at them.

If your CD is being set up as /dev/sr0 (you will see this in the dmesg output), and the symlink is NOT pointing to /dev/sr0, you can create the symlink in /dev, from a terminal and logged in as root, by:

rm /dev/cdrom
ln -s /dev/sr0 /dev/crom

Then just edit the fstab entry for the /dev/cdrom /mnt/cdrom to the suggetions in this thread and it will work.

Or in your case if you want the symlink to be /dev/cdrw then just do:

ln -s /dev/sr0 /dev/cdrw

After you do that, and assuming that you made the necessary changes to fstab, you should be able to mount a CD in your CD drive with the command mount /mnt/cdrw. Either way will work just fine.

Later,
MMYoung
 
Old 09-28-2005, 06:41 AM   #24
Draiocht
Member
 
Registered: Aug 2005
Location: UK
Distribution: Slackware 10.2
Posts: 46

Original Poster
Rep: Reputation: 15
Results so far

Thanks guys, here is the output of that ls command:

Code:
root@Avalon:~# ls -l /dev/cdrom
lrwxrwxrwx  1 root root 8 2005-09-25 16:43 /dev/cdrom -> /dev/hdc
Since the system just doesn't seem to be picking up the device I was given to wonder if there is something wrong with my lilo.conf file, so here are the first lines of my lilo.conf

#Start LILO global section
append = "hdd=ide-scsi"
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
#override dangerous defaults that rewrite the partition table:
change-rules
reset

Can't think of anything else at the moment




Draiocht
 
Old 09-28-2005, 08:08 AM   #25
Draiocht
Member
 
Registered: Aug 2005
Location: UK
Distribution: Slackware 10.2
Posts: 46

Original Poster
Rep: Reputation: 15
Smile The quest continues

Here is the first output (where my cdrw is hdd):

Code:
root@Avalon:~# dmesg | grep hdd
    ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
hdd: CD-RW IDE5232, ATAPI CD/DVD-ROM drive
hdd: attached ide-cdrom driver.
hdd: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
dmesg | grep sr0 returned me to the prompt after giving no output, but here is the result of

ls -l /dev/cdrom:
Code:
root@Avalon:~# ls -l /dev/cdrom
lrwxrwxrwx  1 root root 8 2005-09-25 16:43 /dev/cdrom -> /dev/hdc
Sorry about the "cross over" in postings preceding this one, I wasn't ignoring your post, I think we must have been typing at the same time \

How did those smileys get in the code quotes , weird

Thanks again,

Draiocht

Last edited by Draiocht; 09-28-2005 at 08:12 AM.
 
Old 09-28-2005, 11:09 AM   #26
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Sorry to keep asking for stuff but I want to make sure. Try:

dmesg | grep sr*

You will probably get a LOT of stuff but just try and look for something about SCSI and sr0. With the append line you have I'm certain™ ( ) that your CDROM is being added to /dev as sr0 but I just want to make sure.

Also noticed that you have hdd=ide-scsi, do you have two CD drives or something? Reason I ask is if you have two CD drives you *might* have to ide-scsi it as well, but I'm not sure about that. I know I used to have to do that when I was running a 2.4.xx kernel and using K3b to burn stuff.

If your CD is being set up as /dev/sr0 then do:

ls -l /dev/sr0 and hopefully it's permissions are set to root.cdrom.

We're getting there, I just want to make sure we get there RIGHT.

Later,
MMYoung
 
Old 09-28-2005, 06:43 PM   #27
Draiocht
Member
 
Registered: Aug 2005
Location: UK
Distribution: Slackware 10.2
Posts: 46

Original Poster
Rep: Reputation: 15
No need to apologise, I'm just very grateful that you're prepared to take the time to help me with this.

dmesg | grep sr* didn't yield the results we were hoping for, I searched it line by line but nothing I'm afraid. However, I did notice this code in the output, I don't know if it is relevant but the last three lines in particular stood out to me as simply because they contained the words "failed" and "scsi".



Code:
SIS5513: IDE controller at PCI slot 00:02.5
SIS5513: chipset revision 0
SIS5513: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
blk: queue c03af460, I/O limit 4095Mb (mask 0xffffffff)
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=4998/255/63, UDMA(133)
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
You probably got there before me but those smileys that creep in are just replacing : followed by D.

Now it is time for me to cringe and make grovelling apologies to the community for a glaring ommision to the spec in my signature. I do indeed have another optical drive, a DVD cdrom reader, hdc. Sorry about that, I will of course correct that immediately.

Thanks for your patience,

Draiocht
 
Old 09-28-2005, 07:11 PM   #28
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
What is the output of ls -l /dev/sr0 ?

Later,
MMYoung
 
Old 09-28-2005, 07:23 PM   #29
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Quote:
hdd: attached ide-cdrom driver.
This may or may not change anything, but try editing your lilo.conf again. Move the append=ide-scsi to below your kernel lines, like this

image = /boot/bzImage...
label = Label
read-only
append = "hdd=ide-scsi"

This may help. Any time you change something in lilo.conf or modify the kernel you have to execute the lilo command (as root) to update the actual loader, otherwise your changes aren't taking effect.
 
Old 09-28-2005, 07:45 PM   #30
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally posted by dracolich
This may or may not change anything, but try editing your lilo.conf again. Move the append=ide-scsi to below your kernel lines, like this

image = /boot/bzImage...
label = Label
read-only
append = "hdd=ide-scsi"

This may help. Any time you change something in lilo.conf or modify the kernel you have to execute the lilo command (as root) to update the actual loader, otherwise your changes aren't taking effect.
DAMN, I forgot to tell him to run lilo after the edit! After I've done things so many times (that it's almost second nature) I tend to take it for granted and forget to mention it. Thanks!

BTW, the append line in my 2.4.31 section is just under the image = line and it works fine.

Later,
MMYoung
 
  


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
The drive problem Gins Solaris / OpenSolaris 3 09-13-2005 07:48 PM
Problem Mounting Drive DediPlace Linux - General 4 07-25-2005 09:21 AM
problem seeing cd drive class_struggle Linux - Newbie 3 08-18-2004 01:23 PM
Tape Drive Problem!! tranquil222 Linux - Software 1 07-08-2004 12:48 AM
zip drive problem (or more specifically, imm problem) CartersAdvocate Slackware 3 02-06-2004 01:01 PM

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

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