Gå til innhold

Den frie kafeen


Anbefalte innlegg

Videoannonse
Annonse
Trenger et program for og sjekke harddisken min i Ubuntu 8.04, fint om det også kan sjekke for "smart data readout".

Noen tips?

 

Installér smartctl fra pakken smartmontools, så får du et vidunderlig fint kommandolinjeverktøy for S.M.A.R.T.-data. Den er i stand både til å lese ut S.M.A.R.T-data, men også å starte diskens egne selvtest-prosedyrer. Selv er dette det første jeg kjører når jeg mistenker at en disk begynner å synge på siste verset. :)

 

Eksempel på utdata:

 

jorgis@mcpower:~$ sudo smartctl --all /dev/sda
smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:	 SAMSUNG SpinPoint T166 series
Device Model:	 SAMSUNG HD501LJ
Serial Number:	S0MUJ13P741410
Firmware Version: CR100-10
User Capacity:	500,107,862,016 bytes
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 3b
Local Time is:	Tue Aug 19 00:13:04 2008 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
				was never started.
				Auto Offline Data Collection: Disabled.
Self-test execution status:	  (   0)	The previous self-test routine completed
				without error or no self-test has ever 
				been run.
Total time to complete Offline 
data collection: 		 (9033) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
				Auto Offline data collection on/off support.
				Suspend Offline collection upon new
				command.
				Offline surface scan supported.
				Self-test supported.
				No Conveyance Self-test supported.
				Selective Self-test supported.
SMART capabilities:			(0x0003)	Saves SMART data before entering
				power-saving mode.
				Supports SMART auto save timer.
Error logging capability:		(0x01)	Error logging supported.
				General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 154) minutes.
SCT capabilities: 		   (0x003f)	SCT Status supported.
				SCT Feature Control supported.
				SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME		  FLAG	 VALUE WORST THRESH TYPE	  UPDATED  WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate	 0x000f   100   100   051	Pre-fail  Always	   -	   5
 3 Spin_Up_Time			0x0007   100   100   015	Pre-fail  Always	   -	   7360
 4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   127
 5 Reallocated_Sector_Ct   0x0033   253   253   010	Pre-fail  Always	   -	   0
 7 Seek_Error_Rate		 0x000f   253   253   051	Pre-fail  Always	   -	   0
 8 Seek_Time_Performance   0x0025   253   253   015	Pre-fail  Offline	  -	   0
 9 Power_On_Hours		  0x0032   100   100   000	Old_age   Always	   -	   5637
10 Spin_Retry_Count		0x0033   253   253   051	Pre-fail  Always	   -	   0
11 Calibration_Retry_Count 0x0012   253   253   000	Old_age   Always	   -	   0
12 Power_Cycle_Count	   0x0032   100   100   000	Old_age   Always	   -	   100
187 Reported_Uncorrect	  0x0032   253   253   000	Old_age   Always	   -	   0
188 Unknown_Attribute	   0x0032   253   253   000	Old_age   Always	   -	   0
190 Airflow_Temperature_Cel 0x0022   070   069   000	Old_age   Always	   -	   30
194 Temperature_Celsius	 0x0022   148   145   000	Old_age   Always	   -	   30
195 Hardware_ECC_Recovered  0x001a   100   100   000	Old_age   Always	   -	   338402101
196 Reallocated_Event_Count 0x0032   253   253   000	Old_age   Always	   -	   0
197 Current_Pending_Sector  0x0012   253   253   000	Old_age   Always	   -	   0
198 Offline_Uncorrectable   0x0030   253   253   000	Old_age   Offline	  -	   0
199 UDMA_CRC_Error_Count	0x003e   200   200   000	Old_age   Always	   -	   0
200 Multi_Zone_Error_Rate   0x000a   100   100   000	Old_age   Always	   -	   0
201 Soft_Read_Error_Rate	0x000a   100   100   000	Old_age   Always	   -	   0
202 TA_Increase_Count	   0x0032   253   253   000	Old_age   Always	   -	   0

SMART Error Log Version: 1
ATA Error Count: 1
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 6 hours (0 days + 6 hours)
 When the command that caused the error occurred, the device was active or idle.

 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 04 51 00 4f 0c f0 e3  Error: ABRT at LBA = 0x03f00c4f = 66063439

 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --  ----------------  --------------------
 ca 00 00 4f 0c f0 e3 00	  00:05:01.938  WRITE DMA
 ca 00 00 4f 0b f0 e3 00	  00:05:01.938  WRITE DMA
 ca 00 00 4f 0a f0 e3 00	  00:05:01.938  WRITE DMA
 ca 00 00 4f 09 f0 e3 00	  00:05:01.938  WRITE DMA
 ca 00 00 4f 08 f0 e3 00	  00:05:01.938  WRITE DMA

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


