LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-07-2004, 09:53 PM   #16
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30

Quote:
Originally posted by mdarby
it looks like your missing drive would be /dev/hdb
/dev/hdb
 
Old 11-07-2004, 09:55 PM   #17
k_bob
Member
 
Registered: Nov 2004
Location: Daytona Beach
Distribution: Slackware, Windows
Posts: 42

Original Poster
Rep: Reputation: 15
yea... that is what it said

bash-2.05b# mount /dev/hdb /mnt/dvd
mount: special device /dev/hdb does not exist
 
Old 11-07-2004, 09:59 PM   #18
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
run dmesg | grep hd and post the output.
 
Old 11-07-2004, 10:00 PM   #19
k_bob
Member
 
Registered: Nov 2004
Location: Daytona Beach
Distribution: Slackware, Windows
Posts: 42

Original Poster
Rep: Reputation: 15
here yah go

bash-2.05b# dmesg | grep hd
hda: WDC WD800JB-00CRA1, ATA DISK drive
hdc: LTN301, ATAPI CD/DVD-ROM drive
hda: max request size: 128KiB
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=65535/16/63
hda: cache flushes not supported
hda: hda1 hda2 < hda5 hda6 >
hdc: ATAPI 32X CD-ROM drive, 120kB Cache
Adding 1048312k swap on /dev/hda5. Priority:-1 extents:1
EXT3 FS on hda6, internal journal
 
Old 11-07-2004, 10:03 PM   #20
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Alright, it looks like only hdc is being reported. Are you sure your drives are correctly installed?
 
Old 11-07-2004, 10:05 PM   #21
k_bob
Member
 
Registered: Nov 2004
Location: Daytona Beach
Distribution: Slackware, Windows
Posts: 42

Original Poster
Rep: Reputation: 15
the work fine on windows... I don't know about linux? they are installed correctly and they are operational? the drives open and the cd's spin up...
 
Old 11-07-2004, 10:13 PM   #22
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
The device names are assigned based on how the drives are cabled inside your computer:

/dev/hda is the master disk drive on your primary IDE bus (this is usually your main hard disk)
/dev/hdb is the slave disk drive on your primary IDE bus (anything slaved to your main hd)
/dev/hdc is the master disk drive on your secondary IDE bus (usually cdrom/dvd drive)
/dev/hdd is the slave disk drive on your secondary IDE bus (usually a second cdrom/dvd drive)
and so on.

If everything is cabled correctly inside your computer, you may want to check the jumper settings on your cdrom and dvd drives. (Especially since, according to dmesg, it looks like /dev/hdc is first being assigned to your DVD drive, and then reassigned to your cdrom drive)
 
Old 11-07-2004, 10:13 PM   #23
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
the only thing that I can think of is that the two missing drives are an a seperate raid controller that is set (in Windows) to act as a seperate IDE chain, and the appropriate raid drivers aren't compiled in the kernel.

Of course, I could be completely off. dmesg speaks the truth though.
 
Old 11-07-2004, 10:15 PM   #24
k_bob
Member
 
Registered: Nov 2004
Location: Daytona Beach
Distribution: Slackware, Windows
Posts: 42

Original Poster
Rep: Reputation: 15
well I have the hdd on one ide spot, then the cd rom on one ide spot and then the dvd and burner on the same cable on another ide spot. I have one empty ide spot left
so then this might turn into a kernal compiling question? how do I do that I have 2.6.9
 
Old 11-07-2004, 10:21 PM   #25
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
how do you have 2.6.9 and not know how to compile a kernel?

It would be rather helpful if you could list (in order) what is physically attached to:

1: Master - IDE Cable 1
2: Slave - IDE Cable 1
3: Master - IDE Cable 2
4: Slave - IDE Cable 2
 
Old 11-07-2004, 10:23 PM   #26
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
So I'm guessing your comp. has four IDE buses. In that case, my best guess would be:
your main hd: /dev/hda
your first cdrom: /dev/hdc
dvd and cdrw: /dev/hde, /dev/hdf

I'm willing to bet you don't have to recompile your kernel to be able to use all your drives.

Perhaps try unplugging your first cdrom drive COMPLETELY (power cable, etc) and then moving the IDE cable which is connected to your dvd and cdrw drives from where it is currently on your motherboard to where your first cdrom drive's cable USED to be.
 
Old 11-07-2004, 10:32 PM   #27
k_bob
Member
 
Registered: Nov 2004
Location: Daytona Beach
Distribution: Slackware, Windows
Posts: 42

Original Poster
Rep: Reputation: 15
on the kernal thing I just copied some stuff and just used default stuff... I guess I am really lucky?

Master 1: Western Digital HDD
Slave 1: Nothing
Master 2: CD-ROM Drive
Slave 2: Nothing
Master 3: CD Burner
Slave 3: DVD Drive

as for the power thing I will have to try that in the morning... it is to late tonight to unplug everything and drag it out from underneath the desk... stupid college not making enough deskspace....
 
Old 11-07-2004, 10:40 PM   #28
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Erm... by the way - I just replaced my stock 2.4.26 kernel with 2.6.7 yesterday and, since I also have a dvd drive, I figured I'd check just in case...

