• fdisk

    From Piviul@21:1/5 to All on Thu Apr 14 20:20:01 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Piviul@21:1/5 to All on Thu Apr 14 21:30:01 2022
    This is a multi-part message in MIME format.
    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?

    Piviul

    Il 14/04/22 16:03, Piviul ha scritto:
    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



    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <div class="moz-cite-prefix">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 <span
    style="font-family:monospace">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?<br>
    <br>
    Piviul<br>
    </span><br>
    Il 14/04/22 16:03, Piviul ha scritto:<br>
    </div>
    <blockquote type="cite"
    cite="mid:03d017f1-6c6a-9963-9c9f-297ce380b862@riminilug.it">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:
    <br>
    <br>
    <blockquote type="cite"># fdisk /dev/sdb
    <br>
    <br>
    Welcome to fdisk (util-linux 2.36.1).
    <br>
    Changes will remain in memory only, until you decide to write
    them.
    <br>
    Be careful before using the write command.
    <br>
    <br>
    <br>
    Command (m for help): p
    <br>
    Disk /dev/sdb: 16,37 TiB, 18000207937536 bytes, 35156656128
    sectors
    <br>
    Disk model: ST18000NM000J-2T
    <br>
    Units: sectors of 1 * 512 = 512 bytes
    <br>
    Sector size (logical/physical): 512 bytes / 4096 bytes
    <br>
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    <br>
    Disklabel type: gpt
    <br>
    Disk identifier: FC0B6515-8726-4544-9489-EFC50A4E744B
    <br>
    <br>
    Device       Start         End     Sectors  Size Type
    <br>
    /dev/sdb1     2048     1050623     1048576  512M EFI System
    <br>
    /dev/sdb2  1050624     2050047      999424  488M Linux RAID
    <br>
    /dev/sdb3  2050048 35156654079 35154604032 16,4T Linux LVM
    <br>
    <br>
    Command (m for help): g
    <br>
    Created a new GPT disklabel (GUID:
    F8F3B681-A5BA-7B43-83A5-7A542F69F86D).
    <br>
    <br>
    Command (m for help): p
    <br>
    Disk /dev/sdb: 16,37 TiB, 18000207937536 bytes, 35156656128
    sectors
    <br>
    Disk model: ST18000NM000J-2T
    <br>
    Units: sectors of 1 * 512 = 512 bytes
    <br>
    Sector size (logical/physical): 512 bytes / 4096 bytes
    <br>
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    <br>
    Disklabel type: gpt
    <br>
    Disk identifier: F8F3B681-A5BA-7B43-83A5-7A542F69F86D
    <br>
    <br>
    Command (m for help): w
    <br>
    The partition table has been altered.
    <br>
    Failed to remove partition 2 from system: Device or resource
    busy
    <br>
    Failed to remove partition 3 from system: Device or resource
    busy
    <br>
    <br>
    The kernel still uses the old partitions. The new table will be
    used at the next reboot.
    <br>
    Syncing disks.
    <br>
    </blockquote>
    <br>
    e mo che fo?!?
    <br>
    <br>
    Piviul
    <br>
    <br>
    <br>
    </blockquote>
    <br>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Piviul@21:1/5 to Piviul on Wed Apr 20 11:50:01 2022
    This is a multi-part message in MIME format.
    On 14/04/22 21:11, Piviul wrote:
    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?

    Ha funzionato, facendo il reboot non ho riscontrato errori.

    Piviul

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <div class="moz-cite-prefix">On 14/04/22 21:11, Piviul wrote:<br>
    </div>
    <blockquote type="cite"
    cite="mid:0cd172d6-92fd-91c5-ed6a-3014d1dcc933@riminilug.it">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <div class="moz-cite-prefix">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 <span
    style="font-family:monospace">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?<br>
    </span></div>
    </blockquote>
    <p>Ha funzionato, facendo il reboot non ho riscontrato errori.</p>
    <p>Piviul<br>
    </p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)