Vous vous êtes surement déjà demandé comment retrouver les caractéristiques hardware de votre vieux PC : carte mère, cpu, ram, disque dur, carte graphique … Heureusement, il existe plusieurs solutions pour retrouver ces infos.
Connaitre le CPU et la quantité de mémoire cache sous Linux
Quelques informations utiles sur le CPU sont disponible dans le fichier /proc/cpuinfo
cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU E5345 @ 2.33GHz stepping : 11 cpu MHz : 2327.522 cache size : 4096 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni vmx bogomips : 4664.89
Connaitre la mémoire sous Linux
Quelques infos sur la gestion de la mémoire (ici on n’a pas la norme en revanche …)
cat /proc/meminfo MemTotal: 1048688 kB MemFree: 166432 kB Buffers: 177820 kB Cached: 448260 kB SwapCached: 7564 kB Active: 446568 kB Inactive: 346716 kB HighTotal: 303112 kB HighFree: 10880 kB LowTotal: 745576 kB LowFree: 155552 kB SwapTotal: 522072 kB SwapFree: 509352 kB Dirty: 40 kB Writeback: 0 kB AnonPages: 166968 kB Mapped: 19124 kB Slab: 68916 kB PageTables: 1584 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 1046416 kB Committed_AS: 371076 kB VmallocTotal: 116728 kB VmallocUsed: 740 kB VmallocChunk: 115660 kB
Connaitre les disques
La commande fdisk -l liste tous les disques dispo ou donne des informations sur un disque particulier.
#fdisk -l
Disk /dev/xvda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/xvda1 1 5221 41937651 83 Linux
Disk /dev/xvdb: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/xvdb1 1 65 522081 82 Linux swap / Solaris
L’utilitaire lshw (Hardware Lister)
lshw alias Hardware Lister fourni aussi des informations intéressantes sur votre matériel. Il a l’avantage de pouvoir bénéficier d’une interface graphique : gtk-lshw. Voici un extrait de la sortie …
moi-a7sv
description: Notebook
product: A7Sv
vendor: ASUSTeK Computer Inc.
version: 1.0
serial: NF1S79XXXXXX
width: 32 bits
capabilities: smbios-2.4 dmi-2.4 smp-1.4 smp
configuration: chassis=notebook cpus=2 uuid=703081DC-645D-0605-0280-001D6050B870
*-core
description: Motherboard
product: A7Sv
vendor: ASUSTeK Computer Inc.
physical id: 0
version: 1.0
serial: BSN1234XXX789XXXXXX
slot: MIDDLE
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 203 (07/26/2007)
size: 64KiB
capacity: 960KiB
capabilities: isa pci pnp upgrade shadowing escd cdboot bootselect edd int13floppy1200 int13fl$
*-cpu:0
description: CPU
product: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
vendor: Intel Corp.
max-a7sv
description: Notebook
product: A7Sv
vendor: ASUSTeK Computer Inc.
version: 1.0
serial: NF1S7922680032
width: 32 bits
capabilities: smbios-2.4 dmi-2.4 smp-1.4 smp
configuration: chassis=notebook cpus=2 uuid=703081DC-645D-0605-0280-001D6050B870
*-core
description: Motherboard
product: A7Sv
vendor: ASUSTeK Computer Inc.
physical id: 0
version: 1.0
serial: BSN12345XXX234XXX
slot: MIDDLE
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 203 (07/26/2007)
size: 64KiB
capacity: 960KiB
capabilities: isa pci pnp upgrade shadowing escd cdboot bootselect edd int13floppy1200 int13fl$
*-cpu:0
description: CPU
product: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
vendor: Intel Corp.
...
*-multimedia
description: Audio device
product: 82801H (ICH8 Family) HD Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
version: 03
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=HDA Intel latency=0
resources: irq:50 memory:febf8000-febfbfff
...
*-battery
description: Nickel Cadmium Battery
product: Nikon Ultra Plus
vendor: Nikon Battery
physical id: 1
version: 08/11/97
serial: NI00123
slot: Left side of System
L’utilitaire dmidecode
L’utilitaire dmidecode fournit les informations matérielles de votre système connues par le BIOS conformément au standard SMBIOS/DMI. Voici un exemple de sortie affichée par la commande dmidecode. On retrouve des informations sur les composants hardware : fabriquant, modèle, numéro de série, version du BIOS, le statut des sockets CPU, la liste des slots d’extensions (AGP, PCI, ISA, PCI-E), les slots mémoire (pour mettre les barrettes de RAM) et la liste des ports d’entrée/sorties (I/O : port série, parallèle, USB …)
# dmidecode 2.8 SMBIOS 2.3 present. 49 structures occupying 1383 bytes. Table at 0x000F2940. Handle 0x0000, DMI type 0, 20 bytes BIOS Information Vendor: Award Software, Inc. Version: ASUS A7V133-C ACPI BIOS Revision 1009 Release Date: 04/23/2002 Address: 0xF0000 Runtime Size: 64 kB ROM Size: 256 kB Characteristics: PCI is supported PNP is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed ESCD support is available Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/360 KB floppy services are supported (int 13h) 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 KB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported AGP is supported Handle 0x0001, DMI type 1, 25 bytes System Information Manufacturer: System Manufacturer Product Name: System Name Version: System Version Serial Number: SYS-1234567890 UUID: Not Settable Wake-up Type: Power Switch Handle 0x0002, DMI type 2, 8 bytes Base Board Information Manufacturer: ASUSTeK Computer INC. Product Name: A7V133-C Version: REV 1.xx Serial Number: xxxxxxxxxxx Handle 0x0003, DMI type 3, 17 bytes Chassis Information Manufacturer: Chassis Manufacture Type: Tower Lock: Not Present Version: Chassis Version Serial Number: Chassis Serial Number Asset Tag: Asset-1234567890 Boot-up State: Safe Power Supply State: Safe Thermal State: Safe Security Status: Unknown OEM Information: 0x00000000 Handle 0x0004, DMI type 4, 32 bytes Processor Information Socket Designation: SOCKET A Type: Central Processor Family: Other Manufacturer: AuthenticAMD ID: 42 06 00 00 FF F9 83 01 Signature: Family 6, Model 4, Stepping 2 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) MMX (MMX technology supported) FXSR (Fast floating-point save and restore) Version: AMD Athlon(TM) Processor Voltage: 1.7 V External Clock: 133 MHz Max Speed: 1800 MHz Current Speed: 1200 MHz Status: Populated, Enabled Upgrade: Other L1 Cache Handle: 0x0009 L2 Cache Handle: 0x000A L3 Cache Handle: Not Provided Handle 0x0005, DMI type 5, 22 bytes Memory Controller Information Error Detecting Method: 64-bit ECC Error Correcting Capabilities: None Supported Interleave: One-way Interleave Current Interleave: One-way Interleave Maximum Memory Module Size: 1024 MB Maximum Total Memory Size: 3072 MB Supported Speeds: Other Supported Memory Types: Other DIMM SDRAM Memory Module Voltage: 3.3 V Associated Memory Slots: 3 0x0006 0x0007 0x0008 Enabled Error Correcting Capabilities: Unknown Handle 0x0006, DMI type 6, 12 bytes Memory Module Information Socket Designation: DIMM 1 Bank Connections: 0 1 Current Speed: Unknown Type: Other DIMM SDRAM Installed Size: 256 MB (Double-bank Connection) Enabled Size: 256 MB (Double-bank Connection) Error Status: OK Handle 0x0007, DMI type 6, 12 bytes Memory Module Information Socket Designation: DIMM 2 Bank Connections: 2 3 Current Speed: Unknown Type: Other DIMM SDRAM Installed Size: 256 MB (Double-bank Connection) Enabled Size: 256 MB (Double-bank Connection) Error Status: OK Handle 0x0008, DMI type 6, 12 bytes Memory Module Information Socket Designation: DIMM 3 Bank Connections: 4 5 Current Speed: Unknown Type: Other DIMM SDRAM Installed Size: Not Installed Enabled Size: Not Installed Error Status: OK Handle 0x0009, DMI type 7, 19 bytes Cache Information Socket Designation: L1 Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Write Back Location: Internal Installed Size: 128 KB Maximum Size: 128 KB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Unknown System Type: Data Associativity: 4-way Set-associative Handle 0x000A, DMI type 7, 19 bytes Cache Information Socket Designation: L2 Cache Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Write Back Location: Internal Installed Size: 256 KB Maximum Size: 8192 KB Supported SRAM Types: Pipeline Burst Synchronous Installed SRAM Type: Pipeline Burst Synchronous Speed: Unknown Error Correction Type: Unknown System Type: Data Associativity: 4-way Set-associative Handle 0x000B, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: PRIMARY IDE/HDD Internal Connector Type: On Board IDE External Reference Designator: Not Specified External Connector Type: None Port Type: None Handle 0x000C, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: SECONDARY IDE/HDD Internal Connector Type: On Board IDE External Reference Designator: Not Specified External Connector Type: None Port Type: None Handle 0x000D, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: FLOPPY Internal Connector Type: On Board Floppy External Reference Designator: Not Specified External Connector Type: None Port Type: None Handle 0x000E, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: USB1 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x000F, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: USB2 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x0010, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: USB3 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x0011, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: USB4 External Connector Type: Access Bus (USB) Port Type: USB Handle 0x0012, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: PS/2 Keybaord External Connector Type: PS/2 Port Type: Keyboard Port Handle 0x0013, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: PS/2 Mouse External Connector Type: PS/2 Port Type: Mouse Port Handle 0x0014, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: Parallel Port External Connector Type: DB-25 female Port Type: Parallel Port ECP/EPP Handle 0x0015, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: Serial Port 1 External Connector Type: DB-9 male Port Type: Serial Port 16550 Compatible Handle 0x0016, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: Serial Port 2 External Connector Type: DB-9 male Port Type: Serial Port 16550 Compatible Handle 0x0017, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: Joystick Port External Connector Type: DB-15 female Port Type: Joystick Port Handle 0x0018, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: MIDI Port External Connector Type: DB-15 female Port Type: MIDI Port Handle 0x0019, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: Line In Jack External Connector Type: Mini Jack (headphones) Port Type: Audio Port Handle 0x001A, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: Video Port External Connector Type: Mini Jack (headphones) Port Type: Video Port Handle 0x001B, DMI type 9, 13 bytes System Slot Information Designation: PCI 1 Type: 32-bit PCI Current Usage: Available Length: Short ID: 0 Characteristics: 5.0 V is provided 3.3 V is provided PME signal is supported Handle 0x001C, DMI type 9, 13 bytes System Slot Information Designation: PCI 2 Type: 32-bit PCI Current Usage: In Use Length: Short ID: 0 Characteristics: 5.0 V is provided 3.3 V is provided PME signal is supported Handle 0x001D, DMI type 9, 13 bytes System Slot Information Designation: PCI 3 Type: 32-bit PCI Current Usage: In Use Length: Short ID: 0 Characteristics: 5.0 V is provided 3.3 V is provided PME signal is supported Handle 0x001E, DMI type 9, 13 bytes System Slot Information Designation: PCI 4 Type: 32-bit PCI Current Usage: Available Length: Short ID: 0 Characteristics: 5.0 V is provided 3.3 V is provided PME signal is supported Handle 0x001F, DMI type 9, 13 bytes System Slot Information Designation: PCI 5 Type: 32-bit PCI Current Usage: In Use Length: Short ID: 0 Characteristics: 5.0 V is provided 3.3 V is provided PME signal is supported Handle 0x0020, DMI type 9, 13 bytes System Slot Information Designation: AGP Type: 32-bit AGP 4x Current Usage: In Use Length: Long ID: 0 Characteristics: 5.0 V is provided 3.3 V is provided Handle 0x0021, DMI type 9, 13 bytes System Slot Information Designation: AMR Type: 32-bit I/O Riser Card Current Usage: In Use Length: Long Characteristics: 5.0 V is provided 3.3 V is provided Handle 0x0022, DMI type 10, 6 bytes On Board Device Information Type: Other Status: Disabled Description: Promise PDC20265 Handle 0x0023, DMI type 11, 5 bytes OEM Strings String 1: 0 String 2: 0 Handle 0x0024, DMI type 13, 22 bytes BIOS Language Information Installable Languages: 1 en|US|iso8859-1 Currently Installed Language: en|US|iso8859-1 Handle 0x0025, DMI type 14, 14 bytes Group Associations Name: Cpu Module Items: 3 0x0004 (Processor) 0x0009 (Cache) 0x000A (Cache) Handle 0x0026, DMI type 14, 29 bytes Group Associations Name: Memory Module Set Items: 8 0x0027 (Physical Memory Array) 0x0028 (Memory Device) 0x002C (Memory Device Mapped Address) 0x0029 (Memory Device) 0x002D (Memory Device Mapped Address) 0x002A (Memory Device) 0x002E (Memory Device Mapped Address) 0x002B (Memory Array Mapped Address) Handle 0x0027, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 1536 MB Error Information Handle: Not Provided Number Of Devices: 3 Handle 0x0028, DMI type 17, 23 bytes Memory Device Array Handle: 0x0027 Error Information Handle: No Error Total Width: 72 bits Data Width: 64 bits Size: 256 MB Form Factor: DIMM Set: 1 Locator: DIMM 1 Bank Locator: Not Specified Type: DRAM Type Detail: Synchronous Speed: Unknown Handle 0x0029, DMI type 17, 23 bytes Memory Device Array Handle: 0x0027 Error Information Handle: No Error Total Width: 72 bits Data Width: 64 bits Size: 256 MB Form Factor: DIMM Set: 2 Locator: DIMM 2 Bank Locator: Not Specified Type: DRAM Type Detail: Synchronous Speed: Unknown Handle 0x002A, DMI type 17, 23 bytes Memory Device Array Handle: 0x0027 Error Information Handle: No Error Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: 3 Locator: DIMM 3 Bank Locator: Not Specified Type: DRAM Type Detail: Synchronous Speed: Unknown Handle 0x002B, DMI type 19, 15 bytes Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x080000003FF Range Size: 536870913 kB Physical Array Handle: 0x0027 Partition Width: 0 Handle 0x002C, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0000FFFFFFF Range Size: 256 MB Physical Device Handle: 0x0028 Memory Array Mapped Address Handle: 0x002B Partition Row Position: 1 Handle 0x002D, DMI type 20, 19 bytes Memory Device Mapped Address Starting Address: 0x00010000000 Ending Address: 0x0001FFFFFFF Range Size: 256 MB Physical Device Handle: 0x0029 Memory Array Mapped Address Handle: 0x002B Partition Row Position: 2 Handle 0x002E, DMI type 126, 19 bytes Inactive Handle 0x002F, DMI type 32, 11 bytes System Boot Information Status: No errors detected Handle 0x0030, DMI type 127, 4 bytes End Of TableConnaitre la mémoire, la carte mère et les caractéristiques hardware de son système Linux Debian,





janvier 17th, 2013 at 14 h 49 min
Cool, very intersting.
C’est tres bien.
avril 10th, 2012 at 9 h 21 min
Vraiment génial! Depuis le temps que je cherchais… =)
décembre 22nd, 2011 at 13 h 15 min
g mal compris!
juin 29th, 2011 at 13 h 36 min
Merci, ça m’est vraiment utile