中文字幕在线观看,亚洲а∨天堂久久精品9966,亚洲成a人片在线观看你懂的,亚洲av成人片无码网站,亚洲国产精品无码久久久五月天

恢復(fù)Linux文件系統(tǒng)

2019-08-08    來(lái)源:愛(ài)站科技

容器云強(qiáng)勢(shì)上線!快速搭建集群,上萬(wàn)Linux鏡像隨意使用

對(duì)于Linux的用戶來(lái)說(shuō),不小心刪除了文件系統(tǒng)是一件很苦惱的事情,當(dāng)文件被刪除時(shí)我們?cè)鯓硬拍芑謴?fù)呢?很多情況下是無(wú)法恢復(fù)的,但是我們可以通過(guò)其他方法去恢復(fù)被刪除文件,現(xiàn)在我們?nèi)タ纯椿謴?fù)Linux文件系統(tǒng)的方法。

[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)

先刪除/boot分區(qū)試著恢復(fù)一下
[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

沒(méi)有找到/boot分區(qū)直接進(jìn)入grub界面中

這時(shí)候放入第一張安裝光盤(pán)進(jìn)入rescue模式,新建一個(gè)/boot分區(qū),然后重啟就可以了。

在 Windows 系統(tǒng)中回收站中保存了最近使用資源管理器時(shí)刪除的文件,因此我們可以利用上面介紹的工具去恢復(fù)這些已經(jīng)刪除的文件。

標(biāo)簽: Linux 文件系統(tǒng)

版權(quán)申明:本站文章部分自網(wǎng)絡(luò),如有侵權(quán),請(qǐng)聯(lián)系:west999com@outlook.com
特別注意:本站所有轉(zhuǎn)載文章言論不代表本站觀點(diǎn)!
本站所提供的圖片等素材,版權(quán)歸原作者所有,如需使用,請(qǐng)與原作者聯(lián)系。

上一篇:如何將.htaccess綁定域名到子目錄

下一篇:Linux系統(tǒng)上如何實(shí)現(xiàn)虛擬FTP空間