Storage Basico Flashcards

1
Q

Como se listan los discos con uuid

A

lsblk —fp

—fs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Como se monta un filesystem

A

mount /dev/name/mypath

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Tipos de particiones

A

gpt

msdos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como

Se particionan un disco con msdos

A

parted/dev/vdb

mklabel msdos
mkpart primary xfs 1GiB 3GiB

udevadm settle

mkfs.xfs /dev/vdb1

mount /dev/vdb1 /ruta

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como

Se crea una partición gpt

A

parted /dev/vdc

mklabel gpt
mkpart NAME xfs 1GiB 3GiB

udevadm settle

mkfs.xfs /dev/vdb1
mount /dev/vdb1 /ruta

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Como se borra una partición

A

Parted /dev/vdb

rm 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Ejemplo

De entrada de fstab

A

UUID=1111 /ruta xfs defaults 0 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Método correcto para modificar fstab y probar

A

modificar /etc/fstab

systemctl daemon-reload
mount -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Como se crea una partición y se asigna el swap

A

parted /dev/vbd

mklabel msdos
mkpart swap linux-swap 1GiB 2GiB

udevadm settle

mkswap /dev/vdd

swapon/dev/vdd1

swapon —active

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Como
Se
Agrega swap a fstab

A

uuid=ID swap swap defaults,pri=2 0 0

systemctl daemon-reload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Cual es la

Prioridad default de swap

A

-2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Que prioridad usa primero el kernel de swap -2 6 o 10

A

Usa la última 10 hacia abajo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Como se desactiva un swap

A

swapoff/dev/vdb1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly