Pourquoi le sgdisk
plante en me disant que le fichier /dev/sdb
n'existe pas alors que c'est pourtant le cas ?
~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch
~# sgdisk --new=1:0:+100M --change-name=1:ceph data \
--partition-guid=1:e105f701-530b-4574-ae09-c4cc8deddb22 \
--typecode=1:89c57f98-2fe5-4dc0-89c1-f3ad0ceff2be \
--mbrtogpt -- /dev/sdb
Problem opening data for reading! Error is 2.
The specified file does not exist!
# Mais le device existe pourtant.
~# ll /dev/sdb
brw-rw---- 1 root disk 8, 16 Nov 22 14:27 /dev/sdb
~# fdisk -l /dev/sdb
Disk /dev/sdb: 30 GiB, 32212254720 bytes, 62914560 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