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 - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-02-2007, 05:25 PM   #1
Mikester
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Can't Find Secondary HDD


I'm Stumped. Here's my setup:
Primary Master: 80GB
Primary Slave: n/a
Secondary Master: 20GB
Secondary Slave: CDROM

The primary 80GB drive has:
1. A Linux Swap partiton of something like 650 MBs
2. A Single ext3 partiton using the rest of the drive (mounted as '/")

The secondary 20GB Drive has:
1. A bootable primary fat32 Win98 Partiton using 2/3 of the drive
2. An extended partiton containing a fat32 partiton using the remaining space.

I am using GRUB as the bootloader, and can boot into either OS without problems. What I'm trying to do is share the smaller partiton on the secondary hdd in both os'es. I've done this before with no problems when I had both os'es on a single hdd. The smaller partiton is avalible for use as drive "D:" when I boot into windows, but in linux I cant find anything that even indicates that the second drive or any of it's partitions even exist.

I know i missed something. But i'm too tired and blinded by aggravation to see what it is.

1.) Output from cat /proc/partitions:
major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

22 64 51132 hdd 0 0 0 0 0 0 0 0 -11 1811540 23023172
3 0 78150744 hda 4904 12498 139162 28420 3672 4673 66872 27360 -1 1804420 41182442
3 1 690763 hda1 3 0 24 30 0 0 0 0 0 30 30
3 2 5606685 hda2 4899 12492 139122 28380 3672 4673 66872 27360 0 24730 55740

2.) Output from fdisk -l /dev/hda:
Disk /dev/hda: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 86 690763+ 82 Linux swap
/dev/hda2 87 784 5606685 83 Linux

3.) Output from fdisk -l /dev/hdc:
--NOTHING--

4.) Partital output from dmesg:

Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 21
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda: DMA, hdb: pio
ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc: DMA, hdd: DMA
hda: WDC WD800BB-32CAA0, ATA DISK drive
hdc: WDC WD200EB-11CPF0, ATA DISK drive
hdd: ATAPI CD-ROM DRIVE 24X MAXIMUM, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c035e6a4, I/O limit 4095Mb (mask 0xffffffff)
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, UDMA(33)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
.
.
.
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,2), internal journal
hdd: ATAPI 20X CD-ROM drive, 120kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
ide-floppy driver 0.99.newide
hdc: driver not present
hdd: DMA disabled
....


7.) Output from mount -v -t vfat /dev/hdc5 /Storage:
mount: /dev/hdc5 is not a valid block device


6.) my /etc/fstab file
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda1 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

7.) my /etc/mtab file
/dev/hda2 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0

Any help will be greatly appreciated...i'm going to bed.
 
Old 09-02-2007, 06:09 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi Mikester, Welcome to lq. Are the jumpers set properly on the drive and cdrom?
Good luck. ;-)

By any chance do you have scsi emulation set up for the drive?
Good luck. ;-)

Last edited by Peacedog; 09-02-2007 at 06:23 PM. Reason: Had a new idea!
 
Old 09-02-2007, 06:37 PM   #3
Mikester
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Peacedog;
Quote:
Originally Posted by Peacedog View Post
Are the jumpers set properly on the drive and cdrom?
Yes.

Quote:
Originally Posted by Peacedog View Post
By any chance do you have scsi emulation set up for the drive?
Not that I'm aware of. No SCSI devices are present in this system - but based on this output from dmesg I would guess some scsi emulation is being used on the cdrom drive.

Code:
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices

Last edited by Mikester; 09-02-2007 at 06:41 PM.
 
Old 09-03-2007, 01:16 AM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
The following lines seem odd:
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
ide-floppy driver 0.99.newide
hdc: driver not present
Not that scsi emulation is being used, but that it's complaining about the driver for hdc not being found. It would appear to me that scsi emulation is being attempted for the drive, but SCSI disk support isn't enabled in the kernel. Why it wouldn't just use the IDE driver is beyond me.
 
Old 09-03-2007, 02:23 AM   #5
Mikester
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Solved!

Yeah, I thought that was odd looking too.
So I thought, ok a scsi emulating driver is being loaded for the cdrom drive on the secondary ide channel..mebbe it's screwing up the hdd as well. SCSI emulating drivers are popular (even under windows) for all kinds of devices - most notably cdrom drives and scanners - so I wasn't alarmed by this.
I moved the hdd from the Secondary Master position to the Primary Slave and made the cdrom Secondary Master, and rebooted.
Behold..everything worked. But, why??? And Why did I have to go through hell for this?? Surely something as common as a scsi emulating driver wouldnt cripple a standard ide drive, well not unless it was specifically set to use the same address as the hard drive.


Doh!


Then it hit me. I added the second hdd after I had the linux system running. The cdrom was originally in the secondary master position where I placed the hdd. And good old GRUB never let me forget it.
my /etc/grub.conf contains the following line:

Code:
kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda2 hdc=ide-scsi
/dev/hdc of course being where I had placed the hard drive. It is now /dev/hdb and I have successfully mounted /dev/hdb2 as my /Storage directory.

[groan]I'm going back to bed now. After I drink this beer.

Last edited by Mikester; 09-03-2007 at 02:27 AM.
 
  


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
secondary hdd bytez Linux - Software 6 05-22-2007 06:58 PM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
Mount secondary HDD cdc5205 Linux - Newbie 11 01-25-2006 09:47 PM
Mounting Secondary HDD nairnie Linux - Newbie 7 11-17-2003 07:00 AM
w permission on secondary hdd retiem Linux - General 2 07-21-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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