Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Backup, deletion, and recovery of disk partition tables

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The MBR partition table is stored in sector 0 of track 0 of the hard disk, with a total of 512 bytes. The first 446 bytes are bootloader, and the middle 64 bits are disk partition table information. Each partition information accounts for 16 bytes, and is stored in 4 partitions in total.  Looking at the hex file of the hard disk, in the first 512 bytes of the hard disk, starting from 2080 to 64 bytes before aa55 is the disk partition table we need to backup

Backup Use dd to back up information from the hard disk partition table

Check the backup data to make sure it is correct.

Transfer the backed up files to a remote host or copy them to a USB stick for backup.

Log in to the remote host and review the data to ensure consistency.

Empty the disk partition table Use dd to empty the 64 bytes following the 446 bytes

View data after emptying

Disk partition destroyed, reboot will not be able to enter, system error message shows no disk

Recover data Disconnect power to restart and quickly press Esc to select CD mode

Choose Troubleshooting

Select Rescue a CentOS system to enter rescue mode

Select 1 Continue, Enter to select default SHELL

At this time, the host does not have a network address, so you need to configure the network address for the host.

Copy backup files locally from a remote host

Use dd command to restore the backup partition table data to/dev/sda and restart the system

The system starts normally, and/dev/sda data is restored successfully.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report