When I manage a VPS, I used fdisk
to adjust partitions. But when I reboot, the server complained that the block count 2780624 exceeds size of device (2441472 blocks)
and entered emergency mode
.
I have backed up the partition but the emergency mode did not have a fdisk
command for restoring partitions.
Currently, I could either enter the emergency terminal or before it enter the grub terminal via VNC. In the emergency mode, available commands include: /bin commands screenshot, /sbin commands screenshot
It's my first time dealing with such issue, so if you need any further information, I would provide it asap.
Edit:
- The system is CentOS 7.
- I have backed up the privious partition. Partition screenshot
- No tools
fdisk
,gpart
,cfdisk
,sfdisk
available. - What I concern most is retrieving some important data in the disk.
Edit: I found that the server snapshot can be captured and downloaded. Is it easier to restore data locally?