Koozali.org: home of the SME Server

can't mount new hdd

zipp

can't mount new hdd
« on: October 29, 2004, 03:08:40 PM »
I have setup in my server 6.01 a new harddrive.
On the second IDE = /dev/hdc.
It looks fine in BIOS but when I start the server and,
fdisk /dev/hdc then the reply is "Unable to open /dev/hdc" What can be wrong?

BobWilliams

can't mount new hdd
« Reply #1 on: November 02, 2004, 08:11:06 PM »
How is the drive selected? Master or Cable select? It needs to be selected as either Master or slave not cable select. Does it show up in pico /etc/fstab?

Bob...

zipp

can't mount new hdd
« Reply #2 on: November 03, 2004, 04:35:58 PM »
In /var/log/messeges I can find something like

Nov  1 13:49:13 office kernel: Kernel command line: auto BOOT_IMAGE=SMEServer-up ro root=303 BOOT_FILE=/boot/vmlinuz-2.4.20-18.7 hdc=ide-scsi
Nov  1 13:49:13 office kernel: ide_setup: hdc=ide-scsi

1 13:49:13 office kernel: hda: Maxtor 6Y160P0, ATA DISK drive
Nov  1 13:49:13 office kernel: blk: queue c0378440, I/O limit 4095Mb (mask 0xffffffff)
Nov  1 13:49:13 office kernel: hdc: ST3160023A, ATA DISK drive
Nov  1 13:49:13 office kernel: hdd: ST3160023A, ATA DISK drive
Nov  1 13:49:13 office kernel: blk: queue c03788a4, I/O limit 4095Mb (mask 0xffffffff)
Nov  1 13:49:13 office kernel: blk: queue c03789e8, I/O limit 4095Mb (mask 0xffffffff)
Nov  1 13:49:13 office kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Nov  1 13:49:13 office kernel: ide1 at 0x170-0x177,0x376 on irq 15
Nov  1 13:49:13 office kernel: hda: attached ide-disk driver.
Nov  1 13:49:13 office kernel: hda: host protected area => 1
Nov  1 13:49:13 office kernel: hda: 320173056 sectors (163929 MB) w/7936KiB Cache, CHS=19929/255/63, UDMA(100)
Nov  1 13:49:13 office kernel: hdd: attached ide-disk driver.
Nov  1 13:49:13 office kernel: hdd: host protected area => 1
Nov  1 13:49:13 office kernel: hdd: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63, UDMA(100)
Nov  1 13:49:13 office kernel: ide-floppy driver 0.99.newide
Nov  1 13:49:13 office kernel: Partition check:
Nov  1 13:49:13 office kernel:  hda: hda1 hda2 hda3
Nov  1 13:49:13 office kernel:  hdc:end_request: I/O error, dev 16:00 (hdc), sector 0
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 2
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 4
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 6
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 0
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 2
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 4
Nov  1 13:49:13 office kernel: end_request: I/O error, dev 16:00 (hdc), sector 6
Nov  1 13:49:13 office kernel:  unable to read partition table

looks like hdc is busy?

zipp

can't mount new hdd
« Reply #3 on: November 03, 2004, 04:37:22 PM »
I have tryed to all settings cables..
cable select, and master/slave both the same. BIOS detect is fine but not the server

BobWilliams

can't mount new hdd
« Reply #4 on: November 03, 2004, 04:42:17 PM »
It looks like the drive you are trying to install has surface damage. I would if you can, attach it to a Windows PC and have Windows create a partition with fdisk, format it and fix the bad sectors if possible.

Bob...

BobWilliams

can't mount new hdd
« Reply #5 on: November 03, 2004, 04:46:06 PM »
This is a 160GB hard drive. Maybe thats the problem. I haven't tried to install that large a drive in SME 6.

Bob...

zipp

can't mount new hdd
« Reply #6 on: November 03, 2004, 06:47:42 PM »
I have now 2 160 hardrive, /dev/hda and /dev/hdb
The drives are new I have also tried to setup in other pc with windows. And the drives works fine there. So still I can't use /dev/hdc but all others are fine.

BobWilliams

can't mount new hdd
« Reply #7 on: November 03, 2004, 07:00:11 PM »
Could you try to see if one of the drives hda or hdb will work in the hdc position? Have you tried using a different cable for the IDE secondary drive? Is the BIOS setting for type of drive "MODE"(LBA,Large, Auto, Normal)set to Normal? Normal is preferred.

Bob...

zipp

can't mount new hdd
« Reply #8 on: November 03, 2004, 07:00:21 PM »
I could find this in, /boot/grub/grun.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/hda3
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title SME Server (2.4.20-18.7smp)
   root (hd0,0)
   kernel /vmlinuz-2.4.20-18.7smp ro root=/dev/hda3 hdc=ide-scsi
   initrd /initrd-2.4.20-18.7smp.img
title SME Server-up (2.4.20-18.7)
   root (hd0,0)
   kernel /vmlinuz-2.4.20-18.7 ro root=/dev/hda3 hdc=ide-scsi
   initrd /initrd-2.4.20-18.7.img

There it tells hdc=ide-scsi....
Can this be a problem?

zipp

can't mount new hdd
« Reply #9 on: November 08, 2004, 05:50:07 PM »
I solved the problem.
This is my lilo.conf

linear
image=/boot/vmlinuz-2.4.20-18.7smp
   label=SMEServer-smp
   initrd=/boot/initrd-2.4.20-18.7smp.img
   read-only
   root=/dev/hda3
   append="hdc=ide-scsi"
image=/boot/vmlinuz-2.4.20-18.7
   label=SMEServer-up
   initrd=/boot/initrd-2.4.20-18.7.img
   read-only
   root=/dev/hda3
   append="hdc=ide-scsi"

I removed the last line: append="hdc=ide-scsi"

BobWilliams

can't mount new hdd
« Reply #10 on: November 08, 2004, 06:42:09 PM »
Glad you got it working. I'm not sure you solved the actual problem as that same hdx=ide-scsi statement provides SCSI host adapter emulation for IDE ATAPI devices for the other drives on your server and they work OK. Have a look at this How-TO and see if it shed's any light on the actual problem.
Code: [Select]
http://www.info-techs.com/linux_ide_cd.shtml

Bob...