View previous topic :: View next topic |
Author |
Message |
hexa Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Aug 2005 Posts: 163
|
Posted: Wed Apr 19, 2006 1:08 pm Post subject: Added another sata drive and can't see it. SOLVED |
|
|
I already have working OS on first sata disk.
I just installed another disk on the other sata port.
This is my dmesg:
--
ata1: SATA max UDMA/133 cmd 0xF80 ctl 0xF02 bmdma 0xD880 irq 177
ata2: SATA max UDMA/133 cmd 0xE80 ctl 0xE02 bmdma 0xD888 irq 177
ata1: dev 0 cfg 49:2f00 82:746b 83:7f61 84:4023 85:7469 86:3c41 87:4023 88:007f
ata1: dev 0 ATA-7, max UDMA/133, 625142448 sectors: LBA48
ata1: dev 0 configured for UDMA/133
scsi0 : sata_uli
scsi1 : sata_uli
Vendor: ATA Model: WDC WD3200KS-00P Rev: 21.0
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
--
I can see the disk in bios and by dmesg it's also seen here:
--
ata2: SATA max UDMA/133 cmd 0xE80 ctl 0xE02 bmdma 0xD888 irq 177
--
but not anywhere else.
If i try cfdisk /dev/sda works (my old drive)
but if i try cfdisk /dev/sdb it says:
FATAL ERROR: Cannot open disk drive
Any sudgestions on how to get it working under Linux?
Tnx.
Last edited by hexa on Tue Apr 25, 2006 11:11 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JustJoe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Jul 2005 Posts: 80
|
Posted: Wed Apr 19, 2006 1:11 pm Post subject: |
|
|
What does 'fdisk -l' show ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hexa Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Aug 2005 Posts: 163
|
Posted: Wed Apr 19, 2006 1:46 pm Post subject: |
|
|
same as cfdisk
levinja etc # fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 365 2931831 82 Linux swap / Solaris
/dev/sda2 366 2432 16603177+ 83 Linux
/dev/sda3 2433 38913 293033632+ 8e Linux LVM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JustJoe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Jul 2005 Posts: 80
|
Posted: Wed Apr 19, 2006 1:59 pm Post subject: Re: Added another sata drive and can't see it. |
|
|
hexa wrote: | I can see the disk in bios and by dmesg it's also seen here:
--
ata2: SATA max UDMA/133 cmd 0xE80 ctl 0xE02 bmdma 0xD888 irq 177
--
|
The above line does not indicate a hard drive present. It states the available channel, not the drive.
This is also to be seen by the 'SCSI device sda' in your dmesg. There is no reference to sdb.
Does 'dmesg|grep sdb' show any output ?
Also, i'm curious if the drive is to be found when you boot your system from a live-cd ?
If not, what happens when you swap sda for sdb (take out sda and put sdb at the first controller, making it sda) ? Does it show then as /dev/sda ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hexa Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Aug 2005 Posts: 163
|
Posted: Wed Apr 19, 2006 2:24 pm Post subject: |
|
|
dmesg|grep sdb shows no output.
So i guess i concluded wrong and haven't installed the hard drive properly into the PC?
I wonder why i can see it in bios then?
I'm going to try using gentoo live CD althou the result should be the same.
Is there anything else i need to do after i plug a news sata disk in (like setting the jumpers on the disk)? I didn't think that anything has to be set since on SATA ther in only one device per port. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JustJoe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Jul 2005 Posts: 80
|
Posted: Wed Apr 19, 2006 5:56 pm Post subject: |
|
|
hexa wrote: | dmesg|grep sdb shows no output. |
I realise now the drive might be sdc or sdd too. Could you grep your dmesg for SCSI and post the output here, just to make sure.
Quote: | I'm going to try using gentoo live CD althou the result should be the same. |
Ok, also try swapping the drives in case the live cd does not see the new drive.
Quote: | Is there anything else i need to do after i plug a news sata disk in (like setting the jumpers on the disk)? I didn't think that anything has to be set since on SATA ther in only one device per port. |
AFAIK there are no master/slave jumpers on SATA drives. Should be plug & play. ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hexa Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Aug 2005 Posts: 163
|
Posted: Thu Apr 20, 2006 11:25 am Post subject: some more strnage stuff |
|
|
I booted of live cd again and there I can see sdb!!! I can even open it with cfdisk. So it means it's installed O.K.
But when i boot to my install i still can see only sda.
--
levinja ~ # dmesg | grep scsi
scsi0 : sata_uli
scsi1 : sata_uli
sd 0:0:0:0: Attached scsi disk sda
--
cfidsk /dev/sdc .. /dev/sdx doesn't show anything too. I tryed that beforore.
Mybe i should make a device sdb with mknod or something? i tryed that but noticed it's already created.
--
levinja dev # ls /dev/sdb -la
brw-rw---- 1 root disk 8, 16 Feb 9 00:13 /dev/sdb
levinja dev # fdisk /dev/sdb
Unable to open /dev/sdb
--
Since both sata ports are on my motherboard, both use the same chipset and if one disk works both should too.
I'm running out of ideas. What else could i do? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hexa Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Aug 2005 Posts: 163
|
Posted: Tue Apr 25, 2006 11:10 am Post subject: solved |
|
|
I solved the problem by _enabling_ sata raid in bios and now I see two sata disks in my OS.
This is tatally unbelivable but it's how it works. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|