uuid разделов диска

Ответить
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

uuid разделов диска

Сообщение ya »

Узнать uuid-раздела диска
blkid

Посмотреть структуру дисков
lsblk
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

Re: uuid разделов диска

Сообщение ya »

Код: Выделить всё

root@deb11:~# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0  23.3G  0 part /
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0   9.3G  0 part /var
├─sda6   8:6    0   976M  0 part [SWAP]
├─sda7   8:7    0   1.9G  0 part /tmp
└─sda8   8:8    0 896.1G  0 part /home
root@deb11:~# blkid
/dev/sda1: LABEL="root" UUID="af6e7408-dda2-4cf3-bbdf-46c4ebb04c4b" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="9e9658b7-01"
/dev/sda5: LABEL="var" UUID="2dd45c7e-3b63-4747-97b3-e1e9ed7c1dcc" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="9e9658b7-05"
/dev/sda6: UUID="3c0595eb-07ea-426b-9776-b967bfd18a37" TYPE="swap" PARTUUID="9e9658b7-06"
/dev/sda7: LABEL="tmp" UUID="91e32253-1395-4c8c-992f-ba8e1191d324" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="9e9658b7-07"
/dev/sda8: LABEL="home" UUID="d51c7c5a-2e7b-4659-be12-32f05045e568" BLOCK_SIZE="4096" TYPE="ext3" PARTUUID="9e9658b7-08"
root@deb11:~# cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# systemd generates mount units based on this file, see systemd.mount(5).
# Please run 'systemctl daemon-reload' after making changes here.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=af6e7408-dda2-4cf3-bbdf-46c4ebb04c4b /               ext3    errors=remount-ro 0       1
# /home was on /dev/sda8 during installation
UUID=d51c7c5a-2e7b-4659-be12-32f05045e568 /home           ext3    defaults        0       2
# /tmp was on /dev/sda7 during installation
UUID=91e32253-1395-4c8c-992f-ba8e1191d324 /tmp            ext3    defaults        0       2
# /var was on /dev/sda5 during installation
UUID=2dd45c7e-3b63-4747-97b3-e1e9ed7c1dcc /var            ext3    defaults        0       2
# swap was on /dev/sda6 during installation
UUID=3c0595eb-07ea-426b-9776-b967bfd18a37 none            swap    sw              0       0
root@deb11:~# 
ya
^-^
Сообщения: 2336
Зарегистрирован: 16 дек 2021, 19:56

Re: uuid разделов диска

Сообщение ya »

copy the ISO image to the USB flash drive

Код: Выделить всё

dd bs=1M conv=fdatasync if=./proxmox-ve_*.iso of=/dev/XYZ
Ответить