LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-06-2004, 08:50 PM   #1
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Rep: Reputation: 15
Unhappy Slackware not finding drives


I just got slackware9.1 installed and running. I Formated my hard drive as follows:
1g swap
4g root (ext2)
35g for programs/files (ext2)

I also have a floppy, DVD-rom and a CD-RW.

however I recently noticed that only my DVD-rom, floppy, and root partistion are seen by slackware.

can anyone help me get my drives back?

Last edited by Teckno; 06-06-2004 at 09:52 PM.
 
Old 06-06-2004, 08:54 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
Post the output of
bash-2.05b# fdisk -l
and
bash-2.05b$ df -h
and
bash-2.05b$ cat /etc/fstab

To make it where we can read it, put [_code_] without the underscores before each section of output, and [_/code_] without the underscores after each section of output.
 
Old 06-06-2004, 09:51 PM   #3
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
Code:
Disk /dev/hda: 40.9 GB, 40981118976 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         124      995998+  82  Linux swap
/dev/hda2   *         125         610     3903795   83  Linux
/dev/hda3             611        4982    35118090   83  Linux

Disk /dev/hdb: 8622 MB, 8622931968 bytes
255 heads, 63 sectors/track, 1048 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        1048     8418028+   7  HPFS/NTFS
Now I see my other two partistions . btw, no need to worry about hdb1. im gonna install winXp on that.

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             3.8G  2.7G  1.1G  72% /
looks like im gonna need to move some stuff to hda3

Code:
/dev/hda2        /                reiserfs    defaults         1   1
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
Hope this helps
 
Old 06-06-2004, 10:14 PM   #4
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
When you installed you apparently didn't add the swap partition and /home partition during the setting of the mount points. Otherwise they would be listed in your /etc/fstab.
 
Old 06-06-2004, 10:48 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
What do you mean when you say:
Quote:
however I recently noticed that only my DVD-rom, floppy, and root partistion are seen by slackware
Where are you "looking" for this to occur?

When you created 35g for programs/files (ext2) did you make a mount point for it? It doesn't look like you have. The Slackware system will not know that you want to place programs/files on /dev/hda3 unless you tell it how to go about doing that. The system needs to know if you want to use that as your /home partition, or leave /home under / and use that for data storage. And your swap partition isn't in /etc/fstab so you didn't add it when installing Slack.

When you said
Quote:
btw, no need to worry about hdb1. im gonna install winXp on that
that produced a red flag. When you install XP, it's going to write over your Slackware LiLO, and you'll need to reinstall LiLO. Not a big problem, but it's recommended to always install Windoze first, Linux second.

You say
Quote:
I also have a floppy, DVD-rom and a CD-RW
but we don't see the CD-RW drive. Actually, we should get a proper layout of your system for you before you go any further. Do you know what drives are in your computer and where they're located? For instance:

/dev/hda = master drive on primary controller
/dev/hdb = slave drive on primary controller
/dev/hdc = master drive on secondary controller
/dev/hdd = slave drive on seconday controller

For that CD-RW drive, is it an IDE ATAPI or SCSI drive? It will need SCSI emulation, and all SCSI drives are listed:

/dev/scd0 = first SCSI drive - they're numbered, with the first drive starting at 0

If you're not sure about your drives, issue
bash-2.05b# cdrecord -scanbus
and post that output like you did before. That will tell us where your CD-RW is located.

And issue
bash-2.05b$ dmesg | less
and look for lines like this
Code:
hda: Maxtor 6Y060L0, ATA DISK drive
hdb: SONY CD-RW CRX230E, ATAPI CD/DVD-ROM drive
hdc: Maxtor 6Y060L0, ATA DISK drive
hdd: SONY DVD RW DRU-500A, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver
hdb: attached ide-scsi driver
hdc: attached ide-disk driver
hdd: attached ide-scsi driver
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: SONY      Model: CD-RW  CRX230E    Rev: QYS1
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: SONY      Model: DVD RW DRU-500A   Rev: 2.0c
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
so we can determine what type of drives you have, how they're attached, and where they're located.
 
Old 06-06-2004, 10:55 PM   #6
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
When you installed you apparently didn't add the swap partition and /home partition during the setting of the mount points. Otherwise they would be listed in your /etc/fstab.
Is there a way to add them?

I really dont want to restall.


Last edited by Teckno; 06-06-2004 at 10:58 PM.
 
