Linux File System Recovery-Linux Enterprise Application-Linux server application information. The following is a detailed description. [Root @ woody root] # fdisk-l/dev/hda
Disk/dev/hda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/hda1*1 13 104391 83 Linux
/Dev/hda2 14 523 4096575 83 Linux
/Dev/hda3 524 588 522112 + 82 Linux swap
/Dev/hda4 589 652 514080 5 Extended
/Dev/hda5 589 652 514048 + 83 Linux
[Root @ woody root] # mount
/Dev/hda2 on/type ext3 (rw)
None on/proc type proc (rw)
Usbdevfs on/proc/bus/usb type usbdevfs (rw)
/Dev/hda1 on/boot type ext3 (rw)
None on/dev/pts type devpts (rw, gid = 5, mode = 620)
/Dev/hda5 on/home type ext3 (rw)
None on/dev/shm type tmpfs (rw)
Delete the/boot partition first and try to restore it.
[Root @ woody root] # fdisk/dev/hda
Command (m for help): p
Disk/dev/hda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Device Boot Start End Blocks Id System
/Dev/hda1*1 13 104391 83 Linux
/Dev/hda2 14 523 4096575 83 Linux
/Dev/hda3 524 588 522112 + 82 Linux swap
/Dev/hda4 589 652 514080 5 Extended
/Dev/hda5 589 652 514048 + 83 Linux
Command (m for help): d
Partition number (1-5): 1
Command (m for help): w
The partition table has been altered!
Calling ioctl () to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
Reboot
No/boot partition found. Go directly to the grub interface.
Put the first installation disc in rescue mode, create a new/boot partition, and then restart it.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.