Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2638  / 1 Year ago, sat, january 7, 2023, 6:01:57

At first I will describe my situation in a few points:




  1. I have installed Windows7, and then Ubuntu 11.04 on my machine. Then everything works fine and at start of system I have screen from linux where I can choose the system.

  2. Then I reinstall Windows7 and install Windows 8 on other partition. Then I can choose between Win7 and win8 when I start system.

  3. Then I need my Ubuntu back so I want restore my bootloader from Ubuntu. I boot Ubuntu from USB and in terminal write this commands:



    sudo fdisk -l



Then I get:



/dev/sda1               1          13      104391   de  Dell Utility
/dev/sda2 14 2805 22425601 5 Rozszerzona
/dev/sda3 * 2805 41968 314572800 7 HPFS/NTFS
/dev/sda4 41968 60802 151282688 7 HPFS/NTFS
/dev/sda5 14 2445 19530752 83 Linux
/dev/sda6 2445 2805 2893824 82 Linux swap / Solaris


Next commands:



sudo mount /dev/sda5 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo chroot /mnt
grub-install /dev/sda


I get Installation finished. No error reported.. And when I start my machine I have old Ubuntu start screen to choose system. Ubuntu works well. But There are no Windows 8 option.



But my primary problem is when I choose Windows 7 I have:



error: no such device ...
error: no such disk


so I have no idea what can I do. I really need both systems to work.



Any help would be appreciated.


More From » grub2

 Answers
4

Please boot to Ubuntu and open a terminal. Then execute this command



sudo update-grub


It should solve the problem.



See this question: How can I repair grub? (How to get Ubuntu back after installing Windows?)


[#35180] Saturday, January 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
impisaso

Total Points: 423
Total Questions: 106
Total Answers: 104

Location: Virgin Islands (U.S.)
Member since Tue, Feb 2, 2021
3 Years ago
;