Información

lsblk

lsblk -o NAME,TYPE,LABEL,PARTLABEL,FSTYPE,MOUNTPOINT,SIZE,TRAN

Ejemplo:

igatjens@tardis:~$ lsblk -o NAME,TYPE,LABEL,PARTLABEL,FSTYPE,MOUNTPOINT,SIZE,TRAN

NAME TYPE LABEL PARTLABEL FSTYPE MOUNTPOINT SIZE TRAN

sda disk 29,1G sata

├─sda1 part EFI primary vfat /boot/efi 300M

├─sda2 part primary swap [SWAP] 2G

└─sda3 part Root primary ext4 / 26,8G

sdb disk SD Ext 8GB ext4 /media/igatjens/SD Ext 8GB 7,3G usb


lsblk -o NAME,TYPE,LABEL,PARTLABEL,FSTYPE,MOUNTPOINT,SIZE,TRAN,ROTA,RM,HOTPLUG,PARTFLAGS,STATE,SCHED,OWNER,RO,MODE

Ejemplo:

igatjens@tardis:~$ lsblk -o NAME,TYPE,LABEL,PARTLABEL,FSTYPE,MOUNTPOINT,SIZE,TRAN,ROTA,RM,HOTPLUG,PARTFLAGS,STATE,SCHED,OWNER,RO,MODE

NAME TYPE LABEL PARTLABEL FSTYPE MOUNTPOINT SIZE TRAN ROTA RM HOTPLUG PARTFLAGS STATE SCHED OWNER RO MODE

sda disk 29,1G sata 0 0 0 runni deadline root 0 brw-rw----

├─sda1 part EFI primary vfat /boot/efi 300M 0 0 0 deadline root 0 brw-rw----

├─sda2 part primary swap [SWAP] 2G 0 0 0 deadline root 0 brw-rw----

└─sda3 part Root primary ext4 / 26,8G 0 0 0 deadline root 0 brw-rw----

sdb disk SD Ext 8GB

ext4 /media/jac 7,3G usb 1 1 1 runni cfq root 0 brw-rw----

df

df -h

Ejemplo:

igatjens@tardis:~$ df -h

S.ficheros Tamaño Usados Disp Uso% Montado en

udev 3,4G 0 3,4G 0% /dev

tmpfs 694M 1,8M 692M 1% /run

/dev/sda3 27G 19G 6,6G 74% /

tmpfs 3,4G 363M 3,1G 11% /dev/shm

tmpfs 5,0M 4,0K 5,0M 1% /run/lock

tmpfs 3,4G 0 3,4G 0% /sys/fs/cgroup

/dev/sda1 300M 6,6M 293M 3% /boot/efi

/dev/sdb 7,2G 1,9G 5,0G 27% /media/igatjens/SD Ext 8GB

tmpfs 694M 52K 694M 1% /run/user/1000

fdisk

Información de particiones

fdisk -l disco

Ejemplo:

igatjens@tardis:~$ sudo fdisk -l /dev/sda

Disk /dev/sda: 29,1 GiB, 31268536320 bytes, 61071360 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

Disklabel type: gpt

Disk identifier: 63564658-DC80-4D80-83E2-47C7BD3EC9EA


Device Start End Sectors Size Type

/dev/sda1 2048 616447 614400 300M EFI System

/dev/sda2 616448 4810751 4194304 2G Linux swap

/dev/sda3 4810752 61069311 56258560 26,8G Linux filesystem


Tipo de tabla de particiones

fdisk -l disco | grep "Disklabel type"

Ejemplo:

igatjens@tardis:~$ sudo fdisk -l /dev/sda | grep "Disklabel type"

Disklabel type: gpt

smartctl

Instalación

sudo apt install smartmontools

Informe de disco

DISCO=/dev/sda

sudo smartctl -i $DISCO

sudo smartctl -H $DISCO

sudo smartctl -A --log=selftest $DISCO

sudo fdisk -l $DISCO