SMART Selective Self-Test Log Data Structure Revision Number (0) should be 1
SMART Selective self-test log data structure revision number 0
Warning: ATA Specification requires selective self-test log data structure revision number = 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
1		0		0  Not_testing
2		0		0  Not_testing
3		0		0  Not_testing
4		0		0  Not_testing
5		0		0  Not_testing
Selective self-test flags (0x0):
 After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

 

 

Interessant prosjekt:

Firefox med QT

 

Tenkte jeg skulle prøve ut KDE 4 med Kubuntu 8.10. Det som får meg til å backe ut i forhold til KDE er at jeg foretrekker Firefox, og at Firefox med GTK ser butt ugly ut i KDE.

 

Stilig å se at Nokia tar vare på investeringen de har i Trolltech, håper vi får se mer nyvinninger i Qt fremover, spesielt Qtopia begynner å bli veldig imponerende nå. Blir gøy å se når Nokia dropper Symbian til fordel for Qtopia. :)

Endret av jorgis
Lenke til kommentar

Fant ut at jeg ikke får HAL til å kjøre på en fersk Slackware 12.1 installasjon på laptopen min

 

/usr/sbin/hald --daemon=no

gir

Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'

(process:3467): GLib-CRITICAL **: g_hash_table_foreach_remove: assertion `hash_table != NULL' failed

** (process:3467): CRITICAL **: hal_property_get_string: assertion `prop->type == HAL_PROPERTY_TYPE_STRING' failed
*** [DIE] device_info.c:rules_match_and_merge_device():1088 : Rule is NULL on jump
00:28:24.515 [D] addon-input.c:486: An error occured, exiting cleanly

 

Noen med HAL kunnskap som skjønner mer av denne feilmeldingen enn meg?

Lenke til kommentar

dbus kjører ja og jeg er i plugdev

olefiver@lappy:~$ groups 
users tty wheel floppy audio video cdrom plugdev power

root@lappy:~# ps aux | grep dbus
81		2668  0.2  0.2   2468  1044 ?		Ss   00:21   0:08 /usr/bin/dbus-daemon --system
olefiver 13150  0.0  0.1   3112   740 tty1	 S	01:11   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
olefiver 13151  0.0  0.1   2328   812 ?		Ss   01:11   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root	 14357  0.0  0.1   2060   652 pts/1	R+   01:27   0:00 grep dbus

 

Men jeg har ikke gjort noe i hal.conf ... ...

 

 

<!DOCTYPE busconfig PUBLIC

"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"

"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>

 

<!-- This configuration file specifies the required security policies

for the HAL to work. -->

 

<!-- Only root or user haldaemon can own the HAL service -->

<policy user="haldaemon">

<allow own="org.freedesktop.Hal"/>

</policy>

<policy user="root">

<allow own="org.freedesktop.Hal"/>

</policy>

 

<!-- Allow anyone to invoke methods on the Manager and Device interfaces -->

<policy context="default">

<allow send_interface="org.freedesktop.Hal.Manager"/>

<allow send_interface="org.freedesktop.Hal.Device"/>

<allow receive_interface="org.freedesktop.Hal.Manager"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device"

receive_sender="org.freedesktop.Hal"/>

 

<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

<allow receive_interface="org.freedesktop.Hal.Device.SystemPowerManagement"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device.LaptopPanel"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device.Volume"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device.Volume.Crypto"

receive_sender="org.freedesktop.Hal"/>

</policy>

 

<!-- Default policy for the exported interfaces -->

<policy context="default">

<deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

<deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>

<deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

<deny send_interface="org.freedesktop.Hal.Device.Volume"/>

<deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

</policy>

 

<!-- This will not work if pam_console support is not enabled -->

<!-- This build (from SlackBuilds.org) does not include pam_console support -$

<policy at_console="true">

<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

</policy>

 

<!-- Allow members of 'power' group to shutdown/restart/suspend/hibernate -->

<policy group="power">

<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

</policy>

 

<!-- Allow members of 'video' group to manipulate video settings -->

<policy group="video">

<allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>

<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

</policy>

 

<!-- Allow members of the 'plugdev' group to mount volumes -->

<policy group="plugdev">

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

</policy>

 

</busconfig>

 

 

 

Endret av olefiver
Lenke til kommentar

Hva er

USB-revievere

? Er det et merke? Eller er den en skrivefeil?

 

Uansett. USB-uirt fungerer utmerket, man må bare være klar over at det var en feil i enkelte tidligere kjerner som gjorde at den ikke fungerte.

 

http://www.lirc.org er et fint sted å starte dersom du heller vil ha noe annet, eller dersom du bare trenger en receiver og ikke en transmiter.

Lenke til kommentar

