Home  >  Article  >  Operation and Maintenance  >  Linux system cannot be started after installation

Linux system cannot be started after installation

王林
王林Original
2019-12-11 17:33:134665browse

Linux system cannot be started after installation

1. Check the disk information and confirm that the system is installed on that disk

sudo df -lh

or

sudo fdisk -l

Online learning video sharing: linux video Tutorial

2. Mount

sudo mkdir /mnt/ubuntu #建立挂载点
sudo mount /dev/sda2 /mnt/ubuntu #挂载
 
#如果引导安装在单独磁盘上 挂载引导
sudo mount /dev/sda6 /mnt/ubuntu/boot

3. Install grub

#安装grub
sudo grub-install --boot-directory=/mnt/ubuntu/boot /dev/sda

4. Restart

sudo reboot

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of Linux system cannot be started after installation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn