Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
informacje o dyskach
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) Polish OTW
View previous topic :: View next topic  
Author Message
psotnik
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 248
Location: /world/poland/Cracow

PostPosted: Fri Apr 04, 2008 6:20 pm    Post subject: informacje o dyskach Reply with quote

Triwialne pytanie, ale jak moge dowiedziec sie (zakladam ze pewnie z /proc) jakie dyski sa na pokladzie maszyny? Dokladniej ich pojemnosc nie montujac urzadzen i nie kozystajac np z fdiska. Dla scsi i ide.
_________________
psotnik
:]
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Fri Apr 04, 2008 7:59 pm    Post subject: Reply with quote

hparm /dev/h** ?
Back to top
View user's profile Send private message
psotnik
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 248
Location: /world/poland/Cracow

PostPosted: Fri Apr 04, 2008 8:10 pm    Post subject: Reply with quote

Tak zgadza sie, ale czy aby hdparm nie pobiera danych z jakis plikow?
_________________
psotnik
:]
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Fri Apr 04, 2008 8:20 pm    Post subject: Reply with quote

"Wszystko jest plikiem, a jak nim nie jest, jest procesem" Jak wiemy dyski twarde nie są procesami, więc są plikami, w /dev.
Back to top
View user's profile Send private message
psotnik
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 248
Location: /world/poland/Cracow

PostPosted: Fri Apr 04, 2008 8:35 pm    Post subject: Reply with quote

mialem na mysli plik ktory moge mp less przeczytac
_________________
psotnik
:]
Back to top
View user's profile Send private message
Pryka
l33t
l33t


Joined: 08 Jun 2007
Posts: 658
Location: /dev/null

PostPosted: Fri Apr 04, 2008 9:38 pm    Post subject: Reply with quote

Code:
emerge smartmontools


Code:
smartctl -i /dev/hda

Uzyskasz coś takiego
Code:
=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.7 and 7200.7 Plus family
Device Model:     ST380011A
Serial Number:    5JV0N1H1
Firmware Version: 3.06
User Capacity:    80,026,361,856 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   6
ATA Standard is:  ATA/ATAPI-6 T13 1410D revision 2
Local Time is:    Fri Apr  4 23:36:21 2008 CEST
SMART support is: Available - device has SMART capability.
Back to top
View user's profile Send private message
timor
Guru
Guru


Joined: 25 May 2005
Posts: 517
Location: Poland

PostPosted: Sat Apr 05, 2008 1:22 am    Post subject: Reply with quote

SlashBeast wrote:
"Wszystko jest plikiem, a jak nim nie jest, jest procesem" Jak wiemy dyski twarde nie są procesami, więc są plikami, w /dev.
Zgodnie z tą tefinicją procesy nie istnieją :D
_________________
Nie lubię chomików.... budzą we mnie agresję...
Back to top
View user's profile Send private message
BeteNoire
Veteran
Veteran


Joined: 25 Sep 2005
Posts: 1827

PostPosted: Sat Apr 05, 2008 5:41 am    Post subject: Reply with quote

Skoro tak bardzo chcesz się babrać to pozaglądaj do plików typu /proc/ide/ide0/hda/capacity ;)
_________________
powered by power plant
Back to top
View user's profile Send private message
psotnik
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 248
Location: /world/poland/Cracow

PostPosted: Sat Apr 05, 2008 9:39 am    Post subject: Reply with quote

ok, a jak dziala hdparm? po_prostu przegladalem w proc ide ora scsi i nie moglem znaleźc takich informacji jak daje np hdparm -I, np wielkosc podpietych pod np ide0 dyskow. Chociaz z tego co zuwazylem urzedzenai sa obslugiwane przez scsi.

Arfrever: Ortografia
_________________
psotnik
:]
Back to top
View user's profile Send private message
timor
Guru
Guru


Joined: 25 May 2005
Posts: 517
Location: Poland

PostPosted: Sat Apr 05, 2008 10:13 am    Post subject: Reply with quote

hdparm pobiera część informacji ze smart'a, a resztę lecąc po portach dma. Uważaj jak się nim bawisz, bo jak sobie przez przypadek wyłączysz dma to może być kaszana - kiedyś sobie tak zrobiłem i ledwie dane potem pozbierałem.
_________________
Nie lubię chomików.... budzą we mnie agresję...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW 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