linux 误删了/boot分区 怎么才能在建立一个。

来源:百度知道 编辑:UC知道 时间:2024/05/26 11:09:07
我挂载了一块新硬盘,然后在/etc/fstab里面修改。重启以后就就不去了。
checking filesystems
fsck.ext3possibly non-existent or swap device?
/boot:clean,41/26104 files,12728/104391 blocks
:No such device or address while trying to open /dev/hdb5
[FAILED]

*** An error occurred during the file system check.
*** Dropping you to a shell;the system will reboot
*** when you leave the shell.
GIVE root password for maintenance
(or type Control-D to continue):

我输入root密码,然后用df查看发现/boot分区没有了,就剩下一个根分区。我该怎么建立一个/boot分区啊。
/dev/sda5 /home/disk2 ext3 defaults 1 2
然后:wq

1楼你是说让我在挂载boot,然后修改/etc/fstab吗?我现在用vi打开fstab文件。里面的boot哪项已经在啊,
LABLE=boot /boot ext3 default 1 2。是这项吗?我现在把sda1挂载到/boot上。现在df可以显示/boot.但是现在用shutdown -h now关不了机器啊, 最后显示system halted~!重启以后df又不能显示挂载的/boot分区了。

/boot分区正常启动时不会挂载 要修改需要手动挂载

You should not be able to boot your linux now, but your /boot is still there.
boot with your liveCD or any rescure linux,
and #mount your /boot partition.
then add something to /etc/fstab would help.
reboot then.

To edit fstab manully please see $man fstab.

你是怎么修改/etc/fstab的撒? 说清楚。