LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware not finding drives (https://www.linuxquestions.org/questions/slackware-14/slackware-not-finding-drives-190494/)

Teckno 06-06-2004 08:50 PM

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?

Bruce Hill 06-06-2004 08:54 PM

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.

Teckno 06-06-2004 09:51 PM

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 :)

ringwraith 06-06-2004 10:14 PM

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.

Bruce Hill 06-06-2004 10:48 PM

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.

Teckno 06-06-2004 10:55 PM

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.


ringwraith 06-06-2004 11:12 PM

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.

Teckno 06-06-2004 11:18 PM

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

Teckno 06-06-2004 11:34 PM

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?

ringwraith 06-06-2004 11:39 PM

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.

Teckno 06-06-2004 11:48 PM

all right, but what about my swap and cd-rw?

ringwraith 06-06-2004 11:54 PM

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

Teckno 06-07-2004 12:01 AM

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.

ringwraith 06-07-2004 12:04 AM

No problem. Remember be patient. It's all part of the learning process. You will get it if you keep at it.

Teckno 06-07-2004 03:43 PM

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


All times are GMT -5. The time now is 05:08 AM.