Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdparm & sata
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt
View previous topic :: View next topic  
Author Message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Wed Sep 27, 2006 1:21 pm    Post subject: hdparm & sata Reply with quote

Witam. Borykam sie z takim problemem, otoz zakupilem sobie dysk Maxtor na SATA a mialem wczesniej identyczny dysk tylko ze na ATA 133. Po zbootowaniu systemu z LiveCD Gentoo widzialo owy dysk SATA jako /dev/sda, ale po przeniesieniu systemu na dysk SATA (mialem problemy z grubem ale jakos to przeskoczylem) i po restarcie system go widzi jako /dev/hda a hdparm nie chce mi wlaczyc obslugi DMA :( . W jaju wlaczylem obslyge SATA ale podejrzewam ze gdzies sie pomylilem, przeszukalem google, forum ale nic nie znalazlem co by rozwiazalo moj problem. Daje info odnosnie sprzetu:
Code:

# lspci
00:00.0 Host bridge: Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 945G/GZ/P/PL Express PCI Express Root Port (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200 LE] (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
04:00.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 06)
04:00.1 Input device controller: Creative Labs SB Live! Game Port (rev 06)
04:02.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)


a gdy chce mu wlaczyc obsluge DMA to pojawia mi sie takie cos:
Code:
# hdparm -c1 -d1 -u1 /dev/hda

/dev/hda:
 setting 32-bit IO_support flag to 1
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)

a wynik tego dzialania
Code:
 # hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   4580 MB in  2.00 seconds = 2289.71 MB/sec
 Timing buffered disk reads:   24 MB in  3.22 seconds =   7.45 MB/sec
jest conajmniej mizerny.
Prosze o pomoc !
_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
milu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 1122
Location: Poland, Konstancin-Jeziorna

PostPosted: Wed Sep 27, 2006 1:39 pm    Post subject: Reply with quote

Konfigurację jądra jeszcze jakbyś pokazał.
_________________
Pozdrawiam,
Milu
------------------------------------
Registered Linux User: #246079

Zanim zadasz pytanie przeczytaj to dokładnie!!
Back to top
View user's profile Send private message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Wed Sep 27, 2006 1:56 pm    Post subject: Reply with quote

http://maslysz.com/~kurak/config
_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
msch
Guru
Guru


Joined: 14 Mar 2006
Posts: 385
Location: ms@wind ~ $

PostPosted: Wed Sep 27, 2006 2:17 pm    Post subject: Reply with quote

hdparm nie wlacza dma dla dyskow stata
=edit=
a fstab-a zmieniles?
Back to top
View user's profile Send private message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Wed Sep 27, 2006 2:20 pm    Post subject: Reply with quote

wlasnie ze jest troche problem, bo
Code:
# fdisk -l

Disk /dev/hda: 300.0 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1245    10000431   83  Linux
/dev/hda2            1246        1494     2000092+  82  Linux swap / Solaris
/dev/hda3            1495        2739    10000462+  83  Linux
/dev/hda4            2740       36483   271048680   83  Linux

on nie widzi dysku jakos sda, i nie wiem co jest grane, na laptopie mam sata i widzi mi jako sda
_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
milu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 1122
Location: Poland, Konstancin-Jeziorna

PostPosted: Wed Sep 27, 2006 2:32 pm    Post subject: Reply with quote

Wyłącz opcję:
Code:
[*]     Support for SATA (deprecated; conflicts with libata SATA driver)
z ATA/ATAPI/MFM/RLL support
A zostaw zaznaczone w SCSI low-level drivers
Code:
<*> Serial ATA (SATA) support

i wtedy powinien widzieć dysk jako sda.
_________________
Pozdrawiam,
Milu
------------------------------------
Registered Linux User: #246079

Zanim zadasz pytanie przeczytaj to dokładnie!!
Back to top
View user's profile Send private message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Wed Sep 27, 2006 2:53 pm    Post subject: Reply with quote

no i chyba zobaczyl, ale teraz jest Kernel panic
Code:
Using IPI Shourtcut mode
VFS: Cannot open root device "hda1" or unknown-block(0,0)
Please append a correct "root=" boot option
Time: tsc clocksource has been installed.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(0,0)

w fstab-ie zmienilem na /dev/sda*, wiec to juz chyba grub, tylko co dalej?
_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
milu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 1122
Location: Poland, Konstancin-Jeziorna

PostPosted: Wed Sep 27, 2006 3:00 pm    Post subject: Reply with quote

W grubie zmień na root=/dev/sda1 a raczej w /boot/grub/grub.conf docelowo.
_________________
Pozdrawiam,
Milu
------------------------------------
Registered Linux User: #246079

Zanim zadasz pytanie przeczytaj to dokładnie!!
Back to top
View user's profile Send private message
kurak
Guru
Guru


Joined: 13 Jul 2006
Posts: 492

PostPosted: Wed Sep 27, 2006 3:17 pm    Post subject: Reply with quote

Dziekuje, dziala, Timing buffered podskoczyl do 67.55MB/s, wiec jest juz lepiej. Tylko mnie meczy jeszcze jedna rzecz. Bo przy uruchamianiu kompa, mam taki okres 2-3 sekund az grub zaskoczy na dysku, intalowalem go troche inaczej niz pospolicie
Code:
grub-install /dev/sda
tylko jakos tak:
Code:
grub-install --no-floppy

podem jakies tam polecenia, ale nie pamietam, bo na forum to znalazlem. Wczsniej tego nie mialem, przy uruchomianiu komputeraz odrazu ladowal sie grub. Jakies sugestie?

I jest jeszcze jeden dla mnie problem, bo mam jeszcze podlaczony dysk na kontrolerze ATA 133, ale transfery pomiedzy SATA a ATA sa rzedu 3-4 MB/s, mi sie wydaje ze powinno byc kolo 20 MB/s, i wlasnie nie moge wlaczyc DMA na tym dysku ATA (hdc) jak i na nagrywarce (hdd) a wczesniej przed instalacja nowego dysku bylo wszystko dobrze, DMA dzialalo swietnie.
_________________
Open Your Mind, Use Open Source
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum