LinuxQuestions.org
Visit Jeremy's Blog.
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 05-12-2005, 09:51 AM   #1
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
optical drive mounting


Ok here goes.

I have installed Slackware 10.1 "the coolest OS on the planet"

By default it mounted the first optical drive in the ide chain.
This is my DVDROM.
I also have a CDR/RW which was not mounted.
I know that I have to edit /etc/fstab as well as mkdir /mnt/*** to be able to mount both optical drives.

Ok so good so far.

At first in /fstab to mount both optical drives I did this

/dev/cdrom /mnt/dvdrom udf,iso9660 noauto,user,ro 0 0
/dev/cdrom /mnt/cdrw iso9660 noauto,ruser,rw 0 0

And in /mnt

mkdir /mnt/dvdrom
mkdir /mnt/cdrw

No luck.

I tried and tried and tried but couldn't get it right.

Then I looked back at the working line in fstab for the first optical drive.
It read as follows:

/dev/cdrom /mnt/cdrom iso9660 noauto,root,ro 0 0

I figured out the problem was in /dev, not in /mnt or /fstab.

I later made it work by doing this in /fstab

/dev/hdc /mnt/dvdrom udf,iso9660 noauto,user,ro 0 0
/dev/hdd /mnt/cdrw iso9660 noauto,ruser,rw 0 0

And in /mnt

/mnt/dvdrom
/mnt/cdrw



You notice the change from /dev/cdrom to /dev/hdc & /dev/hdd?

I found the link to a block in dev called "cdrom".
That's where both of the lines I edited in /fstab were pointing to.
/dev/cdrom

Now I am able to read from both drives independently and mounting is easier than windows.

Before, no matter which drive I tried to mount, the first one in the chain with data would be mounted.

However I have yet to try playing a DVD or burn a CD yet so I don't know how great this hack really works.

Here are my questions:
1. Am I Cheating? Should fstab point to a block link in dev rather that the actual hdc & hdd?

2. Is it smart to do it the way I did it or will it cause problems down the road, such as playing a DVD or burning a CDROM?

3. If I should create and use a block link in /dev instead, how do I do so?
What is the correct syntax to create this kind of link?
 
Old 05-12-2005, 09:56 AM   #2
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Ok, here is the deal.

Is is a fresh install?, if so you ned to tell the kernel that the cdrw is going to emulate scsi so you will need to add this to the lilo.conf
Code:
hdx=ide-scsi
being the x the id on the system (either a,b,c or d as in hda, etc...). To do that you can go the /dev folder and type this
Code:
ls -alh cdrom
most likely it is set for the dvd instead of the cd.

Now if you did told the instaler that the cdrw had to be consider as the one then you will need to
Code:
ln -s sr0 cdrw
from the /dev folder and then it will work.

If you like to you can change the /dev/cdrom to /dev/dvd, those are just soft links.
 
Old 05-12-2005, 10:09 AM   #3
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Ok, but will it work as is?

I don't understand why it needs to emulate scsi.

I am kinda new to linux, but having a blast learning, so I really want to understand what I am doing rather than just using a cheat sheet. Thats why I ask so many questions. It's not to question your advice at all.

Yes it is a fresh install.

How does lilo inform the kernel?

So the code would be....

hdd=ide-scsi

right? I know the dvdrom in ide is master and the cdrw id slave physically in the chain.

As far as the installer, I didn't specify anything as far as optical drives other than letting it auto search for a ide cdrom to install from. That's how I installed the whole system.

I am still unclear what you are showing me.
 
Old 05-12-2005, 10:35 AM   #4
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
My wrong, the actual line that you need to append to the lilo.conf is as follows:

Code:
append="hdd=ide-sci"
Now, even doe that the crdw is actuali an IDE drive the kernel 2.4.x doesn't seem to hadle it properly so it emulates scsi to take adventage the full harware potential.
With thte kernel 2.6.x the system will read and use the cdrw and the dvdrw as ide with no problem.


Remember to check on the links in /dev and to modify the /etc/fstab acording to them.
 
Old 05-12-2005, 10:43 AM   #5
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Ok.
I really want to upgrade to kernel 2.6.11.8 anyway.
But this excercise has taught me a lot.
That seems to support them better.
I have read & read on upgrading the kernel.
I have read that certain things need to be upgraded before moving from a 2.4 kernel to a 2.6 kernel.
However I don't understand how to upgrade them properly.
What is Slackware's upgrade manager?
How is it used?
Any advice on upgrading the kernel from cdrom's.
I have no internet connection at home at the present time.
 
Old 05-12-2005, 10:47 AM   #6
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Don't worry about that Slackware 10.0 and above are 100% compatible with kernels 2.6.x family, you can be totally confident.


But don't dispair, might not be a first try achivment and remember to keep your current kernel available.

You can actualy try the kenrnel from the Salckware cd 2 in extra there is a 2.6.7 kernel package if I recall corectly.
 
Old 05-12-2005, 10:51 AM   #7
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Original Poster
Rep: Reputation: 31
Can you point me to where I can find your prefered method of upgrading the kernel? You know, the step by step instructions that you used sucessfully?
 
Old 05-12-2005, 12:02 PM   #8
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Well to compile a kernel is fairly easy but tricky since you need to know what you need.

But let's see.

For the kernel 2.6.x try this:

Before anything else and with your current kenrel write down the devices listed on the screen when you type lspci and lsmod (this are the ones you will need.)
Find out what video card you have.
Download the sources of the 2.6.x kernel
Decomress it (do it inisde /usr/src/) and go inside the folder
Code:
make mrproper
will give you a clean config file, is actually easier to start from scratch (at least is my opinion).
Code:
make menuconfig
this will bring the menu so you can select what you need, be pacient (remember to look again to the output of lspci and lsmod), remember also to set the processor type of your machine.
The "M" stands for module, this means that the driver will be loaded by request and won't be integral part of the kernel itself, the "*" make the driver part of the kernel core. ---tip----- add as module all the NICs available so you can add any other NIC if needed ----tip----.
When you are sure that you have all what you need exit from the menu and save the configuration file.
Code:
make
Code:
make modules_install
Code:
make install
After this add a tag on the lilo.conf, somthing like this

Code:
image =/boot/vmlinuz-2.6.x
root=/dev/hdx
label=Linux-2.6.x
read-only
After that run the lilo command and cross your fingers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
optical drive help lucent Linux - Hardware 2 07-18-2005 05:31 AM
not seeing my second optical drive thanto_ Linux - Hardware 9 07-18-2005 01:08 AM
How to setup more than 1 ATAPI optical drive as SCSI Ninja_212 Slackware 4 12-12-2004 10:34 PM
mounting magneto-optical disks, external scsi drive freerangehuman Linux - Hardware 0 05-26-2004 02:11 PM
Using VMware with a USB optical drive andrewb758 Linux - Software 0 05-14-2004 10:47 AM

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

All times are GMT -5. The time now is 11:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration