Outils du site

L'intelligence,c'est comme un parachute, quand on n'en a pas on s'écrase. [Coluche]

04-linux:10-administration:30-hardware

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
04-linux:10-administration:30-hardware [2015/10/17 00:45] Roge04-linux:10-administration:30-hardware [2021/05/23 18:15] (Version actuelle) Roge
Ligne 1: Ligne 1:
 +====== Hardware ======
 +
 +  * [[http://manpages.ubuntu.com/manpages/trusty/man1/inxi.1.html|inxi]] : System information 
 + 
 +''inxi -Fxzm''
 +
 +
 +  * [[http://manpages.ubuntu.com/manpages/precise/fr/man8/lsblk.8.html|lsblk]] : list block devices.
 +''roge@raspi ~ $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 465.8G 0 disk └─sda1 8:1 0 465.8G 0 part /media/hd1 mmcblk0 179:0 0 7.4G 0 disk ├─mmcblk0p1 179:1 0 56M 0 part /boot └─mmcblk0p2 179:2 0 7.4G 0 part / ''
 +  * [[http://manpages.ubuntu.com/manpages/hardy/man8/lsusb.8.html|lsusb]] : list USB devices.
 +''roge@raspi ~ $ lsusb Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 1058:1100 Western Digital Technologies, Inc. ''
 +  * [[http://manpages.ubuntu.com/manpages/intrepid/man8/lspci.8.html|lspci]] : list all PCI devices.
 +
 +Pour connaitres les cartes réseau : ''lspci -nn | grep -i net''.
 +
 +''00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5) 00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5) 00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5) 00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 630M] (rev a1) 03:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01) 04:00.0 USB controller: Fresco Logic FL1000G USB 3.0 Host Controller (rev 04) 05:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0) ''
 +
 +''lshw -C network''  liste les cartes reseau.
 +
 +  * ''fdisk -l''  : manipulate disk partition table
 +''roge@raspi ~ $ fdisk -l Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes 4 heads, 16 sectors/track, 243200 cylinders, total 15564800 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b5098 Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA) /dev/mmcblk0p2 122880 15564799 7720960 83 Linux Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x44fdfe06 Device Boot Start End Blocks Id System /dev/sda1 63 976768064 488384001 7 HPFS/NTFS/exFAT ''
 +
 +  * sudo fsck /dev/xxx
 +
 +  * [[http://manpages.ubuntu.com/manpages/jaunty/fr/man8/blkid.8.html|sudo blkid]] : locate/print block device attributes.
 +
 +''roge@raspi ~ $ blkid /dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="7D5C-A285" TYPE="vfat" /dev/mmcblk0p2: UUID="5d18be51-3217-4679-9c72-a54e0fc5xxxx" TYPE="ext4" /dev/sda1: UUID="8bf3aed9-7699-45f1-9539-b0c3d31axxxx" TYPE="ext4" ''
 +  * [[http://manpages.ubuntu.com/manpages/jaunty/man1/lshw.1.html|sudo lshw]] : List hardware.
 +'' beaucoup d'infos ''
 +