LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   sata under linux-2.4.22(pached) problem (https://www.linuxquestions.org/questions/linux-hardware-18/sata-under-linux-2-4-22-pached-problem-134343/)

vlady 01-13-2004 10:04 AM

sata under linux-2.4.22(pached) problem
 
Hello,
I have main board Assus P4C800 Deluxe with two sata slots. I was looking for a way to make them work with my linux (RedHat 9) and regarding the info I found I downoladed the 2.4.22 kenel and I applyed the patch-2.4.22-ac4 patch to it. Compiling the so pached kernel I hound the SATA options under "SCSI support->SCSI low level drivers" section where I checked SATA support, Intel PIIX/ICH and VIA SATA. This kernel does detects the sata disks but detects them as SCISI. Later I am able to partition the disks with fdisk and it detects at least the disk's size corectly (122G).
The PROBLEM is that when I try to make a new file system on my partitions somthing goes wrong and fsck.ext3 on /dev/sda1(partition wich includes the entire disk) crates me a file system of 1.4G instead of 122G for example.

Thanks for any help
Vlady

from dmesg:
................
ata1: SATA max UDMA/133 cmd 0xEFE0 ctl 0xEFAE bmdma 0xEF60 irq 5
ata2: SATA max UDMA/133 cmd 0xEFA0 ctl 0xEFAA bmdma 0xEF68 irq 5
...............
scsi0 : ata_piix
scsi1 : ata_piix
Vendor: ATA Model: Maxtor 6Y120M0 Rev: 0.71
Type: Direct-Access ANSI SCSI revision: 05
Vendor: ATA Model: Maxtor 6Y120M0 Rev: 0.71
Type: Direct-Access ANSI SCSI revision: 05
................
SCSI device sda: 240121728 512-byte hdwr sectors (122942 MB)
sda: sda1
SCSI device sdb: 240121728 512-byte hdwr sectors (122942 MB)
sdb: sdb1
..............

hw-tph 01-13-2004 06:31 PM

Quote:

(...)fsck.ext3 on /dev/sda1(partition wich includes the entire disk) crates me a file system of 1.4G instead of 122G for example.
fsck is used for checking the file system. If there is no filesystem there it will probably freak out - I have no idea, never tried. Use mke2fs -j /dev/sda1 to create an ext3 file system instead.


Håkan

vlady 01-14-2004 08:25 AM

Thanks for the sugestion. Sorry for that, but when I wrote fsck.ext3 I ment mkfs.ext3. Now I installed kernel-2.6.1 and my problem is gone . Thanks again.


All times are GMT -5. The time now is 08:07 AM.