Old 06-06-2004, 11:12 PM   #7
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
You are going to have to do some monkeying around. Here is a link to help:
http://www.poulpetersen.dk/linux/ukadddsk.htm
Of course you won't have to do the start of it as you have already done the partitioning.
Here is my swap list in /etc/fstab
/dev/hdb2 swap swap defaults 0 0

The how to gives how to enter /home in fstab. If swap still doesn't work you may have to mkswap and swapon. man pages for both of them.
 
Old 06-06-2004, 11:18 PM   #8
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
there all Ide.
there hooked up as follows
primary master= 40g HD (linux)
primary slave = 8g HD (soon to be windows)
secondary master = DVD-rom
secondary slave = CD-RW

im pretty sure thats how there hooked up. (hardware I can do )



Quote:
When you said

quote:btw, no need to worry about hdb1. im gonna install winXp on that


that produced a red flag. When you install XP, it's going to write over your Slackware LiLO, and you'll need to reinstall LiLO. Not a big problem, but it's recommended to always install Windoze first, Linux second.
I could unhook my main (linux) hd when I install windows then pulg it back in after the install. that way it should leave the linux MBR alone. well that work?

output from cdrecord -scanbus:
Code:
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
I dont know what this means but it doesent look good

output from dmesg | less:
Code:
hda: Maxtor 54098U8, ATA DISK drive
hdb: ST38410A, ATA DISK drive
blk: queue c03a9d80, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03a9ebc, I/O limit 4095Mb (mask 0xffffffff)
hdc: TOSHIBA DVD-ROM SD-M1402, ATAPI CD/DVD-ROM drive
hdd: CW038D ATAPI CD-R/RW, ATAPI CD/DVD-ROM drive
hde: no response (status = 0xfe)
hdg: no response (status = 0xfe)
there was a ton more but this seemed the most realivent
 
Old 06-06-2004, 11:34 PM   #9
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ringwraith
You are going to have to do some monkeying around. Here is a link to help:
http://www.poulpetersen.dk/linux/ukadddsk.htm
Of course you won't have to do the start of it as you have already done the partitioning.
Here is my swap list in /etc/fstab
/dev/hdb2 swap swap defaults 0 0

The how to gives how to enter /home in fstab. If swap still doesn't work you may have to mkswap and swapon. man pages for both of them.
so basicly all I have to do I add the correct lines to my fstab?
 
Old 06-06-2004, 11:39 PM   #10
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
Read the link. Right now /home is on your / partition. You have to change its name. Then add the line to your /etc/fstab, put /home on it then move the backed up info to the new /home.
 
Old 06-06-2004, 11:48 PM   #11
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
all right, but what about my swap and cd-rw?
 
Old 06-06-2004, 11:54 PM   #12
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
I gave you the line to put in /etc/fstab for swap earlier. For the cdrw, Chinaman was helping you there. Here is the line to add to your /etc/lilo.conf
append = 'hdd=ide-scsi'
then add this line to your /etc/fstab
/dev/sr1 /mnt/cdrom iso9660 noauto,user,rw 0 0

Hope that helps
 
Old 06-07-2004, 12:01 AM   #13
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
thank you so much
sorry for making you repete yourself, its getting late and ive been working on this all day. Just wanted to make sure.
 
Old 06-07-2004, 12:04 AM   #14
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
No problem. Remember be patient. It's all part of the learning process. You will get it if you keep at it.
 
Old 06-07-2004, 03:43 PM   #15
Teckno
Member
 
Registered: May 2004
Location: Why do you want to know?
Posts: 82

Original Poster
Rep: Reputation: 15
ok, I got myy swap and /home worked out, now I just need to get my CD-rw working.

i also remembered that I do need to acess hdb. I got so files on there I need
 
  


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
Slackware 10.2 Problems: Display Server/SAMBA/Lisa/Finding the internet Steven_Shelton Slackware 7 11-22-2005 01:13 AM
Slackware and USB drives? carlosinfl Slackware 2 06-12-2005 05:48 PM
Trouble finding cd-drives after new kernel TaNeK Linux - Hardware 2 01-11-2005 02:30 AM
CD Drives not working in Slackware 9.1 jon1591 Linux - Hardware 10 01-01-2005 12:07 PM
finding slackware vicente Linux - Distributions 3 08-11-2001 04:20 PM

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

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