# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 16,37 TiB, 18000207937536 bytes, 35156656128 sectors
Disk model: ST18000NM000J-2T
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FC0B6515-8726-4544-9489-EFC50A4E744B
Device Start End Sectors Size Type /dev/sdb1 2048 1050623 1048576 512M EFI System /dev/sdb2 1050624 2050047 999424 488M Linux RAID /dev/sdb3 2050048 35156654079 35154604032 16,4T Linux LVM
Command (m for help): g
Created a new GPT disklabel (GUID: F8F3B681-A5BA-7B43-83A5-7A542F69F86D).
Command (m for help): p
Disk /dev/sdb: 16,37 TiB, 18000207937536 bytes, 35156656128 sectors
Disk model: ST18000NM000J-2T
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F8F3B681-A5BA-7B43-83A5-7A542F69F86D
Command (m for help): w
The partition table has been altered.
Failed to remove partition 2 from system: Device or resource busy
Failed to remove partition 3 from system: Device or resource busy
The kernel still uses the old partitions. The new table will be used
at the next reboot.
Syncing disks.
Ciao a tutti, pensavo di essere su un pc invece ero su un altro... con
fdisk sono entrato in un device, ho premuto g (per dare un nuovo
PTUUID) e quando ho premuto w mi sono accorto della cazzata che avevo
fatto:
# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 16,37 TiB, 18000207937536 bytes, 35156656128 sectors
Disk model: ST18000NM000J-2T
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FC0B6515-8726-4544-9489-EFC50A4E744B
Device Start End Sectors Size Type
/dev/sdb1 2048 1050623 1048576 512M EFI System
/dev/sdb2 1050624 2050047 999424 488M Linux RAID
/dev/sdb3 2050048 35156654079 35154604032 16,4T Linux LVM
Command (m for help): g
Created a new GPT disklabel (GUID:
F8F3B681-A5BA-7B43-83A5-7A542F69F86D).
Command (m for help): p
Disk /dev/sdb: 16,37 TiB, 18000207937536 bytes, 35156656128 sectors
Disk model: ST18000NM000J-2T
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F8F3B681-A5BA-7B43-83A5-7A542F69F86D
Command (m for help): w
The partition table has been altered.
Failed to remove partition 2 from system: Device or resource busy
Failed to remove partition 3 from system: Device or resource busy
The kernel still uses the old partitions. The new table will be used
at the next reboot.
Syncing disks.
e mo che fo?!?
Piviul
Successivamente ho ricreato le stesse 3 partizioni sul disco: la ESP,
la RAID partition (/boot in RAID1) e la LVM. Le partizioni le ho
ricreate uguali con gli stessi settori, e hanno gli stessi UUID (gli
ho detto di non eliminare i tag raid e lvm), quindi solo il Disk
identifier è cambiato, gli UUID delle partizioni sono sempre le
stesse. Magari do un update-initramfs -u, poi update-grub, un
grub-install... secondo voi se riavvio poi riparte?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:34:07 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,396 |