Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird hardisk problem...

Status
Not open for further replies.

webfuture

MIS
Jan 17, 2003
65
CA
I have a server with a raid 5 attached where I boot from and another SATA attached to the motherboard that I want mounted to /backup...

This is fdisk -l
Code:
Disk /dev/sda: 319.9 GB, 319977160704 bytes
255 heads, 63 sectors/track, 38901 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         131     1052226   82  Linux swap
/dev/sda2   *         132       38899   311403960   83  Linux

Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       36474   292977373+  83  Linux

and fstab
Code:
/dev/sda2            /                    reiserfs   acl,user_xattr        1 1
/dev/sda1            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/cdrecorder      /media/cdrecorder    subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0             /media/floppy        subfs      fs=floppyfss,procuid,nodev,nosuid,sync 0 0
#/dev/sdb1            /backup              reiserfs   acl,user_xattr        1 2

The problem is when I uncomment the line in fstab where I have /dev/sdb1 (my SATA HD). The system won't boot because it won't find the drive and can't fsck... When I go into maintenance mode and do fdisk -l, the drive is not there.

When I comment that line and boot, everthing is ok, fdisk -l show the drive and I can mount manually.

This is df when I mount manually
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2            311394396   1479112 309915284   1% /
tmpfs                  4152772         8   4152764   1% /dev/shm
/dev/sdb1            292968396     32840 292935556   1% /backup

So I cannot mount that drive at boot time !!! anyone has a clue...

Thanks
 
I'm not sure, but could it be that the drive is set up as a primary bootable drive? Maybe the jumpers on the drive are set up as a primary instead of slave?

Just a guess...
 
In the BIOS, the boot drive is the raid array and that works fine... This is an SATA drive connected to the motherboard, not sure what I can control there.

Thanks anyway
 
looks like it is a scsi device so check the scsi ID's make sure they are not the same
 
This is a SATA drive, probably detected has SCSI by linux for some reason... Is there a way to change the SCSI id on an SATA drive ?

Like I said, I have a raid controler detected has /dev/sda and an SATA drive detected has /dev/sdb.

I can manually mount /dev/sdb but not from fstab at boot time.

Anymore clues?

Thanks

 
Found the problem...

This module ata_piix was not loaded at boot time.

Now everything is OK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top