OK. Da tipper jeg det du tenker på er at USB-uirt enheten ikke fungerte på grunn av en bug i en driver på kjerner med versjonsnummer mellom 2.6.22 og en litt senere versjon (jeg husker ikke nøyaktig hvilken versjon som fikset problemet). Har du en relativt oppdattert kjerne bør det ikke være noe problem. F. eks. fungerer USB-uirt utmerket på ubuntu 8.04 kjernen.

Lenke til kommentar

Quoter meg selv i spoilertags.

 

Fant ut at jeg ikke får HAL til å kjøre på en fersk Slackware 12.1 installasjon på laptopen min

 

/usr/sbin/hald --daemon=no

gir

Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'

(process:3467): GLib-CRITICAL **: g_hash_table_foreach_remove: assertion `hash_table != NULL' failed

** (process:3467): CRITICAL **: hal_property_get_string: assertion `prop->type == HAL_PROPERTY_TYPE_STRING' failed
*** [DIE] device_info.c:rules_match_and_merge_device():1088 : Rule is NULL on jump
00:28:24.515 [D] addon-input.c:486: An error occured, exiting cleanly

 

Noen med HAL kunnskap som skjønner mer av denne feilmeldingen enn meg?

 

 

dbus kjører ja og jeg er i plugdev

olefiver@lappy:~$ groups 
users tty wheel floppy audio video cdrom plugdev power

root@lappy:~# ps aux | grep dbus
81		2668  0.2  0.2   2468  1044 ?		Ss   00:21   0:08 /usr/bin/dbus-daemon --system
olefiver 13150  0.0  0.1   3112   740 tty1	 S	01:11   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
olefiver 13151  0.0  0.1   2328   812 ?		Ss   01:11   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root	 14357  0.0  0.1   2060   652 pts/1	R+   01:27   0:00 grep dbus

 

Men jeg har ikke gjort noe i hal.conf ... ...

 

 

<!DOCTYPE busconfig PUBLIC

"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"

"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

<busconfig>

 

<!-- This configuration file specifies the required security policies

for the HAL to work. -->

 

<!-- Only root or user haldaemon can own the HAL service -->

<policy user="haldaemon">

<allow own="org.freedesktop.Hal"/>

</policy>

<policy user="root">

<allow own="org.freedesktop.Hal"/>

</policy>

 

<!-- Allow anyone to invoke methods on the Manager and Device interfaces -->

<policy context="default">

<allow send_interface="org.freedesktop.Hal.Manager"/>

<allow send_interface="org.freedesktop.Hal.Device"/>

<allow receive_interface="org.freedesktop.Hal.Manager"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device"

receive_sender="org.freedesktop.Hal"/>

 

<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

<allow receive_interface="org.freedesktop.Hal.Device.SystemPowerManagement"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device.LaptopPanel"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device.Volume"

receive_sender="org.freedesktop.Hal"/>

<allow receive_interface="org.freedesktop.Hal.Device.Volume.Crypto"

receive_sender="org.freedesktop.Hal"/>

</policy>

 

<!-- Default policy for the exported interfaces -->

<policy context="default">

<deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

<deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>

<deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

<deny send_interface="org.freedesktop.Hal.Device.Volume"/>

<deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

</policy>

 

<!-- This will not work if pam_console support is not enabled -->

<!-- This build (from SlackBuilds.org) does not include pam_console support -$

<policy at_console="true">

<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

</policy>

 

<!-- Allow members of 'power' group to shutdown/restart/suspend/hibernate -->

<policy group="power">

<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>

</policy>

 

<!-- Allow members of 'video' group to manipulate video settings -->

<policy group="video">

<allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>

<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>

</policy>

 

<!-- Allow members of the 'plugdev' group to mount volumes -->

<policy group="plugdev">

<allow send_interface="org.freedesktop.Hal.Device.Volume"/>

<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>

</policy>

 

</busconfig>

 

 

 

 

 

Etter en post på LQ forumet for Slackware og en kjapp tur innom google, har jeg eliminert at hald dør som følge av GLIB feil.

Men hald dør like fullt

Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
*** [DIE] device_info.c:rules_match_and_merge_device():962 : Rule is NULL on jump

 

 

hmm, burde kanskje laget en egen tråd for denne...

 

 

EDIT:

min egen feil.

overnevnte feilmelding kom at jeg hadde nedgradert hal pakke til 12.0 som et ledd i testing, men selvfølgelig ikke oppgradert igjen...

:grumpy:

oppgraderte hal til 12.1 pakken og alles i ordnung

Endret av olefiver
Lenke til kommentar

Takker for svar:-) Artig å lese at de virker ut av boksen, leser at noen kort komplett har inne trenger drivere som bare kan installeres via diskett for windows maskiner :-D

 

Hva tror dere om dette hovedkortet og Linux Link. Kunne tenke meg en enkel filserver(og nedlastning av torrentfiler) som bruker lite strøm. Hvis jeg kutter ut GUI så burde den vel holde. (kortet koster omkring kr 700).

Endret av Dy§no
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...