很抱歉提出这样一个基本的问题,但我必须确定。我将用新的硬盘取代我的硬盘。目前我有双引导(Windows8.1和Ubuntu),它用GRUB2引导。引导加载程序只在硬盘上吗?考虑到本文,它是:http://www.howtogeek.com/187789/dual-booting-explained-how-you-can-have-multiple-operating-systems-on-your-computer/
计算机的操作系统通常安装在其内部硬盘上。当您启动计算机时,BIOS从硬盘加载引导加载程序,引导加载程序引导已安装的操作系统。
当硬盘被替换时,新操作系统可以正常安装吗?或者,在更换硬盘之前,我需要配置一些额外的东西吗?
发布于 2017-02-05 15:25:34
当计算机启动时,只读存储器(BIOS或EFI)中的特殊代码从几个可能的位置(硬盘、USB闪存盘、光驱、网络)中读取引导加载程序并给予控制。
请阅读用户waltinator的评论并按照建议的指示进行操作。
发布于 2017-02-05 16:55:16
如果您的/etc/fstab通过UUID挂载分区,例如
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=83a64b80-5a37-4659-b797-221b88ef41f8 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=12817b99-9d2b-4357-a4ca-c11eab672a20 /home ext4 defaults 0 2
# swap was on /dev/sda1 during installation
#UUID=339b7a56-3b67-47e8-87e1-f483296a39bd none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0您必须将旧磁盘的UUID替换为新磁盘的UUID。
我最近这样做了,但不得不从不同的备份中恢复MBR。这一步是必要的,但不完整。
运行blkid并在从CD/USB键引导时修复磁盘上的fstab。
https://askubuntu.com/questions/880118
复制相似问题