hi, all
I have got a terrible problem now, I had used fdisk created 2 new partition on an
GPT format partition of a sever,
and that patition is an LVM partition. After fdisk finished, I realized things goes wrong.
But the partition table had changed already.
Could I get them back without data loss, the data is very important for me.
The thing is the disk on my server is 7T, but just 1T is used(3 lvm partition ), So I use fdisk create another 2 partition.
b4 fdisk:
255 heads, 63
sectors/track, 963658 cylinders, total 15481176192 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
Disk identifier: 0x00000000
Device Boot Start End
Blocks Id System
/dev/sdb1 2048 321535 159744 83 Linux
/dev/sdb4 1 1 0+ ee GPT
Partition table entries are not in disk order
after fdisk:
Command (m for help): p
Disk /dev/sdb: 7926.4 GB, 7926362210304 bytes
255 heads, 63 sectors/track, 963658 cylinders, total 15481176192 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
Disk identifier:
0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 2048 321535 159744 83 Linux
/dev/sdb2 321536 1996810239 998244352 83 Linux
/dev/sdb3 1996810240 4294967294
1149078527+ 83 Linux
/dev/sdb4 1 1 0+ ee GPT
Partition table entries are not in disk order
before and after fdisk, the output of lsblk is the same.
# partprobe
# lsblk
NAME
MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1000G 0 disk
sdb 8:16 0 7.2T 0 disk
├─sdb1 8:17 0 156M 0 part /boot
└─sdb2 8:18 0 7.2T 0 part
├─system-home (dm-0) 253:0 0 600G 0 lvm /home
├─system-root (dm-1) 253:1 0 400G 0 lvm /
└─system-swap (dm-2) 253:2
0 2G 0 lvm [SWAP]
sr0
11:0 1 1024M 0 rom
wnobshost:/home/cmos # ls /dev/sdb*
/dev/sdb /dev/sdb1 /dev/sdb2
sdb3 and sdb4 does not shown, now all data can accessed. but I'm afraid of it can not be booted .
Is it possible to recover the GPT partition table back?
What should I do now?
Many many thanks!
Br,
Xingtao Zhang