View previous topic :: View next topic |
Author |
Message |
oldbushie n00b
Joined: 02 May 2005 Posts: 38
|
Posted: Tue Feb 27, 2007 4:21 am Post subject: SATA drive doesn't show in /dev [SOLVED] |
|
|
I recently installed the latest Gentoo and I'm finally getting everything working piece by piece.. however, sda1 doedn't show up in /dev even though I have a SATA hard drive. How do I fix this?
Last edited by oldbushie on Tue Feb 27, 2007 7:28 am; edited 1 time in total |
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Tue Feb 27, 2007 4:45 am Post subject: |
|
|
Try enabling Sata Support in Kernel, but not Sata Support as it seems, there is another option is SCSI support which enables function for your Controller, and also check Low Level Drivers in SCSI support.
You can also post you lspci | -i sata if you need some kind of a straight answer, and don't forget Gentoo Rules.
Regards _________________ wanna react ? |
|
Back to top |
|
|
oldbushie n00b
Joined: 02 May 2005 Posts: 38
|
Posted: Tue Feb 27, 2007 5:23 am Post subject: |
|
|
"lspci | grep -i sata" yields this:
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
So apparently it can see the SATA Controller, but not recognize it as sda1? Sda1 was visible from the boot cd... |
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Tue Feb 27, 2007 6:03 am Post subject: |
|
|
I will have an anwer on that if you post some more info.
Type that in you konsole and c/p the outcome here my gentomate
fdisk -l ; ls -l /dev/hd*; ls -l /dev/sd*
If kernel can see your disk your disk can be mounted else you are simply need to change you fstab.
Regards _________________ wanna react ? |
|
Back to top |
|
|
oldbushie n00b
Joined: 02 May 2005 Posts: 38
|
Posted: Tue Feb 27, 2007 6:08 am Post subject: |
|
|
fdisk -l :
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 16 128488+ 83 Linux
/dev/hda2 17 277 2096482+ 82 Linux swap / Solaris
/dev/hda3 278 9729 75923190 83 Linux
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9729 78148161 7 HPFS/NTFS
ls -l /dev/hd*:
brw-rw---- 1 root disk 3, 0 Feb 26 19:51 /dev/hda
brw-rw---- 1 root disk 3, 1 Feb 26 19:51 /dev/hda1
brw-rw---- 1 root disk 3, 2 Feb 26 19:51 /dev/hda2
brw-rw---- 1 root disk 3, 3 Feb 26 19:51 /dev/hda3
brw-rw---- 1 root disk 3, 64 Feb 26 19:51 /dev/hdb
brw-rw---- 1 root disk 3, 65 Feb 26 19:51 /dev/hdb1
brw-rw---- 1 root cdrom 22, 0 Feb 26 19:51 /dev/hdc
brw-rw---- 1 root cdrom 22, 64 Feb 26 19:51 /dev/hdd
ls -l /dev/sd*:
ls: cannot access /dev/sd*: No such file or directory
Hmm... no sign of it at all... it picks up fine on my two IDE drives and my two cd drives, already got all of those mounted properly as well. I'm going to doublecheck the cables. |
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Tue Feb 27, 2007 6:16 am Post subject: |
|
|
I think that lspci just reads the devide id, name and others.
But you need to check it from inside the kernel, that you have sata support, which you do not have.
So cd /usr/src/linux && make menuconfig
Device Drivers --->
SCSI device support --->
<*> SCSI device support
SCSI low-level drivers --->
<*> Serial ATA (SATA) support
<M> Intel PIIX/ICH SATA support
I think you're done mate, post results when ready!
Regards _________________ wanna react ? |
|
Back to top |
|
|
oldbushie n00b
Joined: 02 May 2005 Posts: 38
|
Posted: Tue Feb 27, 2007 6:25 am Post subject: |
|
|
I don't see SATA support under there, but there is another SATA (prod)... section in the current kernel, I'm looking through that now. *recompiles*
Edit: Is it safe to overwrite the current kernel? Or should I just put the recompiled kernel in a new directory? The changes I made were relatively miniscule...
Last edited by oldbushie on Tue Feb 27, 2007 6:52 am; edited 1 time in total |
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Tue Feb 27, 2007 6:39 am Post subject: |
|
|
If you first run a genkernel you can simply do
save the kernel configuration when you exit the kernel
then make && make modules_install && cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel-2.6.18-gentoo-r4
then you find the kernel-2.6.18-gentoo-r4 (that's my kernel, your's should look similar)
comment out the genkernel and initramfs lines in grub.conf
finally create a new line in grub which is kernel /boot/kernel-2.6.18-gentoo-r4 root=/dev/hda3 (don't forget to change according to you K)
you don't want to do that ?
i suppose you need to re-execute genkernel all !
never used this genkernel procedure i like the dirty one, so it might not be helpfull enough ! _________________ wanna react ? |
|
Back to top |
|
|
oldbushie n00b
Joined: 02 May 2005 Posts: 38
|
Posted: Tue Feb 27, 2007 6:54 am Post subject: |
|
|
Ah, I might as well skip genkernel then, the tutorial I was using mentioned it but it doesn't appear to be needed after all.
Edit: SATA drive works now, thanks! Now my audio card is the only major thing left to get working. |
|
Back to top |
|
|
region-g Tux's lil' helper
Joined: 04 May 2005 Posts: 122 Location: Ελλάς
|
Posted: Tue Feb 27, 2007 3:20 pm Post subject: |
|
|
lspci | grep -i audio
and follow the same steps same steps as for sata.
Before trying to enable audio why don't you run the http://www.gentoo.org/doc/en/alsa-guide.xml
Regards _________________ wanna react ? |
|
Back to top |
|
|
oldbushie n00b
Joined: 02 May 2005 Posts: 38
|
Posted: Tue Feb 27, 2007 6:23 pm Post subject: |
|
|
Yeah, I was able to get it working via another tutorial earlier today, apparently I wasn't setting the volume levels and the muted channel correctly (sb live 24-bit chip has that "front panel" functionality which tries to route to the front panel if unmuted). |
|
Back to top |
|
|
|