and I just realized that MY dvd-rw drive no longer works. So, I guess the kernel does need rebuilding. I'll try some things and, if I get it to work, the steps will be posted.
 
Old 11-07-2004, 10:41 PM   #29
k_bob
Member
 
Registered: Nov 2004
Location: Daytona Beach
Distribution: Slackware, Windows
Posts: 42

Original Poster
Rep: Reputation: 15
cool... let me know when you get it posted...

I was wondering though if I need to put something in fstab?
 
Old 11-07-2004, 11:53 PM   #30
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
fstab? Nah. /etc/fstab isn't necessary to mount or recognize your cdrom or dvd drives, it just makes life easier... so you can type "mount /mnt/cdrom" instead of "mount /dev/hdc /mnt/cdrom".

As for the kernel, I think I solved the problem. I don't know why it solved it, but it seems to.

Kernel 2.4.26 (the one that comes with slack) uses devfs for the devices (/dev). Kernel 2.6 uses udev for the same thing. Supposedly, udev obsoletes devfs... but it seems to work differently. Anyway, I recompiled the kernel with devfs support and now the dvd drive is seen.

If you wish to do the same, here's the instructions:

First off, YOU MUST HAVE THE KERNEL SOURCE INSTALLED! If you don't, it's available off of the second slackware cd.

Now you have to enable /dev filesystem support under File Systems --> Pseudo filesystems with make menuconfig. If you don't know how to do that, steps 1-7 describe the process:

1) In a terminal, cd to /usr/src/linux.
2) Then run "make menuconfig".
3) Once the menu appears, use the arrow keys to navigate down to "File Systems" and press enter.
4) Once you're in the file systems menu, keep going down until you reach the item titled "Pseudo filesystems", press enter.
5) Once there, go down to "/dev filesystem support". It'll say "(OBSOLETE)" next to it. Press space to enable it.
6) Once that's done, a new option will appear which reads "Automatically mount at boot". Select that option, too, by going down to it and pressing space.
--- NOTE: Both options should now have asterisks next to them (on the left side) ---
7) Push the right arrow key to select the "exit" button on the bottom of the menu and then press enter. Keep doing this until you've exited from all menus. When you reach the original menu and exit from it, a dialog box will appear which reads "Do you wish to save your kernel configuration?". Ensure that "yes" is highlighted and press return.

The rest of the instructions here detail how to build and install the kernel.

You now have the kernel configured with devfs support, but you still have to build it. To do this, run "make" from the terminal and wait....

A line will be printed out when the kernel build finishes that contains a path like this: "arch/i386/boot/bzImage". If the directory between arch and boot is not i386 remember it and replace i386 later with that name.

--- NOTE: From here on you must be root ---

Once that's done, you need to run "make modules_install" to install any kernel modules.

I'm assuming you're using lilo to load linux (since you're using slackware). From here on, the instructions apply to lilo ONLY. If you're not using lilo.... you're on your own from here. =P

8) From /usr/src/linux, copy System.map to a file in /boot
("cp System.map /boot/System.map.new")
9) From /usr/src/linux, copy .config to a file in /boot
("cp .config /boot/config.new")
10) From /usr/src/linux, copy arch/i386/boot/bzImage to a file in /boot
("cp arch/i386/boot/bzImage /boot/vmlinuz.new")

Now that the necessary files are in /boot, you need to change the symbolic links to point to your new files. This is pretty easy.

11) cd to /boot ("cd /boot")
12a) Remove the old System.map link ("rm System.map")
12b) Create a new link to your new System.map file ("ln -s System.map.new System.map")
13a) Remove the old config link ("rm config")
13b) Create a new link to your new config file ("ln -s config.new config")
14a) Remove the old vmlinuz link ("rm vmlinuz")
14b) Create a new link to your fresh kernel ("ln -s vmlinuz.new vmlinuz")
15) This step may not apply to you!!! IF AND ONLY IF your root linux partition is reiserfs (like mine) or ext3 and you had to run mkinitrd before your 2.6 kernel would work, you must run the same command again. If you never had to do that before, you don't have to now - ignore this step.

*** MOST IMPORTANT STEP OF ALL ***
16) Run "lilo" to re-install the boot loader with your latest kernel build and configuration. If you don't do this, you'll get a kernel panic and your computer won't boot... which is bad.

Now, theoretically, everything will work... so reboot your machine and hope for the best. If you do happen to get a kernel panic (which isn't too unlikely) don't despair, just post the error message as it appears.
 
  


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
DVD Drive and CDRW Drive Will not mount on Slackware 10.1 Kernel 2.6.1 necrozen Linux - Hardware 1 09-13-2005 08:21 PM
DVD/CDRW Mount Help monks_point Slackware 2 08-29-2005 06:26 PM
Cannot mount DVD/CDRW Combo drive iff in fstab Iggyboo Linux - Hardware 0 12-21-2004 05:18 PM
Play DVD on CDRW/DVD Combo Drive?? halo14 Linux - Laptop and Netbook 13 09-21-2004 09:21 AM
yet another can't mount cdrw/dvd problem :/ station Slackware 4 09-14-2003 09:07 AM

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

All times are GMT -5. The time now is 02:54 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
Open Source Consulting | Domain Registration