Linux SATA problems

Discussion in 'Software' started by Nedsbeds, 19 Nov 2006.

  1. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    Hi guys,

    I am using UBUNTU on a file server at home

    I am having trouble seeing/formatting/mounting some new SATA drives.
    I am using a Silicon images sil 3512 SATA pci card and have two 400GB samsung drives attached to it.

    I can see the pci card in the device manager and it has two SCSI host adaptors listed but I cannot seem to find any reference to the actual drives. (gparted only shows the two ide drives)
    The drives appear in the sata cards bios.

    I am not attempting to set these up in a raid array, and they have not been formatted yet.

    FDISK only shows the two drives already there.

    I have asked in the ubuntu forums too, but they are extremely busy and threads tend to disappear within minutes!

    Thanks in advance for any help

    Nick
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    What happens when you do a "cfdisk /dev/sda"?

    If you have udev installed, do a "ls /dev/disk/by-id", does it list it there?

    If not, you will need to search the module for the SATA controller, or compile it in the kernel. (probably the former, since you use ubuntu)
     
  3. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    Hi glider,

    cfdisk tells me "fatal error" (fdisk simply says it cannot be found)
    and they are not listed in /dev/disk/by-id

    When you say "search the module", what exactly do you mean?

    BTW, The PCI card is recognised in the device manager.
     
    Last edited: 19 Nov 2006
  4. trigger

    trigger Procrastinator

    Joined:
    22 Mar 2004
    Posts:
    1,097
    Likes Received:
    30
    As Glider is pointing to, it may be that the drivers aren't in your kernel. To check do a quick:
    Code:
    $ lsmod | grep sil3512
    If that doesn't show them listed then chances are you will need to recompile your kernel and include the drivers.
     
  5. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    ahha!

    Having guided my dad through using putty, ssh and grub, (including having to tell him the pc needed to be on when he was trying to log in :p)
    sil3512 is not listed in the list of modules.

    So, it looks like I do indeed need to recompile the kernel :S
    I must say, it sounds rather daunting. I will also have to talk my dad through doing it over the phone (I am in cardiff and the machine in worcester, and i didnt have chance to get ssh working properly last time i was there)

    So, I have done a lot of things on linux, but not recompiled the kernel.
    Could you possibly guide me?

    Thanks.

    Nick
     
  6. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Don't be affraid. I do it manual every time a new kernel comes out (about once a month)...

    Not really sure how it's done on Ubuntu, but on my Gentoo it's just:
    (as root, of course)
    Code:
    cd /usr/src/linux
    make menuconfig
    
    [Config kernel]
    
    make && make modules install
     
  7. koola

    koola Minimodder

    Joined:
    11 Jul 2004
    Posts:
    2,401
    Likes Received:
    10
  8. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    Thanks for that koola. Looks nice and straightforward.
    I think I will have to deffinately do this myself though. So it will be three weeks time before I get a chance. In the mean time I shall keep reading up on things, more specifically patching the sil3512 driver into the kernel.

    Nick
     
  9. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    Ok, I'm about to have a go at this.

    At what stage do i need to worry about the sil3512 drivers?
    Is it at the stage where patches are applied, or will it be available when i run the kernel configuration tool?

    Thanks

    EDIT:
    Well, I think I figured it out. The latest kernel is compiling as I type :)
    Next job is to get samba working as a domain controller.
    Honestly, I thought this was meant to be a holiday!

    Shall report back with progress....
     
    Last edited: 16 Dec 2006
  10. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    Well, the recompilation went fine, but it hasn't solved the problem.

    I am going to look at updating the bios on the pci card, but am not really that hopeful.

    Any more suggestions guys? Really need to get this working now!

    Thanks


    Nick
     
Tags:

Share This Page