fdisk failed changing disk identifier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

After cloning a disk with dd, both are identical, particularly the disk identifiers.
I suspected this could create some problems.
Thus I moved the disk to another system without mounting it.
I used additional fdisk option -i to change disk identifier.
However, the following dump shows that fdisk did not actually modify
disk identifier.

What did I make wrong ?

Bernard


[root@f6bvp-11 bernard]# fdisk /dev/sdc
------
Commande (m pour l'aide): p

Disque /dev/sdc: 81.9 Go, 81964302336 octets
255 heads, 63 sectors/track, 9964 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc96f2a00

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdc1   *           1        2558    20547103+  83  Linux
/dev/sdc2            2560        9728    57584992+   5  Extended
/dev/sdc5            2560        3068     4088511   82  Linux swap / Solaris
/dev/sdc6            3069        5381    18579141   83  Linux
/dev/sdc7            5382        9728    34917246   83  Linux

Commande (m pour l'aide): x

Commande pour experts (m pour de l'aide): i
New disk identifier (current 0xc96f2a00): 0xc96f2a01
Disk identifier: 0xc96f2a01

Commande pour experts (m pour de l'aide): r

Commande (m pour l'aide): p

Disque /dev/sdc: 81.9 Go, 81964302336 octets
255 heads, 63 sectors/track, 9964 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc96f2a01

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdc1   *           1        2558    20547103+  83  Linux
/dev/sdc2            2560        9728    57584992+   5  Extended
/dev/sdc5            2560        3068     4088511   82  Linux swap / Solaris
/dev/sdc6            3069        5381    18579141   83  Linux
/dev/sdc7            5382        9728    34917246   83  Linux

Commande (m pour l'aide): w
La table de partitions a été altérée!

Appel de ioctl() pour relire la table de partitions.
Synchronisation des disques.
[root@f6bvp-11 bernard]# fdisk /dev/sdc

-----

Commande (m pour l'aide): p

Disque /dev/sdc: 81.9 Go, 81964302336 octets
255 heads, 63 sectors/track, 9964 cylinders
Units = cylindres of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc96f2a00

Périphérique Amorce    Début         Fin      Blocs    Id  Système
/dev/sdc1   *           1        2558    20547103+  83  Linux
/dev/sdc2            2560        9728    57584992+   5  Extended
/dev/sdc5            2560        3068     4088511   82  Linux swap / Solaris
/dev/sdc6            3069        5381    18579141   83  Linux
/dev/sdc7            5382        9728    34917246   83  Linux

As can be seen the Disk Identifier is still the original one.


--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux